You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AddLayerVersionPermissionRequest as input to an Aws::Client method, you can use a vanilla 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",
}

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

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

Returns:

  • (String)

    The API action that grants access to the layer.

#layer_nameString

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

Returns:

  • (String)

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

#organization_idString

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

Returns:

  • (String)

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

#principalString

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

Returns:

  • (String)

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

#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)

    Only update the policy if the revision ID matches the ID specified.

#statement_idString

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

Returns:

  • (String)

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

#version_numberInteger

The version number.

Returns:

  • (Integer)

    The version number.