Class CfnLayerVersionPermissionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnLayerVersionPermissionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionPermissionMixinProps>
- Enclosing interface:
CfnLayerVersionPermissionMixinProps
@Stability(Stable)
public static final class CfnLayerVersionPermissionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionPermissionMixinProps>
A builder for
CfnLayerVersionPermissionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLayerVersionPermissionMixinProps.getAction()build()Builds the configured instance.layerVersionArn(String layerVersionArn) Sets the value ofCfnLayerVersionPermissionMixinProps.getLayerVersionArn()layerVersionArn(ILayerVersionRef layerVersionArn) Sets the value ofCfnLayerVersionPermissionMixinProps.getLayerVersionArn()organizationId(String organizationId) Sets the value ofCfnLayerVersionPermissionMixinProps.getOrganizationId()Sets the value ofCfnLayerVersionPermissionMixinProps.getPrincipal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnLayerVersionPermissionMixinProps.getAction()- Parameters:
action- The API action that grants access to the layer. For example,lambda:GetLayerVersion.- Returns:
this
-
layerVersionArn
@Stability(Stable) public CfnLayerVersionPermissionMixinProps.Builder layerVersionArn(String layerVersionArn) Sets the value ofCfnLayerVersionPermissionMixinProps.getLayerVersionArn()- Parameters:
layerVersionArn- The name or Amazon Resource Name (ARN) of the layer.- Returns:
this
-
layerVersionArn
@Stability(Stable) public CfnLayerVersionPermissionMixinProps.Builder layerVersionArn(ILayerVersionRef layerVersionArn) Sets the value ofCfnLayerVersionPermissionMixinProps.getLayerVersionArn()- Parameters:
layerVersionArn- The name or Amazon Resource Name (ARN) of the layer.- Returns:
this
-
organizationId
@Stability(Stable) public CfnLayerVersionPermissionMixinProps.Builder organizationId(String organizationId) Sets the value ofCfnLayerVersionPermissionMixinProps.getOrganizationId()- Parameters:
organizationId- With the principal set to*, grant permission to all accounts in the specified organization.- Returns:
this
-
principal
Sets the value ofCfnLayerVersionPermissionMixinProps.getPrincipal()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersionPermissionMixinProps>- Returns:
- a new instance of
CfnLayerVersionPermissionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-