class Aws::Lambda::Types::AddLayerVersionPermissionRequest

@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",
    }

@!attribute [rw] layer_name

The name or Amazon Resource Name (ARN) of the layer.
@return [String]

@!attribute [rw] version_number

The version number.
@return [Integer]

@!attribute [rw] statement_id

An identifier that distinguishes the policy from others on the same
layer version.
@return [String]

@!attribute [rw] action

The API action that grants access to the layer. For example,
`lambda:GetLayerVersion`.
@return [String]

@!attribute [rw] principal

An account ID, or `*` to grant layer usage permission to all
accounts in an organization, or all Amazon Web Services accounts (if
`organizationId` is not specified). For the last case, make sure
that you really do want all Amazon Web Services accounts to have
usage permission to this layer.
@return [String]

@!attribute [rw] organization_id

With the principal set to `*`, grant permission to all accounts in
the specified organization.
@return [String]

@!attribute [rw] revision_id

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.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermissionRequest AWS API Documentation

Constants

SENSITIVE