AWS Control Tower v0.0.2 published on Friday, Oct 20, 2023 by lbrlabs
awscontroltower.ControlTowerAwsAccount
Explore with Pulumi AI
AWS Control Tower v0.0.2 published on Friday, Oct 20, 2023 by lbrlabs
Create ControlTowerAwsAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ControlTowerAwsAccount(name: string, args: ControlTowerAwsAccountArgs, opts?: CustomResourceOptions);
@overload
def ControlTowerAwsAccount(resource_name: str,
args: ControlTowerAwsAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ControlTowerAwsAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
organizational_unit: Optional[str] = None,
sso: Optional[ControlTowerAwsAccountSsoArgs] = None,
close_account_on_delete: Optional[bool] = None,
name: Optional[str] = None,
organizational_unit_id_on_delete: Optional[str] = None,
path_id: Optional[str] = None,
provisioned_product_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewControlTowerAwsAccount(ctx *Context, name string, args ControlTowerAwsAccountArgs, opts ...ResourceOption) (*ControlTowerAwsAccount, error)
public ControlTowerAwsAccount(string name, ControlTowerAwsAccountArgs args, CustomResourceOptions? opts = null)
public ControlTowerAwsAccount(String name, ControlTowerAwsAccountArgs args)
public ControlTowerAwsAccount(String name, ControlTowerAwsAccountArgs args, CustomResourceOptions options)
type: awscontroltower:index/controlTowerAwsAccount:controlTowerAwsAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ControlTowerAwsAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ControlTowerAwsAccountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ControlTowerAwsAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ControlTowerAwsAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ControlTowerAwsAccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ControlTowerAwsAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ControlTowerAwsAccount resource accepts the following input properties:
- Email string
- Root email of the account.
- Organizational
Unit string - Name of the Organizational Unit under which the account resides.
- Sso
Lbrlabs.
Pulumi Package. Awscontroltower. Inputs. Control Tower Aws Account Sso Args - Assigned SSO user settings.
- Close
Account boolOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- Name string
- Name of the account.
- Organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- Path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- Provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Dictionary<string, string>
- Key-value map of resource tags for the account.
- Email string
- Root email of the account.
- Organizational
Unit string - Name of the Organizational Unit under which the account resides.
- Sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- Close
Account boolOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- Name string
- Name of the account.
- Organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- Path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- Provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- map[string]string
- Key-value map of resource tags for the account.
- email String
- Root email of the account.
- organizational
Unit String - Name of the Organizational Unit under which the account resides.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- close
Account BooleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- name String
- Name of the account.
- organizational
Unit StringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id String - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product StringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Map<String,String>
- Key-value map of resource tags for the account.
- email string
- Root email of the account.
- organizational
Unit string - Name of the Organizational Unit under which the account resides.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- close
Account booleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- name string
- Name of the account.
- organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- {[key: string]: string}
- Key-value map of resource tags for the account.
- email str
- Root email of the account.
- organizational_
unit str - Name of the Organizational Unit under which the account resides.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- close_
account_ boolon_ delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- name str
- Name of the account.
- organizational_
unit_ strid_ on_ delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path_
id str - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned_
product_ strname - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Mapping[str, str]
- Key-value map of resource tags for the account.
- email String
- Root email of the account.
- organizational
Unit String - Name of the Organizational Unit under which the account resides.
- sso Property Map
- Assigned SSO user settings.
- close
Account BooleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- name String
- Name of the account.
- organizational
Unit StringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id String - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product StringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Map<String>
- Key-value map of resource tags for the account.
Outputs
All input properties are implicitly available as output properties. Additionally, the ControlTowerAwsAccount resource produces the following output properties:
- account_
id str - ID of the AWS account.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ControlTowerAwsAccount Resource
Get an existing ControlTowerAwsAccount resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ControlTowerAwsAccountState, opts?: CustomResourceOptions): ControlTowerAwsAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
close_account_on_delete: Optional[bool] = None,
email: Optional[str] = None,
name: Optional[str] = None,
organizational_unit: Optional[str] = None,
organizational_unit_id_on_delete: Optional[str] = None,
path_id: Optional[str] = None,
provisioned_product_name: Optional[str] = None,
sso: Optional[ControlTowerAwsAccountSsoArgs] = None,
tags: Optional[Mapping[str, str]] = None) -> ControlTowerAwsAccount
func GetControlTowerAwsAccount(ctx *Context, name string, id IDInput, state *ControlTowerAwsAccountState, opts ...ResourceOption) (*ControlTowerAwsAccount, error)
public static ControlTowerAwsAccount Get(string name, Input<string> id, ControlTowerAwsAccountState? state, CustomResourceOptions? opts = null)
public static ControlTowerAwsAccount get(String name, Output<String> id, ControlTowerAwsAccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - ID of the AWS account.
- Close
Account boolOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- Email string
- Root email of the account.
- Name string
- Name of the account.
- Organizational
Unit string - Name of the Organizational Unit under which the account resides.
- Organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- Path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- Provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Sso
Lbrlabs.
Pulumi Package. Awscontroltower. Inputs. Control Tower Aws Account Sso Args - Assigned SSO user settings.
- Dictionary<string, string>
- Key-value map of resource tags for the account.
- Account
Id string - ID of the AWS account.
- Close
Account boolOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- Email string
- Root email of the account.
- Name string
- Name of the account.
- Organizational
Unit string - Name of the Organizational Unit under which the account resides.
- Organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- Path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- Provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- Sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- map[string]string
- Key-value map of resource tags for the account.
- account
Id String - ID of the AWS account.
- close
Account BooleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- email String
- Root email of the account.
- name String
- Name of the account.
- organizational
Unit String - Name of the Organizational Unit under which the account resides.
- organizational
Unit StringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id String - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product StringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- Map<String,String>
- Key-value map of resource tags for the account.
- account
Id string - ID of the AWS account.
- close
Account booleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- email string
- Root email of the account.
- name string
- Name of the account.
- organizational
Unit string - Name of the Organizational Unit under which the account resides.
- organizational
Unit stringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id string - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product stringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- {[key: string]: string}
- Key-value map of resource tags for the account.
- account_
id str - ID of the AWS account.
- close_
account_ boolon_ delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- email str
- Root email of the account.
- name str
- Name of the account.
- organizational_
unit str - Name of the Organizational Unit under which the account resides.
- organizational_
unit_ strid_ on_ delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path_
id str - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned_
product_ strname - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- sso
Control
Tower Aws Account Sso Args - Assigned SSO user settings.
- Mapping[str, str]
- Key-value map of resource tags for the account.
- account
Id String - ID of the AWS account.
- close
Account BooleanOn Delete - If enabled, this will close the AWS account on resource deletion, beginning the 90-day suspension period. Otherwise, the account will just be unenrolled from Control Tower.
- email String
- Root email of the account.
- name String
- Name of the account.
- organizational
Unit String - Name of the Organizational Unit under which the account resides.
- organizational
Unit StringId On Delete - ID of the Organizational Unit to which the account should be moved when the resource is deleted. If no value is provided, the account will not be moved.
- path
Id String - Name of the path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.
- provisioned
Product StringName - Name of the service catalog product that is provisioned. Defaults to a slugified version of the account name.
- sso Property Map
- Assigned SSO user settings.
- Map<String>
- Key-value map of resource tags for the account.
Supporting Types
ControlTowerAwsAccountSso, ControlTowerAwsAccountSsoArgs
- email str
- first_
name str - last_
name str
Package Details
- Repository
- awscontroltower lbrlabs/pulumi-awscontroltower
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awscontroltower
Terraform Provider.
AWS Control Tower v0.0.2 published on Friday, Oct 20, 2023 by lbrlabs