Class: Aws::Lambda::Types::PutResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lambda::Types::PutResourcePolicyRequest
- Defined in:
- gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#policy ⇒ String
The policy document you want to add to your Lambda resource.
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to.
-
#revision_id ⇒ String
The revision ID that the existing policy must match for the replacement to proceed.
Instance Attribute Details
#policy ⇒ String
The policy document you want to add to your Lambda resource. This is formatted as a JSON string.
For more information, see Working with resource-based policies in Lambda in the Lambda Developer Guide.
8376 8377 8378 8379 8380 8381 8382 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 8376 class PutResourcePolicyRequest < Struct.new( :resource_arn, :policy, :revision_id) SENSITIVE = [] include Aws::Structure end |
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
8376 8377 8378 8379 8380 8381 8382 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 8376 class PutResourcePolicyRequest < Struct.new( :resource_arn, :policy, :revision_id) SENSITIVE = [] include Aws::Structure end |
#revision_id ⇒ String
The revision ID that the existing policy must match for the
replacement to proceed. If the revision ID doesn't match, the
operation fails with a PreconditionFailedException error. To
retrieve the current revision ID, use the GetResourcePolicy
operation.
8376 8377 8378 8379 8380 8381 8382 |
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 8376 class PutResourcePolicyRequest < Struct.new( :resource_arn, :policy, :revision_id) SENSITIVE = [] include Aws::Structure end |