Interface FunctionCodeLocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FunctionCodeLocation.Builder,,FunctionCodeLocation> SdkBuilder<FunctionCodeLocation.Builder,,FunctionCodeLocation> SdkPojo
- Enclosing class:
FunctionCodeLocation
-
Method Summary
Modifier and TypeMethodDescriptiondefault FunctionCodeLocation.BuilderAn object that contains details about an error related to function deployment package retrieval.error(FunctionCodeLocationError error) An object that contains details about an error related to function deployment package retrieval.URI of a container image in the Amazon ECR registry.A presigned URL that you can use to download the deployment package.repositoryType(String repositoryType) The service that's hosting the file.resolvedImageUri(String resolvedImageUri) The resolved URI for the image.default FunctionCodeLocation.BuilderresolvedS3Object(Consumer<ResolvedS3Object.Builder> resolvedS3Object) The resolved Amazon S3 object that contains the deployment package.resolvedS3Object(ResolvedS3Object resolvedS3Object) The resolved Amazon S3 object that contains the deployment package.sourceKMSKeyArn(String sourceKMSKeyArn) The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
repositoryType
The service that's hosting the file.
- Parameters:
repositoryType- The service that's hosting the file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
A presigned URL that you can use to download the deployment package.
- Parameters:
location- A presigned URL that you can use to download the deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageUri
URI of a container image in the Amazon ECR registry.
- Parameters:
imageUri- URI of a container image in the Amazon ECR registry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resolvedImageUri
The resolved URI for the image.
- Parameters:
resolvedImageUri- The resolved URI for the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resolvedS3Object
The resolved Amazon S3 object that contains the deployment package.
- Parameters:
resolvedS3Object- The resolved Amazon S3 object that contains the deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resolvedS3Object
default FunctionCodeLocation.Builder resolvedS3Object(Consumer<ResolvedS3Object.Builder> resolvedS3Object) The resolved Amazon S3 object that contains the deployment package.
This is a convenience method that creates an instance of theResolvedS3Object.Builderavoiding the need to create one manually viaResolvedS3Object.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresolvedS3Object(ResolvedS3Object).- Parameters:
resolvedS3Object- a consumer that will call methods onResolvedS3Object.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceKMSKeyArn
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.
- Parameters:
sourceKMSKeyArn- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An object that contains details about an error related to function deployment package retrieval.
- Parameters:
error- An object that contains details about an error related to function deployment package retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An object that contains details about an error related to function deployment package retrieval.
This is a convenience method that creates an instance of theFunctionCodeLocationError.Builderavoiding the need to create one manually viaFunctionCodeLocationError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(FunctionCodeLocationError).- Parameters:
error- a consumer that will call methods onFunctionCodeLocationError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-