UpdateEnvironment
Updates a governance environment.
Request Parameters
- description
-
A description of the environment.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 512.
Required: No
- environmentArn
-
The ARN of this governance environment.
Type: String
Length Constraints: Minimum length of 3. Maximum length of 2048.
Pattern:
(arn:aws[a-zA-Z-]*:assurance:[a-z0-9-]+:[0-9]{12}:environment/[a-zA-Z0-9][a-zA-Z0-9\-]*|[a-zA-Z0-9][a-zA-Z0-9\-]*)Required: Yes
- 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.
Type: String
Valid Values:
ORGANIZATION | SINGLE_ACCOUNTRequired: No
- identityStore
-
The update to the identity store configuration. You can provide a new configuration or disable the identity store.
Type: IdentityStoreUpdate object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
- 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.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 2048.
Pattern:
$|^arn:aws[a-zA-Z-]*:kms:[a-z0-9-]+:[0-9]{12}:key/[a-zA-Z0-9-]+Required: No
- 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.Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
arn:aws[a-zA-Z-]*:iam::[0-9]{12}:role/.+Required: No
- 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.
Type: OrganizationalUnitIdsUpdate object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
- regions
-
The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Length Constraints: Minimum length of 1. Maximum length of 64.
Required: No
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
HTTP Status Code: 403
- ConflictException
-
A conflict occurred (for example, resource already exists).
HTTP Status Code: 409
- InternalServerException
-
An internal server error occurred.
HTTP Status Code: 500
- ResourceNotFoundException
-
The requested resource was not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was throttled.
HTTP Status Code: 429
- ValidationException
-
The request failed validation.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: