Assurance / Client / update_environment
update_environment¶
- Assurance.Client.update_environment(**kwargs)¶
Updates a governance environment.
See also: AWS API Documentation
Request Syntax
response = client.update_environment( environmentArn='string', description='string', identityStore={ 'config': { 'instanceArn': 'string', 'identityCenterRole': 'string' }, 'disabled': True|False }, operatorRole='string', kmsKeyArn='string', regions=[ 'string', ], environmentScope='ORGANIZATION'|'SINGLE_ACCOUNT', organizationalUnitIds={ 'organizationalUnitIds': [ 'string', ], 'cleared': True|False } )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
description (string) – A description of the environment.
identityStore (dict) –
The update to the identity store configuration. You can provide a new configuration or disable the identity store.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
config,disabled.config (dict) –
The new identity store configuration to apply.
instanceArn (string) – [REQUIRED]
The ARN of your IAM Identity Center instance.
identityCenterRole (string) – [REQUIRED]
The IAM role assumed through Trusted Identity Propagation to issue temporary credentials for IAM Identity Center users. Trust policy must allow the AWS Assurance service principal to sts:AssumeRole and sts:SetContext.
disabled (boolean) –
Specifies whether to disable or remove identity store configuration.
operatorRole (string) – 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.kmsKeyArn (string) – 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.
regions (list) –
The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.
(string) –
An AWS Region code, such as
aa-example-3.
environmentScope (string) –
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.
organizationalUnitIds (dict) –
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.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
organizationalUnitIds,cleared.organizationalUnitIds (list) –
The replacement list of organizational units. Accounts in nested organizational units under a listed organizational unit are included.
(string) –
The ID of an organizational unit (OU) in AWS Organizations.
cleared (boolean) –
Specifies whether to clear OU scoping and evaluate the entire organization.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions