@Stability(value=Stable) public static final class CfnLayerVersionPermissionProps.Builder extends Object implements software.amazon.jsii.Builder<CfnLayerVersionPermissionProps>
CfnLayerVersionPermissionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnLayerVersionPermissionProps.Builder |
action(String action)
Sets the value of
CfnLayerVersionPermissionProps.getAction() |
CfnLayerVersionPermissionProps |
build()
Builds the configured instance.
|
CfnLayerVersionPermissionProps.Builder |
layerVersionArn(String layerVersionArn)
Sets the value of
CfnLayerVersionPermissionProps.getLayerVersionArn() |
CfnLayerVersionPermissionProps.Builder |
organizationId(String organizationId)
Sets the value of
CfnLayerVersionPermissionProps.getOrganizationId() |
CfnLayerVersionPermissionProps.Builder |
principal(String principal)
Sets the value of
CfnLayerVersionPermissionProps.getPrincipal() |
@Stability(value=Stable) public CfnLayerVersionPermissionProps.Builder action(String action)
CfnLayerVersionPermissionProps.getAction()action - The API action that grants access to the layer. This parameter is required.
For example, lambda:GetLayerVersion .this@Stability(value=Stable) public CfnLayerVersionPermissionProps.Builder layerVersionArn(String layerVersionArn)
CfnLayerVersionPermissionProps.getLayerVersionArn()layerVersionArn - The name or Amazon Resource Name (ARN) of the layer. This parameter is required.this@Stability(value=Stable) public CfnLayerVersionPermissionProps.Builder principal(String principal)
CfnLayerVersionPermissionProps.getPrincipal()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.
For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.this@Stability(value=Stable) public CfnLayerVersionPermissionProps.Builder organizationId(String organizationId)
CfnLayerVersionPermissionProps.getOrganizationId()organizationId - With the principal set to `*` , grant permission to all accounts in the specified organization.this@Stability(value=Stable) public CfnLayerVersionPermissionProps build()
build in interface software.amazon.jsii.Builder<CfnLayerVersionPermissionProps>CfnLayerVersionPermissionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.