Skip to content

CreateResourcePolicyStatementRequest

Source code in docs_src/capo_lex_models_v2/types/create_resource_policy_statement_request.py
class CreateResourcePolicyStatementRequest(TypedDict, closed=True):
    resource_arn: "capo_lex_models_v2.types.amazon_resource_name.AmazonResourceName"
    """<p>The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.</p>"""
    statement_id: "capo_lex_models_v2.types.name.Name"
    """<p>The name of the statement. The ID is the same as the <code>Sid</code> IAM property. The statement name must be unique within the policy. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html">IAM JSON policy elements: Sid</a>. </p>"""
    effect: "capo_lex_models_v2.types.effect.Effect"
    """<p>Determines whether the statement allows or denies access to the resource.</p>"""
    principal: "capo_lex_models_v2.types.principal_list.PrincipalList"
    """<p>An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html">Amazon Web Services JSON policy elements: Principal</a>.</p>"""
    action: "capo_lex_models_v2.types.operation_list.OperationList"
    """<p>The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html"> Actions, resources, and condition keys for Amazon Lex V2</a>.</p>"""
    condition: NotRequired["capo_lex_models_v2.types.condition_map.ConditionMap"]
    """<p>Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html">IAM JSON policy elements: Condition </a>.</p>"""
    expected_revision_id: NotRequired["capo_lex_models_v2.types.revision_id.RevisionId"]
    """<p>The identifier of the revision of the policy to edit. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.</p> <p>If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.</p>"""

action instance-attribute

action: OperationList

The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.

condition instance-attribute

condition: NotRequired[ConditionMap]

Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.

For more information, see IAM JSON policy elements: Condition .

effect instance-attribute

effect: Effect

Determines whether the statement allows or denies access to the resource.

expected_revision_id instance-attribute

expected_revision_id: NotRequired[RevisionId]

The identifier of the revision of the policy to edit. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.

If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.

principal instance-attribute

principal: PrincipalList

An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.

resource_arn instance-attribute

resource_arn: AmazonResourceName

The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

statement_id instance-attribute

statement_id: Name

The name of the statement. The ID is the same as the Sid IAM property. The statement name must be unique within the policy. For more information, see IAM JSON policy elements: Sid.