You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/cdktf/python/d/organization_membership.html.markdown
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ be updated manually.
22
22
### Fetch by email
23
23
24
24
```python
25
-
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
25
+
#DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
26
26
from constructs import Construct
27
27
from cdktf import TerraformStack
28
28
#
@@ -42,7 +42,7 @@ class MyConvertedCode(TerraformStack):
42
42
### Fetch by username
43
43
44
44
```python
45
-
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
45
+
#DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
46
46
from constructs import Construct
47
47
from cdktf import TerraformStack
48
48
#
@@ -59,15 +59,36 @@ class MyConvertedCode(TerraformStack):
59
59
)
60
60
```
61
61
62
+
### Fetch by organization membership ID
63
+
64
+
```python
65
+
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
66
+
from constructs import Construct
67
+
from cdktf import TerraformStack
68
+
#
69
+
# Provider bindings are generated by running `cdktf get`.
70
+
# See https://cdk.tf/provider-generation for more details.
71
+
#
72
+
from imports.tfe.data_tfe_organization_membership import DataTfeOrganizationMembership
73
+
classMyConvertedCode(TerraformStack):
74
+
def__init__(self, scope, name):
75
+
super().__init__(scope, name)
76
+
DataTfeOrganizationMembership(self, "test",
77
+
organization="my-org-name",
78
+
organization_membership_id="ou-xxxxxxxxxxx"
79
+
)
80
+
```
81
+
62
82
## Argument Reference
63
83
64
84
The following arguments are supported:
65
85
66
-
*`organization` - (Required) Name of the organization.
86
+
*`organization` - (Optional) Name of the organization.
67
87
*`email` - (Optional) Email of the user.
68
88
*`username` - (Optional) The username of the user.
89
+
*`organization_membership_id` - (Optional) ID belonging to the organziation membership.
69
90
70
-
~> **NOTE:** While `email` and `username` are optional arguments, one or the other is required.
91
+
~> **NOTE:** While `email` and `username` are optional arguments, one or the other is required if `organization_membership_id` argument is not provided.
71
92
72
93
## Attributes Reference
73
94
@@ -77,4 +98,4 @@ In addition to all arguments above, the following attributes are exported:
77
98
*`user_id` - The ID of the user associated with the organization membership.
78
99
*`username` - The username of the user associated with the organization membership.
0 commit comments