Class: Aws::LexModelsV2::Types::CreateResourcePolicyStatementRequest
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Aws::LexModelsV2::Types::CreateResourcePolicyStatementRequest
 
 
- Includes:
 - Structure
 
- Defined in:
 - lib/aws-sdk-lexmodelsv2/types.rb
 
Overview
Constant Summary collapse
- SENSITIVE =
 []
Instance Attribute Summary collapse
- 
  
    
      #action  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The Amazon Lex action that this policy either allows or denies.
 - 
  
    
      #condition  ⇒ Hash<String,Hash<String,String>> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Specifies a condition when the policy is in effect.
 - 
  
    
      #effect  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Determines whether the statement allows or denies access to the resource.
 - 
  
    
      #expected_revision_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The identifier of the revision of the policy to edit.
 - 
  
    
      #principal  ⇒ Array<Types::Principal> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource.
 - 
  
    
      #resource_arn  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
 - 
  
    
      #statement_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the statement.
 
Instance Attribute Details
#action ⇒ Array<String>
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]: docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlexv2.html
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#condition ⇒ Hash<String,Hash<String,String>>
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]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#effect ⇒ String
Determines whether the statement allows or denies access to the resource.
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#expected_revision_id ⇒ String
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.
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#principal ⇒ Array<Types::Principal>
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].
[1]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  | 
  
#statement_id ⇒ String
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]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html
      4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293  | 
    
      # File 'lib/aws-sdk-lexmodelsv2/types.rb', line 4283 class CreateResourcePolicyStatementRequest < Struct.new( :resource_arn, :statement_id, :effect, :principal, :action, :condition, :expected_revision_id) SENSITIVE = [] include Aws::Structure end  |