CfnLayerVersionPermissionMixinProps

class aws_cdk.mixins_preview.aws_lambda.mixins.CfnLayerVersionPermissionMixinProps(*, action=None, layer_version_arn=None, organization_id=None, principal=None)

Bases: object

Properties for CfnLayerVersionPermissionPropsMixin.

Parameters:
  • action (Optional[str]) – The API action that grants access to the layer. For example, lambda:GetLayerVersion .

  • layer_version_arn (Optional[str]) – The name or Amazon Resource Name (ARN) of the layer.

  • organization_id (Optional[str]) – With the principal set to * , grant permission to all accounts in the specified organization.

  • principal (Optional[str]) – An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId is not specified). For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_lambda import mixins as lambda_mixins

cfn_layer_version_permission_mixin_props = lambda_mixins.CfnLayerVersionPermissionMixinProps(
    action="action",
    layer_version_arn="layerVersionArn",
    organization_id="organizationId",
    principal="principal"
)

Attributes

action

The API action that grants access to the layer.

For example, lambda:GetLayerVersion .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action

layer_version_arn

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn

organization_id

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid

principal

An account ID, or * to grant layer usage permission to all accounts in an organization, or all AWS accounts (if organizationId is not specified).

For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal