Class: Aws::Lambda::Types::PutResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policyString

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.

Returns:

  • (String)


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_arnString

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.

Returns:

  • (String)


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_idString

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.

Returns:

  • (String)


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