Interface Environment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Environment.Builder,,Environment> SdkBuilder<Environment.Builder,,Environment> SdkPojo
- Enclosing class:
Environment
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the environment was created.description(String description) A description of the environment.domainPrefix(String domainPrefix) The optional custom domain prefix for the environment portal URL.environmentArn(String environmentArn) The ARN of this governance environment.environmentId(String environmentId) The unique identifier of the environment.environmentName(String environmentName) The name of the environment.environmentScope(String environmentScope) The set of AWS accounts this environment evaluates (read-only).environmentScope(EnvironmentScope environmentScope) The set of AWS accounts this environment evaluates (read-only).evidenceLocation(String evidenceLocation) The evidence bucket location.default Environment.BuilderidentityStore(Consumer<IdentityStoreInfo.Builder> identityStore) The identity store configuration.identityStore(IdentityStoreInfo identityStore) The identity store configuration.The ARN of a customer managed AWS KMS key used to encrypt evidence at rest.operatorRole(String operatorRole) The IAM role assumed to issue temporary credentials for operator application users (both IAM and IAM Identity Center flows).organizationalUnitIds(String... organizationalUnitIds) The organizational units this environment's evaluation is scoped to.organizationalUnitIds(Collection<String> organizationalUnitIds) The organizational units this environment's evaluation is scoped to.The AWS Regions in scope for evaluation.regions(Collection<String> regions) The AWS Regions in scope for evaluation.serviceRole(String serviceRole) The IAM role AWS Assurance assumes to discover and evaluate the account's resources.The current lifecycle state of the environment.status(EnvironmentStatus status) The current lifecycle state of the environment.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.The timestamp when the environment was last updated.Methods 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
-
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
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
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 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 theIdentityStoreInfo.Builderavoiding the need to create one manually viaIdentityStoreInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toidentityStore(IdentityStoreInfo).- Parameters:
identityStore- a consumer that will call methods onIdentityStoreInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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
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
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
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
The evidence bucket location. Read-only. To configure evidence sources, use
CreateEnvironmentConnection.- Parameters:
evidenceLocation- The evidence bucket location. Read-only. To configure evidence sources, useCreateEnvironmentConnection.- 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:
-
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
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.
-