Assurance / Client / get_environment
get_environment¶
- Assurance.Client.get_environment(**kwargs)¶
Retrieves a governance environment by ARN or domain. Provide exactly one of
environmentArnordomain.See also: AWS API Documentation
Request Syntax
response = client.get_environment( lookup={ 'environmentArn': 'string', 'domain': 'string' } )
- Parameters:
lookup (dict) –
[REQUIRED]
The lookup criteria used to resolve the item.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
environmentArn,domain.environmentArn (string) –
Specifies lookup by environment ARN.
domain (string) –
Specifies lookup by domain prefix or UUID.
- Return type:
dict
- Returns:
Response Syntax
{ 'environment': { 'environmentId': 'string', 'environmentName': 'string', 'environmentArn': 'string', 'description': 'string', 'identityStore': { 'applicationArn': 'string', 'instanceArn': 'string', 'region': 'string', 'identityCenterRole': 'string' }, 'domainPrefix': 'string', 'serviceRole': 'string', 'operatorRole': 'string', 'kmsKeyArn': 'string', 'status': 'CREATED', 'regions': [ 'string', ], 'environmentScope': 'ORGANIZATION'|'SINGLE_ACCOUNT', 'organizationalUnitIds': [ 'string', ], 'evidenceLocation': 'string', 'tags': [ { 'key': 'string', 'value': 'string' }, ], 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
environment (dict) –
The governance environment that was retrieved.
environmentId (string) –
The unique identifier of the environment.
environmentName (string) –
The name of the environment.
environmentArn (string) –
The ARN of this governance environment.
description (string) –
A description of the environment.
identityStore (dict) –
The identity store configuration.
applicationArn (string) –
The IAM Identity Center application ARN—created and managed by AWS Assurance.
instanceArn (string) –
The ARN of your IAM Identity Center instance, as provided at create or update time.
region (string) –
The AWS Region of the IAM Identity Center instance.
identityCenterRole (string) –
The IAM role assumed through Trusted Identity Propagation to issue temporary credentials for IAM Identity Center users.
domainPrefix (string) –
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.
serviceRole (string) –
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.
operatorRole (string) –
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.
kmsKeyArn (string) –
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.
status (string) –
The current lifecycle state of the environment.
regions (list) –
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.
(string) –
An AWS Region code, such as
aa-example-3.
environmentScope (string) –
The set of AWS accounts this environment evaluates (read-only).
organizationalUnitIds (list) –
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.
(string) –
The ID of an organizational unit (OU) in AWS Organizations.
evidenceLocation (string) –
The evidence bucket location. Read-only. To configure evidence sources, use
CreateEnvironmentConnection.tags (list) –
The tags attached to the resource, as key-value pairs.
(dict) –
A key-value tag.
key (string) –
The tag key.
value (string) –
The tag value.
createdAt (datetime) –
The timestamp when the environment was created.
updatedAt (datetime) –
The timestamp when the environment was last updated.
Exceptions
Assurance.Client.exceptions.ValidationExceptionAssurance.Client.exceptions.InternalServerExceptionAssurance.Client.exceptions.ThrottlingExceptionAssurance.Client.exceptions.AccessDeniedExceptionAssurance.Client.exceptions.ResourceNotFoundException