Skip to content

AddLayerVersionPermissionRequest

Source code in docs_src/capo_lambda/types/add_layer_version_permission_request.py
class AddLayerVersionPermissionRequest(TypedDict, closed=True):
    layer_name: "capo_lambda.types.layer_name.LayerName"
    """<p>The name or Amazon Resource Name (ARN) of the layer.</p>"""
    version_number: "capo_lambda.types.layer_version_number.LayerVersionNumber"
    """<p>The version number.</p>"""
    statement_id: "capo_lambda.types.statement_id.StatementId"
    """<p>An identifier that distinguishes the policy from others on the same layer version.</p>"""
    action: (
        "capo_lambda.types.layer_permission_allowed_action.LayerPermissionAllowedAction"
    )
    """<p>The API action that grants access to the layer. For example, <code>lambda:GetLayerVersion</code>.</p>"""
    principal: "capo_lambda.types.layer_permission_allowed_principal.LayerPermissionAllowedPrincipal"
    """<p>An account ID, or <code>*</code> to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if <code>organizationId</code> 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. </p>"""
    organization_id: NotRequired["capo_lambda.types.organization_id.OrganizationId"]
    """<p>With the principal set to <code>*</code>, grant permission to all accounts in the specified organization.</p>"""
    revision_id: NotRequired["capo_lambda.types.string.String"]
    """<p>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.</p>"""

action instance-attribute

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

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.

version_number instance-attribute

version_number: LayerVersionNumber

The version number.