Skip to content

Add layer version permissions

async_boto.validation.lambda_.add_layer_version_permissions

AddLayerVersionPermissionRequest

Bases: BaseModel

Request model for the AddLayerVersionPermission operation.

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

ATTRIBUTE DESCRIPTION
LayerName

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

TYPE: str

VersionNumber

The version number.

TYPE: int

RevisionId

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

TYPE: Optional[str]

Action

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

TYPE: str

OrganizationId

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

TYPE: Optional[str]

Principal

An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts.

TYPE: str

StatementId

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

TYPE: str

LayerName instance-attribute

LayerName

VersionNumber instance-attribute

VersionNumber

RevisionId class-attribute instance-attribute

RevisionId = None

Action instance-attribute

Action

OrganizationId class-attribute instance-attribute

OrganizationId = None

Principal instance-attribute

Principal

StatementId instance-attribute

StatementId

AddLayerVersionPermissionResponse

Bases: BaseModel

Response model for the AddLayerVersionPermission operation.

ATTRIBUTE DESCRIPTION
RevisionId

A unique identifier for the current revision of the policy.

TYPE: str

Statement

The permission statement.

TYPE: str

RevisionId instance-attribute

RevisionId

Statement instance-attribute

Statement