Class OrganizationState.Builder

  • Enclosing class:
    OrganizationState

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

      • Builder

        public Builder()
    • Method Detail

      • accounts

        public OrganizationState.Builder accounts​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<OrganizationAccountArgs>> accounts)
        Parameters:
        accounts - List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
        Returns:
        builder
      • accounts

        public OrganizationState.Builder accounts​(java.util.List<OrganizationAccountArgs> accounts)
        Parameters:
        accounts - List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
        Returns:
        builder
      • accounts

        public OrganizationState.Builder accounts​(OrganizationAccountArgs... accounts)
        Parameters:
        accounts - List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
        Returns:
        builder
      • arn

        public OrganizationState.Builder arn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the root.
        Returns:
        builder
      • awsServiceAccessPrincipals

        public OrganizationState.Builder awsServiceAccessPrincipals​(@Nullable
                                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> awsServiceAccessPrincipals)
        Parameters:
        awsServiceAccessPrincipals - List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have `featureSet` set to `ALL`. Some services do not support enablement via this endpoint, see [warning in aws docs](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html).
        Returns:
        builder
      • awsServiceAccessPrincipals

        public OrganizationState.Builder awsServiceAccessPrincipals​(java.util.List<java.lang.String> awsServiceAccessPrincipals)
        Parameters:
        awsServiceAccessPrincipals - List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have `featureSet` set to `ALL`. Some services do not support enablement via this endpoint, see [warning in aws docs](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html).
        Returns:
        builder
      • awsServiceAccessPrincipals

        public OrganizationState.Builder awsServiceAccessPrincipals​(java.lang.String... awsServiceAccessPrincipals)
        Parameters:
        awsServiceAccessPrincipals - List of AWS service principal names for which you want to enable integration with your organization. This is typically in the form of a URL, such as service-abbreviation.amazonaws.com. Organization must have `featureSet` set to `ALL`. Some services do not support enablement via this endpoint, see [warning in aws docs](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html).
        Returns:
        builder
      • enabledPolicyTypes

        public OrganizationState.Builder enabledPolicyTypes​(@Nullable
                                                            com.pulumi.core.Output<java.util.List<java.lang.String>> enabledPolicyTypes)
        Parameters:
        enabledPolicyTypes - List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g., `AISERVICES_OPT_OUT_POLICY`, `BACKUP_POLICY`, `BEDROCK_POLICY`, `CHATBOT_POLICY`, `DECLARATIVE_POLICY_EC2`, `INSPECTOR_POLICY`, `RESOURCE_CONTROL_POLICY`, `S3_POLICY`, `SECURITYHUB_POLICY`, `SERVICE_CONTROL_POLICY`, `TAG_POLICY` and `UPGRADE_ROLLOUT_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html). To enable `INSPECTOR_POLICY`, `awsServiceAccessPrincipals` must include `inspector2.amazonaws.com`. To enable `SECURITYHUB_POLICY`, `awsServiceAccessPrincipals` must include `securityhub.amazonaws.com`.
        Returns:
        builder
      • enabledPolicyTypes

        public OrganizationState.Builder enabledPolicyTypes​(java.util.List<java.lang.String> enabledPolicyTypes)
        Parameters:
        enabledPolicyTypes - List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g., `AISERVICES_OPT_OUT_POLICY`, `BACKUP_POLICY`, `BEDROCK_POLICY`, `CHATBOT_POLICY`, `DECLARATIVE_POLICY_EC2`, `INSPECTOR_POLICY`, `RESOURCE_CONTROL_POLICY`, `S3_POLICY`, `SECURITYHUB_POLICY`, `SERVICE_CONTROL_POLICY`, `TAG_POLICY` and `UPGRADE_ROLLOUT_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html). To enable `INSPECTOR_POLICY`, `awsServiceAccessPrincipals` must include `inspector2.amazonaws.com`. To enable `SECURITYHUB_POLICY`, `awsServiceAccessPrincipals` must include `securityhub.amazonaws.com`.
        Returns:
        builder
      • enabledPolicyTypes

        public OrganizationState.Builder enabledPolicyTypes​(java.lang.String... enabledPolicyTypes)
        Parameters:
        enabledPolicyTypes - List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g., `AISERVICES_OPT_OUT_POLICY`, `BACKUP_POLICY`, `BEDROCK_POLICY`, `CHATBOT_POLICY`, `DECLARATIVE_POLICY_EC2`, `INSPECTOR_POLICY`, `RESOURCE_CONTROL_POLICY`, `S3_POLICY`, `SECURITYHUB_POLICY`, `SERVICE_CONTROL_POLICY`, `TAG_POLICY` and `UPGRADE_ROLLOUT_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html). To enable `INSPECTOR_POLICY`, `awsServiceAccessPrincipals` must include `inspector2.amazonaws.com`. To enable `SECURITYHUB_POLICY`, `awsServiceAccessPrincipals` must include `securityhub.amazonaws.com`.
        Returns:
        builder
      • featureSet

        public OrganizationState.Builder featureSet​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> featureSet)
        Parameters:
        featureSet - Specify `ALL` (default) or `CONSOLIDATED_BILLING`.
        Returns:
        builder
      • featureSet

        public OrganizationState.Builder featureSet​(java.lang.String featureSet)
        Parameters:
        featureSet - Specify `ALL` (default) or `CONSOLIDATED_BILLING`.
        Returns:
        builder
      • masterAccountArn

        public OrganizationState.Builder masterAccountArn​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> masterAccountArn)
        Parameters:
        masterAccountArn - ARN of the master account.
        Returns:
        builder
      • masterAccountArn

        public OrganizationState.Builder masterAccountArn​(java.lang.String masterAccountArn)
        Parameters:
        masterAccountArn - ARN of the master account.
        Returns:
        builder
      • masterAccountEmail

        public OrganizationState.Builder masterAccountEmail​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> masterAccountEmail)
        Parameters:
        masterAccountEmail - Email address of the master account.
        Returns:
        builder
      • masterAccountEmail

        public OrganizationState.Builder masterAccountEmail​(java.lang.String masterAccountEmail)
        Parameters:
        masterAccountEmail - Email address of the master account.
        Returns:
        builder
      • masterAccountId

        public OrganizationState.Builder masterAccountId​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> masterAccountId)
        Parameters:
        masterAccountId - Identifier of the master account.
        Returns:
        builder
      • masterAccountId

        public OrganizationState.Builder masterAccountId​(java.lang.String masterAccountId)
        Parameters:
        masterAccountId - Identifier of the master account.
        Returns:
        builder
      • masterAccountName

        public OrganizationState.Builder masterAccountName​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> masterAccountName)
        Parameters:
        masterAccountName - Name of the master account.
        Returns:
        builder
      • masterAccountName

        public OrganizationState.Builder masterAccountName​(java.lang.String masterAccountName)
        Parameters:
        masterAccountName - Name of the master account.
        Returns:
        builder
      • nonMasterAccounts

        public OrganizationState.Builder nonMasterAccounts​(@Nullable
                                                           com.pulumi.core.Output<java.util.List<OrganizationNonMasterAccountArgs>> nonMasterAccounts)
        Parameters:
        nonMasterAccounts - List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
        Returns:
        builder
      • nonMasterAccounts

        public OrganizationState.Builder nonMasterAccounts​(java.util.List<OrganizationNonMasterAccountArgs> nonMasterAccounts)
        Parameters:
        nonMasterAccounts - List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
        Returns:
        builder
      • nonMasterAccounts

        public OrganizationState.Builder nonMasterAccounts​(OrganizationNonMasterAccountArgs... nonMasterAccounts)
        Parameters:
        nonMasterAccounts - List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
        Returns:
        builder
      • returnOrganizationOnly

        public OrganizationState.Builder returnOrganizationOnly​(@Nullable
                                                                com.pulumi.core.Output<java.lang.Boolean> returnOrganizationOnly)
        Parameters:
        returnOrganizationOnly - Return (as attributes) only the results of the [`DescribeOrganization`](https://docs.aws.amazon.com/organizations/latest/APIReference/API_DescribeOrganization.html) API to avoid [API limits](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html#throttling-limits). When configured to `true` only the `arn`, `featureSet`, `masterAccountArn`, `masterAccountEmail` and `masterAccountId` attributes will be returned. All others will be empty. Default: `false`.
        Returns:
        builder
      • returnOrganizationOnly

        public OrganizationState.Builder returnOrganizationOnly​(java.lang.Boolean returnOrganizationOnly)
        Parameters:
        returnOrganizationOnly - Return (as attributes) only the results of the [`DescribeOrganization`](https://docs.aws.amazon.com/organizations/latest/APIReference/API_DescribeOrganization.html) API to avoid [API limits](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html#throttling-limits). When configured to `true` only the `arn`, `featureSet`, `masterAccountArn`, `masterAccountEmail` and `masterAccountId` attributes will be returned. All others will be empty. Default: `false`.
        Returns:
        builder
      • roots

        public OrganizationState.Builder roots​(@Nullable
                                               com.pulumi.core.Output<java.util.List<OrganizationRootArgs>> roots)
        Parameters:
        roots - List of organization roots. All elements have these attributes:
        Returns:
        builder