@Stability(value=Stable) public static final class CfnLayerVersionPermission.Builder extends Object implements software.amazon.jsii.Builder<CfnLayerVersionPermission>
CfnLayerVersionPermission.| Modifier and Type | Method and Description |
|---|---|
CfnLayerVersionPermission.Builder |
action(String action)
The API action that grants access to the layer.
|
CfnLayerVersionPermission |
build() |
static CfnLayerVersionPermission.Builder |
create(Construct scope,
String id) |
CfnLayerVersionPermission.Builder |
layerVersionArn(String layerVersionArn)
The name or Amazon Resource Name (ARN) of the layer.
|
CfnLayerVersionPermission.Builder |
organizationId(String organizationId)
With the principal set to `*` , grant permission to all accounts in the specified organization.
|
CfnLayerVersionPermission.Builder |
principal(String 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).
|
@Stability(value=Stable) public static CfnLayerVersionPermission.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnLayerVersionPermission.Builder.@Stability(value=Stable) public CfnLayerVersionPermission.Builder action(String action)
For example, lambda:GetLayerVersion .
action - The API action that grants access to the layer. This parameter is required.this@Stability(value=Stable) public CfnLayerVersionPermission.Builder layerVersionArn(String layerVersionArn)
layerVersionArn - The name or Amazon Resource Name (ARN) of the layer. This parameter is required.this@Stability(value=Stable) public CfnLayerVersionPermission.Builder principal(String principal)
For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
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). This parameter is required.this@Stability(value=Stable) public CfnLayerVersionPermission.Builder organizationId(String organizationId)
organizationId - With the principal set to `*` , grant permission to all accounts in the specified organization. This parameter is required.this@Stability(value=Stable) public CfnLayerVersionPermission build()
build in interface software.amazon.jsii.Builder<CfnLayerVersionPermission>Copyright © 2023. All rights reserved.