Interface CreateEnvironmentRequest.Builder

  • Method Details

    • environmentName

      CreateEnvironmentRequest.Builder environmentName(String environmentName)

      The name of the environment.

      Parameters:
      environmentName - The name of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateEnvironmentRequest.Builder description(String description)

      A description of the environment.

      Parameters:
      description - A description of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainPrefix

      CreateEnvironmentRequest.Builder domainPrefix(String domainPrefix)

      The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.

      Parameters:
      domainPrefix - The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operatorRole

      CreateEnvironmentRequest.Builder operatorRole(String operatorRole)

      The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

      Parameters:
      operatorRole - The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identityStore

      The identity store configuration.

      Parameters:
      identityStore - The identity store configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identityStore

      The identity store configuration.

      This is a convenience method that creates an instance of the IdentityStoreConfig.Builder avoiding the need to create one manually via IdentityStoreConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to identityStore(IdentityStoreConfig).

      Parameters:
      identityStore - a consumer that will call methods on IdentityStoreConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • kmsKeyArn

      The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have kms:Decrypt and kms:GenerateDataKey permissions on this key.

      Parameters:
      kmsKeyArn - The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have kms:Decrypt and kms:GenerateDataKey permissions on this key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.

      Parameters:
      regions - The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.

      Parameters:
      regions - The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentScope

      CreateEnvironmentRequest.Builder environmentScope(String environmentScope)

      The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

      • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

      • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

      Parameters:
      environmentScope - The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

      • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

      • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environmentScope

      CreateEnvironmentRequest.Builder environmentScope(EnvironmentScope environmentScope)

      The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

      • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

      • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

      Parameters:
      environmentScope - The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

      • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

      • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • organizationalUnitIds

      CreateEnvironmentRequest.Builder organizationalUnitIds(Collection<String> organizationalUnitIds)

      The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.

      Parameters:
      organizationalUnitIds - The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationalUnitIds

      CreateEnvironmentRequest.Builder organizationalUnitIds(String... organizationalUnitIds)

      The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.

      Parameters:
      organizationalUnitIds - The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags attached to the resource, as key-value pairs.

      Parameters:
      tags - The tags attached to the resource, as key-value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags attached to the resource, as key-value pairs.

      Parameters:
      tags - The tags attached to the resource, as key-value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags attached to the resource, as key-value pairs.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateEnvironmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.