Skip to content

Environment

Source code in docs_src/capo_assurance/types/environment.py
class Environment(TypedDict, closed=True):
    environment_id: "capo_assurance.types.environment_id.EnvironmentId"
    """<p>The unique identifier of the environment.</p>"""
    environment_name: NotRequired[
        "capo_assurance.types.environment_name.EnvironmentName"
    ]
    """<p>The name of the environment.</p>"""
    environment_arn: "capo_assurance.types.resource_arn.ResourceArn"
    """<p>The ARN of this governance environment.</p>"""
    description: NotRequired[
        "capo_assurance.types.environment_description.EnvironmentDescription"
    ]
    """<p>A description of the environment.</p>"""
    identity_store: NotRequired[
        "capo_assurance.types.identity_store_info.IdentityStoreInfo"
    ]
    """<p>The identity store configuration.</p>"""
    domain_prefix: NotRequired["capo_assurance.types.domain_prefix.DomainPrefix"]
    """<p>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.</p>"""
    service_role: NotRequired["capo_assurance.types.iam_role_arn.IamRoleArn"]
    """<p>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.</p>"""
    operator_role: NotRequired["capo_assurance.types.iam_role_arn.IamRoleArn"]
    """<p>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.</p>"""
    kms_key_arn: NotRequired["capo_assurance.types.kms_key_arn.KmsKeyArn"]
    """<p>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.</p>"""
    status: "capo_assurance.types.environment_status.EnvironmentStatus"
    """<p>The current lifecycle state of the environment.</p>"""
    regions: NotRequired["capo_assurance.types.region_list.RegionList"]
    """<p>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.</p>"""
    environment_scope: NotRequired[
        "capo_assurance.types.environment_scope.EnvironmentScope"
    ]
    """<p>The set of AWS accounts this environment evaluates (read-only).</p>"""
    organizational_unit_ids: NotRequired[
        "capo_assurance.types.organizational_unit_id_list.OrganizationalUnitIdList"
    ]
    """<p>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.</p>"""
    evidence_location: NotRequired["capo_assurance.types.s3_uri.S3Uri"]
    """<p>The evidence bucket location. Read-only. To configure evidence sources, use <code>CreateEnvironmentConnection</code>.</p>"""
    tags: NotRequired["capo_assurance.types.tag_list.TagList"]
    """<p>The tags attached to the resource, as key-value pairs.</p>"""
    created_at: NotRequired["datetime.datetime"]
    """<p>The timestamp when the environment was created.</p>"""
    updated_at: NotRequired["datetime.datetime"]
    """<p>The timestamp when the environment was last updated.</p>"""

created_at instance-attribute

created_at: NotRequired[datetime]

The timestamp when the environment was created.

description instance-attribute

description: NotRequired[EnvironmentDescription]

A description of the environment.

domain_prefix instance-attribute

domain_prefix: NotRequired[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.

environment_arn instance-attribute

environment_arn: ResourceArn

The ARN of this governance environment.

environment_id instance-attribute

environment_id: EnvironmentId

The unique identifier of the environment.

environment_name instance-attribute

environment_name: NotRequired[EnvironmentName]

The name of the environment.

environment_scope instance-attribute

environment_scope: NotRequired[EnvironmentScope]

The set of AWS accounts this environment evaluates (read-only).

evidence_location instance-attribute

evidence_location: NotRequired[S3Uri]

The evidence bucket location. Read-only. To configure evidence sources, use CreateEnvironmentConnection.

identity_store instance-attribute

identity_store: NotRequired[IdentityStoreInfo]

The identity store configuration.

kms_key_arn instance-attribute

kms_key_arn: NotRequired[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.

operator_role instance-attribute

operator_role: NotRequired[IamRoleArn]

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.

organizational_unit_ids instance-attribute

organizational_unit_ids: NotRequired[OrganizationalUnitIdList]

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.

regions instance-attribute

regions: NotRequired[RegionList]

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.

service_role instance-attribute

service_role: NotRequired[IamRoleArn]

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.

status instance-attribute

The current lifecycle state of the environment.

tags instance-attribute

tags: NotRequired[TagList]

The tags attached to the resource, as key-value pairs.

updated_at instance-attribute

updated_at: NotRequired[datetime]

The timestamp when the environment was last updated.