Interface CfnLayerVersionPermissionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLayerVersionPermissionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-08-15T01:32:50.330Z")
@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();
- See Also:
-
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
.- See Also:
-
getLayerVersionArn
The name or Amazon Resource Name (ARN) of the layer.- See Also:
-
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.
- See Also:
-
getOrganizationId
With the principal set to*
, grant permission to all accounts in the specified organization.- See Also:
-
builder
-