-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1140 from hashicorp/d-cdktf-docs-6843977216-44
cdktf: update documentation
- Loading branch information
Showing
132 changed files
with
3,420 additions
and
2,768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,20 +14,24 @@ Use this data source to get information about members of an organization. | |
## Example Usage | ||
|
||
```python | ||
import constructs as constructs | ||
import cdktf as cdktf | ||
# Provider bindings are generated by running cdktf get. | ||
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug | ||
from constructs import Construct | ||
from cdktf import TerraformStack | ||
# | ||
# Provider bindings are generated by running `cdktf get`. | ||
# See https://cdk.tf/provider-generation for more details. | ||
import ...gen.providers.tfe as tfe | ||
class MyConvertedCode(cdktf.TerraformStack): | ||
# | ||
from imports.tfe.data_tfe_organization_members import DataTfeOrganizationMembers | ||
from imports.tfe.organization import Organization | ||
class MyConvertedCode(TerraformStack): | ||
def __init__(self, scope, name): | ||
super().__init__(scope, name) | ||
tfe_organization_bar = tfe.organization.Organization(self, "bar", | ||
bar = Organization(self, "bar", | ||
email="[email protected]", | ||
name="org-bar" | ||
) | ||
tfe.data_tfe_organization_members.DataTfeOrganizationMembers(self, "foo", | ||
organization=cdktf.Token.as_string(tfe_organization_bar.name) | ||
DataTfeOrganizationMembers(self, "foo", | ||
organization=bar.name | ||
) | ||
``` | ||
|
||
|
@@ -48,4 +52,4 @@ The `member` block contains: | |
|
||
* `user_id` - The ID of the user. | ||
* `organization_membership_id` - The ID of the organization membership. | ||
<!-- cache-key: cdktf-0.17.0-pre.15 input-4c032c533c9de727b2406429de451318455dd383062b352da22d3b516529bb5b --> | ||
<!-- cache-key: cdktf-0.19.0 input-4c032c533c9de727b2406429de451318455dd383062b352da22d3b516529bb5b --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,18 @@ be updated manually. | |
### Fetch by email | ||
|
||
```python | ||
import constructs as constructs | ||
import cdktf as cdktf | ||
# Provider bindings are generated by running cdktf get. | ||
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug | ||
from constructs import Construct | ||
from cdktf import TerraformStack | ||
# | ||
# Provider bindings are generated by running `cdktf get`. | ||
# See https://cdk.tf/provider-generation for more details. | ||
import ...gen.providers.tfe as tfe | ||
class MyConvertedCode(cdktf.TerraformStack): | ||
# | ||
from imports.tfe.data_tfe_organization_membership import DataTfeOrganizationMembership | ||
class MyConvertedCode(TerraformStack): | ||
def __init__(self, scope, name): | ||
super().__init__(scope, name) | ||
tfe.data_tfe_organization_membership.DataTfeOrganizationMembership(self, "test", | ||
DataTfeOrganizationMembership(self, "test", | ||
email="[email protected]", | ||
organization="my-org-name" | ||
) | ||
|
@@ -39,15 +42,18 @@ class MyConvertedCode(cdktf.TerraformStack): | |
### Fetch by username | ||
|
||
```python | ||
import constructs as constructs | ||
import cdktf as cdktf | ||
# Provider bindings are generated by running cdktf get. | ||
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug | ||
from constructs import Construct | ||
from cdktf import TerraformStack | ||
# | ||
# Provider bindings are generated by running `cdktf get`. | ||
# See https://cdk.tf/provider-generation for more details. | ||
import ...gen.providers.tfe as tfe | ||
class MyConvertedCode(cdktf.TerraformStack): | ||
# | ||
from imports.tfe.data_tfe_organization_membership import DataTfeOrganizationMembership | ||
class MyConvertedCode(TerraformStack): | ||
def __init__(self, scope, name): | ||
super().__init__(scope, name) | ||
tfe.data_tfe_organization_membership.DataTfeOrganizationMembership(self, "test", | ||
DataTfeOrganizationMembership(self, "test", | ||
organization="my-org-name", | ||
username="my-username" | ||
) | ||
|
@@ -56,15 +62,18 @@ class MyConvertedCode(cdktf.TerraformStack): | |
### Fetch by organization membership ID | ||
|
||
```python | ||
import constructs as constructs | ||
import cdktf as cdktf | ||
# Provider bindings are generated by running cdktf get. | ||
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug | ||
from constructs import Construct | ||
from cdktf import TerraformStack | ||
# | ||
# Provider bindings are generated by running `cdktf get`. | ||
# See https://cdk.tf/provider-generation for more details. | ||
import ...gen.providers.tfe as tfe | ||
class MyConvertedCode(cdktf.TerraformStack): | ||
# | ||
from imports.tfe.data_tfe_organization_membership import DataTfeOrganizationMembership | ||
class MyConvertedCode(TerraformStack): | ||
def __init__(self, scope, name): | ||
super().__init__(scope, name) | ||
tfe.data_tfe_organization_membership.DataTfeOrganizationMembership(self, "test", | ||
DataTfeOrganizationMembership(self, "test", | ||
organization="my-org-name", | ||
organization_membership_id="ou-xxxxxxxxxxx" | ||
) | ||
|
@@ -89,4 +98,4 @@ In addition to all arguments above, the following attributes are exported: | |
* `user_id` - The ID of the user associated with the organization membership. | ||
* `username` - The username of the user associated with the organization membership. | ||
|
||
<!-- cache-key: cdktf-0.17.0-pre.15 input-d0160d0a09a0b3ce6035db02657e5b320810e469cbd9da4ae71b7158b313258f --> | ||
<!-- cache-key: cdktf-0.19.0 input-d0160d0a09a0b3ce6035db02657e5b320810e469cbd9da4ae71b7158b313258f --> |
Oops, something went wrong.