Class CfnLayerVersionPermissionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnLayerVersionPermissionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionPermissionPropsMixin>
- Enclosing class:
CfnLayerVersionPermissionPropsMixin
@Stability(Stable)
public static final class CfnLayerVersionPermissionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionPermissionPropsMixin>
A fluent builder for
CfnLayerVersionPermissionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe API action that grants access to the layer.build()create()create(CfnPropertyMixinOptions options) layerVersionArn(String layerVersionArn) The name or Amazon Resource Name (ARN) of the layer.organizationId(String organizationId) With the principal set to*, grant permission to all accounts in the specified organization.An account ID, or*to grant layer usage permission to all accounts in an organization, or all AWS accounts (iforganizationIdis not specified).
-
Method Details
-
create
@Stability(Stable) public static CfnLayerVersionPermissionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnLayerVersionPermissionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnLayerVersionPermissionPropsMixin.Builder.
-
action
The API action that grants access to the layer.For example,
lambda:GetLayerVersion.- Parameters:
action- The API action that grants access to the layer. This parameter is required.- Returns:
this- See Also:
-
layerVersionArn
@Stability(Stable) public CfnLayerVersionPermissionPropsMixin.Builder layerVersionArn(String layerVersionArn) The name or Amazon Resource Name (ARN) of the layer.- Parameters:
layerVersionArn- The name or Amazon Resource Name (ARN) of the layer. This parameter is required.- Returns:
this- See Also:
-
organizationId
@Stability(Stable) public CfnLayerVersionPermissionPropsMixin.Builder organizationId(String organizationId) With the principal set to*, grant permission to all accounts in the specified organization.- Parameters:
organizationId- With the principal set to*, grant permission to all accounts in the specified organization. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
principal- An account ID, or*to grant layer usage permission to all accounts in an organization, or all AWS accounts (iforganizationIdis not specified). This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersionPermissionPropsMixin>- Returns:
- a newly built instance of
CfnLayerVersionPermissionPropsMixin.
-