Interface UpdateEnvironmentRequest.Builder

  • Method Details

    • environmentArn

      UpdateEnvironmentRequest.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

      UpdateEnvironmentRequest.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

      The update to the identity store configuration. You can provide a new configuration or disable the identity store.

      Parameters:
      identityStore - The update to the identity store configuration. You can provide a new configuration or disable the identity store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identityStore

      The update to the identity store configuration. You can provide a new configuration or disable the identity store.

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

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

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

      UpdateEnvironmentRequest.Builder operatorRole(String operatorRole)

      The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

      Parameters:
      operatorRole - The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. 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.
    • kmsKeyArn

      The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.

      Parameters:
      kmsKeyArn - The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.

      Parameters:
      regions - The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • regions

      The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.

      Parameters:
      regions - The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentScope

      UpdateEnvironmentRequest.Builder environmentScope(String environmentScope)

      The set of AWS accounts this environment evaluates.

      ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

      SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

      null or omitted: leaves the environment's scope unchanged.

      Parameters:
      environmentScope - The set of AWS accounts this environment evaluates.

      ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

      SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

      null or omitted: leaves the environment's scope unchanged.

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

      UpdateEnvironmentRequest.Builder environmentScope(EnvironmentScope environmentScope)

      The set of AWS accounts this environment evaluates.

      ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

      SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

      null or omitted: leaves the environment's scope unchanged.

      Parameters:
      environmentScope - The set of AWS accounts this environment evaluates.

      ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.

      SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.

      null or omitted: leaves the environment's scope unchanged.

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

      UpdateEnvironmentRequest.Builder organizationalUnitIds(OrganizationalUnitIdsUpdate organizationalUnitIds)

      The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.

      Parameters:
      organizationalUnitIds - The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • organizationalUnitIds

      default UpdateEnvironmentRequest.Builder organizationalUnitIds(Consumer<OrganizationalUnitIdsUpdate.Builder> organizationalUnitIds)

      The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.

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

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

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

      UpdateEnvironmentRequest.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.