Interface Environment.Builder

  • Method Details

    • environmentId

      Environment.Builder environmentId(String environmentId)

      The unique identifier of the environment.

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

      Environment.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.
    • environmentArn

      Environment.Builder environmentArn(String environmentArn)

      The ARN of this governance environment.

      Parameters:
      environmentArn - The ARN of this governance environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Environment.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.
    • identityStore

      Environment.Builder identityStore(IdentityStoreInfo 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

      default Environment.Builder identityStore(Consumer<IdentityStoreInfo.Builder> identityStore)

      The identity store configuration.

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

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

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

      Environment.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.
    • serviceRole

      Environment.Builder serviceRole(String serviceRole)

      The IAM role AWS Assurance assumes to discover and evaluate the account's resources. Not set for ORGANIZATION environments, which always use the AWS Assurance service-linked role (AWSServiceRoleForAssurance) in each member account.

      Parameters:
      serviceRole - The IAM role AWS Assurance assumes to discover and evaluate the account's resources. Not set for ORGANIZATION environments, which always use the AWS Assurance service-linked role (AWSServiceRoleForAssurance) in each member account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operatorRole

      Environment.Builder operatorRole(String operatorRole)

      The IAM role assumed to issue temporary credentials for operator application users (both IAM and IAM Identity Center flows). Trust policy must allow the AWS Assurance service principal to sts:AssumeRole.

      Parameters:
      operatorRole - The IAM role assumed to issue temporary credentials for operator application users (both IAM and IAM Identity Center flows). Trust policy must allow the AWS Assurance service principal to sts:AssumeRole.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyArn

      Environment.Builder kmsKeyArn(String kmsKeyArn)

      The ARN of a customer managed AWS KMS key used to encrypt evidence at rest. When set, the service encrypts new evidence uploads using this key.

      Parameters:
      kmsKeyArn - The ARN of a customer managed AWS KMS key used to encrypt evidence at rest. When set, the service encrypts new evidence uploads using this key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Environment.Builder status(String status)

      The current lifecycle state of the environment.

      Parameters:
      status - The current lifecycle state of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current lifecycle state of the environment.

      Parameters:
      status - The current lifecycle state of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • regions

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

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

      Environment.Builder regions(String... regions)

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

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

      Environment.Builder environmentScope(String environmentScope)

      The set of AWS accounts this environment evaluates (read-only).

      Parameters:
      environmentScope - The set of AWS accounts this environment evaluates (read-only).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environmentScope

      Environment.Builder environmentScope(EnvironmentScope environmentScope)

      The set of AWS accounts this environment evaluates (read-only).

      Parameters:
      environmentScope - The set of AWS accounts this environment evaluates (read-only).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • organizationalUnitIds

      Environment.Builder organizationalUnitIds(Collection<String> organizationalUnitIds)

      The organizational units this environment's evaluation is scoped to. Only present on organization environments. When absent, the entire organization is in scope. Accounts in nested OUs under a listed OU are included.

      Parameters:
      organizationalUnitIds - The organizational units this environment's evaluation is scoped to. Only present on organization environments. When absent, the entire organization is in scope. 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

      Environment.Builder organizationalUnitIds(String... organizationalUnitIds)

      The organizational units this environment's evaluation is scoped to. Only present on organization environments. When absent, the entire organization is in scope. Accounts in nested OUs under a listed OU are included.

      Parameters:
      organizationalUnitIds - The organizational units this environment's evaluation is scoped to. Only present on organization environments. When absent, the entire organization is in scope. 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.
    • evidenceLocation

      Environment.Builder evidenceLocation(String evidenceLocation)

      The evidence bucket location. Read-only. To configure evidence sources, use CreateEnvironmentConnection.

      Parameters:
      evidenceLocation - The evidence bucket location. Read-only. To configure evidence sources, use CreateEnvironmentConnection.
      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

      Environment.Builder tags(Tag... 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:
    • createdAt

      Environment.Builder createdAt(Instant createdAt)

      The timestamp when the environment was created.

      Parameters:
      createdAt - The timestamp when the environment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      Environment.Builder updatedAt(Instant updatedAt)

      The timestamp when the environment was last updated.

      Parameters:
      updatedAt - The timestamp when the environment was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.