lambda_add_layer_version_permission: Adds permissions to the resource-based policy of a version of...

View source: R/lambda_operations.R

lambda_add_layer_version_permissionR Documentation

Adds permissions to the resource-based policy of a version of an Lambda layer

Description

Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.

See https://www.paws-r-sdk.com/docs/lambda_add_layer_version_permission/ for full documentation.

Usage

lambda_add_layer_version_permission(
  LayerName,
  VersionNumber,
  StatementId,
  Action,
  Principal,
  OrganizationId = NULL,
  RevisionId = NULL
)

Arguments

LayerName

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

VersionNumber

[required] The version number.

StatementId

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

Action

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

Principal

[required] 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.

OrganizationId

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

RevisionId

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.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.