AddLayerVersionPermissionRequest
¶
Source code in docs_src/capo_lambda/types/add_layer_version_permission_request.py
action
instance-attribute
¶
action: LayerPermissionAllowedAction
The API action that grants access to the layer. For example, lambda:GetLayerVersion.
layer_name
instance-attribute
¶
layer_name: LayerName
The name or Amazon Resource Name (ARN) of the layer.
organization_id
instance-attribute
¶
organization_id: NotRequired[OrganizationId]
With the principal set to *, grant permission to all accounts in the specified organization.
principal
instance-attribute
¶
principal: LayerPermissionAllowedPrincipal
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.
revision_id
instance-attribute
¶
revision_id: NotRequired[String]
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.
statement_id
instance-attribute
¶
statement_id: StatementId
An identifier that distinguishes the policy from others on the same layer version.