Skip to content

CreateAgentContextRequest

Source code in docs_src/capo_context/types/create_agent_context_request.py
class CreateAgentContextRequest(TypedDict, closed=True):
    client_token: NotRequired["capo_context.types.client_token.ClientToken"]
    """<p>Client idempotency token. The AWS SDKs generate one when it is absent. An identical request with the same token returns the existing agent context. The same token with a different request returns ValidationException. <code>trustedIdentitySources</code> with the same entries in another order is the same request.</p>"""
    name: NotRequired["capo_context.types.resource_name.ResourceName"]
    """<p>Optional. The name of the agent context. If you omit it, the name is <code>default</code>. You can change it later with UpdateAgentContext.</p>"""
    description: NotRequired["capo_context.types.user_defined_string.UserDefinedString"]
    """<p>Optional human-readable description of the agent context. An empty string is the same as none.</p>"""
    connection_mappings: (
        "capo_context.types.connection_mapping_list.ConnectionMappingList"
    )
    """<p>The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns <code>ValidationException</code>. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be <code>ACTIVE</code>. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.</p>"""
    trace_analysis_config: NotRequired[
        "capo_context.types.trace_analysis_config.TraceAnalysisConfig"
    ]
    """<p>The agent context's trace analysis settings. Optional. You can change it with UpdateAgentContext.</p>"""
    workforce_sign_in_config: NotRequired[
        "capo_context.types.workforce_sign_in_config.WorkforceSignInConfig"
    ]
    """<p>Optional workforce sign-in settings. A config with <code>signInUrl</code> turns sign-in on (<code>status</code> defaults to ENABLED). <code>status</code> ENABLED without <code>signInUrl</code> is a ValidationException. You can change it with UpdateAgentContext.</p>"""
    entity_resolution_config: NotRequired[
        "capo_context.types.entity_resolution_config.EntityResolutionConfig"
    ]
    """<p>Optional entity resolution settings. When the config or its <code>status</code> is absent, <code>status</code> reads ENABLED. You can change it with UpdateAgentContext.</p>"""
    trusted_identity_sources: NotRequired[
        "capo_context.types.trusted_identity_source_list.TrustedIdentitySourceList"
    ]
    """<p>Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.</p>"""
    tags: NotRequired["capo_context.types.tag_map.TagMap"]
    """<p>Tags to add to the agent context when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with <code>aws:</code>. To add tags, you also need <code>context:TagResource</code> permission on the new agent context. If you specify more than 50 user tags, the request fails with <code>ServiceQuotaExceededException</code>, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with <code>ValidationException</code>.</p>"""
    curation_policy_ids: NotRequired[
        "capo_context.types.curation_policy_identifier_list.CurationPolicyIdentifierList"
    ]
    """<p>Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be <code>ACTIVE</code> and owned by your account, and you need <code>context:AssociateCurationPolicy</code> permission on each. AWS Context checks both again on a <code>clientToken</code> retry. If a policy doesn't exist, the request fails with <code>ResourceNotFoundException</code>. If one has been deleted, it fails with <code>ConflictException</code>. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

Client idempotency token. The AWS SDKs generate one when it is absent. An identical request with the same token returns the existing agent context. The same token with a different request returns ValidationException. trustedIdentitySources with the same entries in another order is the same request.

connection_mappings instance-attribute

connection_mappings: ConnectionMappingList

The connection mappings for this agent context, up to 20. CreateAgentContext requires at least one: an empty list returns ValidationException. Each entry binds a connection to one or more ontologies, optionally scoped by a data filter, extraction depth, and path segments. Each referenced connection must exist, be owned by your account, and be ACTIVE. Order is significant. When several connections reach the same AWS Glue Data Catalog table, AWS Context tries the connection mapped first, with its own access, and then the next.

curation_policy_ids instance-attribute

curation_policy_ids: NotRequired[CurationPolicyIdentifierList]

Curation policies to associate with the new agent context, as IDs or ARNs, instead of the default curation policies. If you omit it or the list is empty, AWS Context associates the default curation policies. Each policy must be ACTIVE and owned by your account, and you need context:AssociateCurationPolicy permission on each. AWS Context checks both again on a clientToken retry. If a policy doesn't exist, the request fails with ResourceNotFoundException. If one has been deleted, it fails with ConflictException. Change the policies later with AssociateCurationPolicy and DisassociateCurationPolicy.

description instance-attribute

description: NotRequired[UserDefinedString]

Optional human-readable description of the agent context. An empty string is the same as none.

entity_resolution_config instance-attribute

entity_resolution_config: NotRequired[EntityResolutionConfig]

Optional entity resolution settings. When the config or its status is absent, status reads ENABLED. You can change it with UpdateAgentContext.

name instance-attribute

name: NotRequired[ResourceName]

Optional. The name of the agent context. If you omit it, the name is default. You can change it later with UpdateAgentContext.

tags instance-attribute

tags: NotRequired[TagMap]

Tags to add to the agent context when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new agent context. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.

trace_analysis_config instance-attribute

trace_analysis_config: NotRequired[TraceAnalysisConfig]

The agent context's trace analysis settings. Optional. You can change it with UpdateAgentContext.

trusted_identity_sources instance-attribute

trusted_identity_sources: NotRequired[TrustedIdentitySourceList]

Optional identity sources to trust in addition to your account. At most 100 unique entries, each with exactly one member. Order is not significant. An empty list and an absent member are the same value: only your account is trusted. You can change it with UpdateAgentContext.

workforce_sign_in_config instance-attribute

workforce_sign_in_config: NotRequired[WorkforceSignInConfig]

Optional workforce sign-in settings. A config with signInUrl turns sign-in on (status defaults to ENABLED). status ENABLED without signInUrl is a ValidationException. You can change it with UpdateAgentContext.