Interface CreateEnvironmentRequest.Builder
- All Superinterfaces:
AssuranceRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateEnvironmentRequest.Builder,,CreateEnvironmentRequest> SdkBuilder<CreateEnvironmentRequest.Builder,,CreateEnvironmentRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateEnvironmentRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the environment.domainPrefix(String domainPrefix) The optional custom domain prefix for the environment portal URL.environmentName(String environmentName) The name of the environment.environmentScope(String environmentScope) The set of AWS accounts that the new environment evaluates.environmentScope(EnvironmentScope environmentScope) The set of AWS accounts that the new environment evaluates.default CreateEnvironmentRequest.BuilderidentityStore(Consumer<IdentityStoreConfig.Builder> identityStore) The identity store configuration.identityStore(IdentityStoreConfig identityStore) The identity store configuration.The ARN of an optional AWS KMS key that encrypts evidence.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.organizationalUnitIds(String... organizationalUnitIds) The organizational units to scope the organization environment's evaluation to.organizationalUnitIds(Collection<String> organizationalUnitIds) The organizational units to scope the organization environment's evaluation to.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.tags(Collection<Tag> tags) The tags attached to the resource, as key-value pairs.tags(Consumer<Tag.Builder>... tags) The tags attached to the resource, as key-value pairs.The tags attached to the resource, as key-value pairs.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
-
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
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
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
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 callsts: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
default CreateEnvironmentRequest.Builder identityStore(Consumer<IdentityStoreConfig.Builder> identityStore) The identity store configuration.
This is a convenience method that creates an instance of theIdentityStoreConfig.Builderavoiding the need to create one manually viaIdentityStoreConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toidentityStore(IdentityStoreConfig).- Parameters:
identityStore- a consumer that will call methods onIdentityStoreConfig.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:Decryptandkms:GenerateDataKeypermissions on this key.- Parameters:
kmsKeyArn- The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must havekms:Decryptandkms:GenerateDataKeypermissions 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
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 usesSINGLE_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
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 usesSINGLE_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
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
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEnvironmentRequest.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.
-