Interface AddLayerVersionPermissionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AddLayerVersionPermissionRequest.Builder,
,AddLayerVersionPermissionRequest> LambdaRequest.Builder
,SdkBuilder<AddLayerVersionPermissionRequest.Builder,
,AddLayerVersionPermissionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AddLayerVersionPermissionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe API action that grants access to the layer.The name or Amazon Resource Name (ARN) of the layer.organizationId
(String organizationId) With the principal set to*
, grant permission to all accounts in the specified organization.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.An account ID, or*
to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationId
is not specified).revisionId
(String revisionId) Only update the policy if the revision ID matches the ID specified.statementId
(String statementId) An identifier that distinguishes the policy from others on the same layer version.versionNumber
(Long versionNumber) The version number.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
layerName
The name or Amazon Resource Name (ARN) of the layer.
- Parameters:
layerName
- The name or Amazon Resource Name (ARN) of the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionNumber
The version number.
- Parameters:
versionNumber
- The version number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statementId
An identifier that distinguishes the policy from others on the same layer version.
- Parameters:
statementId
- An identifier that distinguishes the policy from others on the same layer version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The API action that grants access to the layer. For example,
lambda:GetLayerVersion
.- Parameters:
action
- The API action that grants access to the layer. For example,lambda:GetLayerVersion
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
An account ID, or
*
to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationId
is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.- Parameters:
principal
- An account ID, or*
to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationId
is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
organizationId
With the principal set to
*
, grant permission to all accounts in the specified organization.- Parameters:
organizationId
- With the principal set to*
, grant permission to all accounts in the specified organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
- Parameters:
revisionId
- Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddLayerVersionPermissionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AddLayerVersionPermissionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-