public static final class LayerVersionPermission.Builder
extends java.lang.Object
LayerVersionPermission
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LayerVersionPermission.Builder |
accountId(java.lang.String accountId)
Sets the value of
LayerVersionPermission.getAccountId() |
LayerVersionPermission |
build()
Builds the configured instance.
|
LayerVersionPermission.Builder |
organizationId(java.lang.String organizationId)
Sets the value of
LayerVersionPermission.getOrganizationId() |
public LayerVersionPermission.Builder accountId(java.lang.String accountId)
LayerVersionPermission.getAccountId()
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 when organizationId
is specified).this
public LayerVersionPermission.Builder organizationId(java.lang.String organizationId)
LayerVersionPermission.getOrganizationId()
organizationId
- The ID of the AWS Organization to which the grant is restricted.
Can only be specified if accountId
is '*'
this
public LayerVersionPermission build()
LayerVersionPermission
java.lang.NullPointerException
- if any required attribute was not provided