Class AccountState.Builder

  • Enclosing class:
    AccountState

    public static final class AccountState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public AccountState.Builder arn​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN for this account.
        Returns:
        builder
      • arn

        public AccountState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN for this account.
        Returns:
        builder
      • closeOnDeletion

        public AccountState.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 AccountState.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 AccountState.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 AccountState.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 AccountState.Builder email​(@Nullable
                                          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 AccountState.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
      • govcloudId

        public AccountState.Builder govcloudId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> govcloudId)
        Parameters:
        govcloudId - ID for a GovCloud account created with the account.
        Returns:
        builder
      • govcloudId

        public AccountState.Builder govcloudId​(java.lang.String govcloudId)
        Parameters:
        govcloudId - ID for a GovCloud account created with the account.
        Returns:
        builder
      • iamUserAccessToBilling

        public AccountState.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 AccountState.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
      • joinedMethod

        public AccountState.Builder joinedMethod​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> joinedMethod)
        Parameters:
        joinedMethod - Method by which the account joined the organization.
        Returns:
        builder
      • joinedMethod

        public AccountState.Builder joinedMethod​(java.lang.String joinedMethod)
        Parameters:
        joinedMethod - Method by which the account joined the organization.
        Returns:
        builder
      • joinedTimestamp

        public AccountState.Builder joinedTimestamp​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> joinedTimestamp)
        Parameters:
        joinedTimestamp - Date the account became a part of the organization.
        Returns:
        builder
      • joinedTimestamp

        public AccountState.Builder joinedTimestamp​(java.lang.String joinedTimestamp)
        Parameters:
        joinedTimestamp - Date the account became a part of the organization.
        Returns:
        builder
      • name

        public AccountState.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 AccountState.Builder name​(java.lang.String name)
        Parameters:
        name - Friendly name for the member account. The following arguments are optional:
        Returns:
        builder
      • parentId

        public AccountState.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 AccountState.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 AccountState.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 AccountState.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
      • state

        public AccountState.Builder state​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> state)
        Parameters:
        state - State of the account in the organization.
        Returns:
        builder
      • state

        public AccountState.Builder state​(java.lang.String state)
        Parameters:
        state - State of the account in the organization.
        Returns:
        builder
      • status

        @Deprecated
        public AccountState.Builder status​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> status)
        Deprecated.
        status is deprecated. Use state instead.
        Parameters:
        status - (**Deprecated** use `state` instead) Status of the account in the organization.
        Returns:
        builder
      • status

        @Deprecated
        public AccountState.Builder status​(java.lang.String status)
        Deprecated.
        status is deprecated. Use state instead.
        Parameters:
        status - (**Deprecated** use `state` instead) Status of the account in the organization.
        Returns:
        builder
      • tags

        public AccountState.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 AccountState.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
      • tagsAll

        public AccountState.Builder tagsAll​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public AccountState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder