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();
 
  • Method Details

    • getAction

      @Stability(Stable) @NotNull String getAction()
      The API action that grants access to the layer.

      For example, lambda:GetLayerVersion .

    • getLayerVersionArn

      @Stability(Stable) @NotNull String getLayerVersionArn()
      The name or Amazon Resource Name (ARN) of the layer.
    • getPrincipal

      @Stability(Stable) @NotNull 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).

      For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.

    • getOrganizationId

      @Stability(Stable) @Nullable default String getOrganizationId()
      With the principal set to * , grant permission to all accounts in the specified organization.
    • builder

      @Stability(Stable) static CfnLayerVersionPermissionProps.Builder builder()
      Returns:
      a CfnLayerVersionPermissionProps.Builder of CfnLayerVersionPermissionProps