class Aws::LexModelsV2::Types::CreateResourcePolicyStatementRequest
@note When making an API call, you may pass CreateResourcePolicyStatementRequest
data as a hash: { resource_arn: "AmazonResourceName", # required statement_id: "Name", # required effect: "Allow", # required, accepts Allow, Deny principal: [ # required { service: "ServicePrincipal", arn: "PrincipalArn", }, ], action: ["Operation"], # required condition: { "ConditionOperator" => { "ConditionKey" => "ConditionValue", }, }, expected_revision_id: "RevisionId", }
@!attribute [rw] resource_arn
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. @return [String]
@!attribute [rw] statement_id
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][1]. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html @return [String]
@!attribute [rw] effect
Determines whether the statement allows or denies access to the resource. @return [String]
@!attribute [rw] principal
An IAM principal, such as an IAM users, IAM roles, or AWS services that is allowed or denied access to a resource. For more information, see [AWS JSON policy elements: Principal][1]. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html @return [Array<Types::Principal>]
@!attribute [rw] action
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][1]. [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html @return [Array<String>]
@!attribute [rw] condition
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 ][1]. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html @return [Hash<String,Hash<String,String>>]
@!attribute [rw] expected_revision_id
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. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateResourcePolicyStatementRequest AWS API Documentation
Constants
- SENSITIVE