Class: Aws::Lambda::Types::AddLayerVersionPermissionRequest

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

Overview

Note:

When making an API call, you may pass AddLayerVersionPermissionRequest data as a hash:

{
  layer_name: "LayerName", # required
  version_number: 1, # required
  statement_id: "StatementId", # required
  action: "LayerPermissionAllowedAction", # required
  principal: "LayerPermissionAllowedPrincipal", # required
  organization_id: "OrganizationId",
  revision_id: "String",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

The API action that grants access to the layer. For example, lambda:GetLayerVersion.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#layer_nameString

The name or Amazon Resource Name (ARN) of the layer.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#organization_idString

With the principal set to *, grant permission to all accounts in the specified organization.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#principalString

An account ID, or * to grant permission to all AWS accounts.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#revision_idString

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#statement_idString

An identifier that distinguishes the policy from others on the same layer version.

Returns:

  • (String)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#version_numberInteger

The version number.

Returns:

  • (Integer)


121
122
123
124
125
126
127
128
129
130
131
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 121

class AddLayerVersionPermissionRequest < Struct.new(
  :layer_name,
  :version_number,
  :statement_id,
  :action,
  :principal,
  :organization_id,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end