@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.411Z") @Stability(value=Stable) public interface CfnLayerVersionPermissionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CfnLayerVersionPermissionProps cfnLayerVersionPermissionProps = CfnLayerVersionPermissionProps.builder()
.action("action")
.layerVersionArn("layerVersionArn")
.principal("principal")
// the properties below are optional
.organizationId("organizationId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLayerVersionPermissionProps.Builder
A builder for
CfnLayerVersionPermissionProps |
static class |
CfnLayerVersionPermissionProps.Jsii$Proxy
An implementation for
CfnLayerVersionPermissionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnLayerVersionPermissionProps.Builder |
builder() |
String |
getAction()
The API action that grants access to the layer.
|
String |
getLayerVersionArn()
The name or Amazon Resource Name (ARN) of the layer.
|
default String |
getOrganizationId()
With the principal set to `*` , grant permission to all accounts in the specified organization.
|
String |
getPrincipal()
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) @NotNull String getAction()
For example, lambda:GetLayerVersion .
@Stability(value=Stable) @NotNull String getLayerVersionArn()
@Stability(value=Stable) @NotNull String getPrincipal()
For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
@Stability(value=Stable) @Nullable default String getOrganizationId()
@Stability(value=Stable) static CfnLayerVersionPermissionProps.Builder builder()
Copyright © 2022. All rights reserved.