Interface CfnLayerVersionPermissionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLayerVersionPermissionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.664Z")
@Stability(Stable)
public interface CfnLayerVersionPermissionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLayerVersionPermission
.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLayerVersionPermissionProps
static final class
An implementation forCfnLayerVersionPermissionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The API action that grants access to the layer.The name or Amazon Resource Name (ARN) of the layer.default String
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 (iforganizationId
is not specified).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
The API action that grants access to the layer.For example,
lambda:GetLayerVersion
. -
getLayerVersionArn
The name or Amazon Resource Name (ARN) of the layer. -
getPrincipal
An account ID, or*
to grant layer usage permission to all accounts in an organization, or all AWS accounts (iforganizationId
is not specified).For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
-
getOrganizationId
With the principal set to*
, grant permission to all accounts in the specified organization. -
builder
-