Interface UpdateEnvironmentRequest.Builder
- All Superinterfaces:
AssuranceRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<UpdateEnvironmentRequest.Builder,,UpdateEnvironmentRequest> SdkBuilder<UpdateEnvironmentRequest.Builder,,UpdateEnvironmentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateEnvironmentRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the environment.environmentArn(String environmentArn) The ARN of this governance environment.environmentScope(String environmentScope) The set of AWS accounts this environment evaluates.environmentScope(EnvironmentScope environmentScope) The set of AWS accounts this environment evaluates.default UpdateEnvironmentRequest.BuilderidentityStore(Consumer<IdentityStoreUpdate.Builder> identityStore) The update to the identity store configuration.identityStore(IdentityStoreUpdate identityStore) The update to the identity store configuration.The ARN of the AWS KMS key that encrypts evidence.operatorRole(String operatorRole) The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application.default UpdateEnvironmentRequest.BuilderorganizationalUnitIds(Consumer<OrganizationalUnitIdsUpdate.Builder> organizationalUnitIds) The replacement organizational unit scope for the environment.organizationalUnitIds(OrganizationalUnitIdsUpdate organizationalUnitIds) The replacement organizational unit scope for the environment.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The AWS Regions to evaluate across.regions(Collection<String> regions) The AWS Regions to evaluate across.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
default UpdateEnvironmentRequest.Builder identityStore(Consumer<IdentityStoreUpdate.Builder> 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 theIdentityStoreUpdate.Builderavoiding the need to create one manually viaIdentityStoreUpdate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toidentityStore(IdentityStoreUpdate).- Parameters:
identityStore- a consumer that will call methods onIdentityStoreUpdate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 callsts: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
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
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 theOrganizationalUnitIdsUpdate.Builderavoiding the need to create one manually viaOrganizationalUnitIdsUpdate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorganizationalUnitIds(OrganizationalUnitIdsUpdate).- Parameters:
organizationalUnitIds- a consumer that will call methods onOrganizationalUnitIdsUpdate.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateEnvironmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-