CfnLayerVersionPermissionMixinProps
- class aws_cdk.mixins_preview.aws_lambda.mixins.CfnLayerVersionPermissionMixinProps(*, action=None, layer_version_arn=None, organization_id=None, principal=None)
Bases:
objectProperties 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 (iforganizationIdis not specified). For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
- See:
- 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.
- layer_version_arn
The name or Amazon Resource Name (ARN) of the layer.
- organization_id
With the principal set to
*, grant permission to all accounts in the specified organization.
- principal
An account ID, or
*to grant layer usage permission to all accounts in an organization, or all AWS accounts (iforganizationIdis not specified).For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.