Skip to content

CreateEnvironmentInput

Source code in docs_src/capo_assurance/types/create_environment_input.py
class CreateEnvironmentInput(TypedDict, closed=True):
    environment_name: "capo_assurance.types.environment_name.EnvironmentName"
    """<p>The name of the environment.</p>"""
    description: NotRequired[
        "capo_assurance.types.environment_description.EnvironmentDescription"
    ]
    """<p>A description of the environment.</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>"""
    operator_role: NotRequired["capo_assurance.types.iam_role_arn.IamRoleArn"]
    """<p>The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call <code>sts:AssumeRole</code>.</p>"""
    identity_store: NotRequired[
        "capo_assurance.types.identity_store_config.IdentityStoreConfig"
    ]
    """<p>The identity store configuration.</p>"""
    kms_key_arn: NotRequired["capo_assurance.types.kms_key_arn.KmsKeyArn"]
    """<p>The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have <code>kms:Decrypt</code> and <code>kms:GenerateDataKey</code> permissions on this key.</p>"""
    regions: NotRequired["capo_assurance.types.region_list.RegionList"]
    """<p>The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.</p>"""
    environment_scope: NotRequired[
        "capo_assurance.types.environment_scope.EnvironmentScope"
    ]
    """<p>The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses <code>SINGLE_ACCOUNT</code>. Valid values:</p> <ul> <li> <p> <code>ORGANIZATION</code> – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.</p> </li> <li> <p> <code>SINGLE_ACCOUNT</code> – Evaluates only the account where you create the environment.</p> </li> </ul>"""
    organizational_unit_ids: NotRequired[
        "capo_assurance.types.organizational_unit_id_list.OrganizationalUnitIdList"
    ]
    """<p>The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.</p>"""
    tags: NotRequired["capo_assurance.types.tag_list.TagList"]
    """<p>The tags attached to the resource, as key-value pairs.</p>"""

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_name instance-attribute

environment_name: EnvironmentName

The name of the environment.

environment_scope instance-attribute

environment_scope: NotRequired[EnvironmentScope]

The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses SINGLE_ACCOUNT. Valid values:

  • ORGANIZATION – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.

  • SINGLE_ACCOUNT – Evaluates only the account where you create the environment.

identity_store instance-attribute

identity_store: NotRequired[IdentityStoreConfig]

The identity store configuration.

kms_key_arn instance-attribute

kms_key_arn: NotRequired[KmsKeyArn]

The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have kms:Decrypt and kms:GenerateDataKey permissions on this key.

operator_role instance-attribute

operator_role: NotRequired[IamRoleArn]

The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call sts:AssumeRole.

organizational_unit_ids instance-attribute

organizational_unit_ids: NotRequired[OrganizationalUnitIdList]

The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.

regions instance-attribute

regions: NotRequired[RegionList]

The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.

tags instance-attribute

tags: NotRequired[TagList]

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