Package com.pulumi.aws.organizations
Class AccountArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.organizations.AccountArgs.Builder
-
- Enclosing class:
- AccountArgs
public static final class AccountArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(AccountArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountArgsbuild()AccountArgs.BuildercloseOnDeletion(com.pulumi.core.Output<java.lang.Boolean> closeOnDeletion)AccountArgs.BuildercloseOnDeletion(java.lang.Boolean closeOnDeletion)AccountArgs.BuildercreateGovcloud(com.pulumi.core.Output<java.lang.Boolean> createGovcloud)AccountArgs.BuildercreateGovcloud(java.lang.Boolean createGovcloud)AccountArgs.Builderemail(com.pulumi.core.Output<java.lang.String> email)AccountArgs.Builderemail(java.lang.String email)AccountArgs.BuilderiamUserAccessToBilling(com.pulumi.core.Output<java.lang.String> iamUserAccessToBilling)AccountArgs.BuilderiamUserAccessToBilling(java.lang.String iamUserAccessToBilling)AccountArgs.Buildername(com.pulumi.core.Output<java.lang.String> name)AccountArgs.Buildername(java.lang.String name)AccountArgs.BuilderparentId(com.pulumi.core.Output<java.lang.String> parentId)AccountArgs.BuilderparentId(java.lang.String parentId)AccountArgs.BuilderroleName(com.pulumi.core.Output<java.lang.String> roleName)AccountArgs.BuilderroleName(java.lang.String roleName)AccountArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)AccountArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(AccountArgs defaults)
-
-
Method Detail
-
closeOnDeletion
public AccountArgs.Builder closeOnDeletion(@Nullable com.pulumi.core.Output<java.lang.Boolean> closeOnDeletion)
- Parameters:
closeOnDeletion- If true, a deletion event will close the account. Otherwise, it will only remove from the organization. This is not supported for GovCloud accounts.- Returns:
- builder
-
closeOnDeletion
public AccountArgs.Builder closeOnDeletion(java.lang.Boolean closeOnDeletion)
- Parameters:
closeOnDeletion- If true, a deletion event will close the account. Otherwise, it will only remove from the organization. This is not supported for GovCloud accounts.- Returns:
- builder
-
createGovcloud
public AccountArgs.Builder createGovcloud(@Nullable com.pulumi.core.Output<java.lang.Boolean> createGovcloud)
- Parameters:
createGovcloud- Whether to also create a GovCloud account. The GovCloud account is tied to the main (commercial) account this resource creates. If `true`, the GovCloud account ID is available in the `govcloudId` attribute. The only way to manage the GovCloud account with the provider is to subsequently import the account using this resource.- Returns:
- builder
-
createGovcloud
public AccountArgs.Builder createGovcloud(java.lang.Boolean createGovcloud)
- Parameters:
createGovcloud- Whether to also create a GovCloud account. The GovCloud account is tied to the main (commercial) account this resource creates. If `true`, the GovCloud account ID is available in the `govcloudId` attribute. The only way to manage the GovCloud account with the provider is to subsequently import the account using this resource.- Returns:
- builder
-
email
public AccountArgs.Builder email(com.pulumi.core.Output<java.lang.String> email)
- Parameters:
email- Email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.- Returns:
- builder
-
email
public AccountArgs.Builder email(java.lang.String email)
- Parameters:
email- Email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.- Returns:
- builder
-
iamUserAccessToBilling
public AccountArgs.Builder iamUserAccessToBilling(@Nullable com.pulumi.core.Output<java.lang.String> iamUserAccessToBilling)
- Parameters:
iamUserAccessToBilling- If set to `ALLOW`, the new account enables IAM users and roles to access account billing information if they have the required permissions. If set to `DENY`, then only the root user (and no roles) of the new account can access account billing information. If this is unset, the AWS API will default this to `ALLOW`. If the resource is created and this option is changed, it will try to recreate the account.- Returns:
- builder
-
iamUserAccessToBilling
public AccountArgs.Builder iamUserAccessToBilling(java.lang.String iamUserAccessToBilling)
- Parameters:
iamUserAccessToBilling- If set to `ALLOW`, the new account enables IAM users and roles to access account billing information if they have the required permissions. If set to `DENY`, then only the root user (and no roles) of the new account can access account billing information. If this is unset, the AWS API will default this to `ALLOW`. If the resource is created and this option is changed, it will try to recreate the account.- Returns:
- builder
-
name
public AccountArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Friendly name for the member account. The following arguments are optional:- Returns:
- builder
-
name
public AccountArgs.Builder name(java.lang.String name)
- Parameters:
name- Friendly name for the member account. The following arguments are optional:- Returns:
- builder
-
parentId
public AccountArgs.Builder parentId(@Nullable com.pulumi.core.Output<java.lang.String> parentId)
- Parameters:
parentId- Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.- Returns:
- builder
-
parentId
public AccountArgs.Builder parentId(java.lang.String parentId)
- Parameters:
parentId- Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.- Returns:
- builder
-
roleName
public AccountArgs.Builder roleName(@Nullable com.pulumi.core.Output<java.lang.String> roleName)
- Parameters:
roleName- The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the root account, allowing users in the root account to assume the role, as permitted by the root account administrator. The role has administrator permissions in the new member account. The Organizations API provides no method for reading this information after account creation, so the provider cannot perform drift detection on its value and will always show a difference for a configured value after import unless `ignoreChanges` is used.- Returns:
- builder
-
roleName
public AccountArgs.Builder roleName(java.lang.String roleName)
- Parameters:
roleName- The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the root account, allowing users in the root account to assume the role, as permitted by the root account administrator. The role has administrator permissions in the new member account. The Organizations API provides no method for reading this information after account creation, so the provider cannot perform drift detection on its value and will always show a difference for a configured value after import unless `ignoreChanges` is used.- Returns:
- builder
-
tags
public AccountArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public AccountArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
build
public AccountArgs build()
-
-