Class LayerVersionPermission.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.LayerVersionPermission.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LayerVersionPermission>
- Enclosing interface:
LayerVersionPermission
@Stability(Stable)
public static final class LayerVersionPermission.Builder
extends Object
implements software.amazon.jsii.Builder<LayerVersionPermission>
A builder for
LayerVersionPermission
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofLayerVersionPermission.getAccountId()
build()
Builds the configured instance.organizationId
(String organizationId) Sets the value ofLayerVersionPermission.getOrganizationId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
Sets the value ofLayerVersionPermission.getAccountId()
- Parameters:
accountId
- The AWS Account id of the account that is authorized to use a Lambda Layer Version. This parameter is required. The wild-card'*'
can be used to grant access to "any" account (or any account in an organization whenorganizationId
is specified).- Returns:
this
-
organizationId
Sets the value ofLayerVersionPermission.getOrganizationId()
- Parameters:
organizationId
- The ID of the AWS Organization to which the grant is restricted. Can only be specified ifaccountId
is'*'
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LayerVersionPermission>
- Returns:
- a new instance of
LayerVersionPermission
- Throws:
NullPointerException
- if any required attribute was not provided
-