Interface CfnLayerVersionPermissionProps
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- CfnLayerVersionPermissionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:42.584Z")
@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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLayerVersionPermissionPropsstatic final classAn implementation forCfnLayerVersionPermissionProps
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()The API action that grants access to the layer.The name or Amazon Resource Name (ARN) of the layer.default StringWith 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 (iforganizationIdis not specified).Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getActionThe API action that grants access to the layer.For example, lambda:GetLayerVersion.- See Also:
 
- 
getLayerVersionArnThe name or Amazon Resource Name (ARN) of the layer.- See Also:
 
- 
getPrincipalAn account ID, or*to grant layer usage permission to all accounts in an organization, or all AWS accounts (iforganizationIdis 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:
 
- 
getOrganizationIdWith the principal set to*, grant permission to all accounts in the specified organization.- See Also:
 
- 
builder
 
-