Interface UpdateFunctionCodeRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>, LambdaRequest.Builder, SdkBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
UpdateFunctionCodeRequest

public static interface UpdateFunctionCodeRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>
  • Method Details

    • functionName

      UpdateFunctionCodeRequest.Builder functionName(String functionName)

      The name or ARN of the Lambda function.

      Name formats

      • Function namemy-function.

      • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

      • Partial ARN123456789012:function:my-function.

      The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

      Parameters:
      functionName - The name or ARN of the Lambda function.

      Name formats

      • Function namemy-function.

      • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

      • Partial ARN123456789012:function:my-function.

      The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • zipFile

      The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.

      Parameters:
      zipFile - The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Bucket

      An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.

      Parameters:
      s3Bucket - An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Key

      The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.

      Parameters:
      s3Key - The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3ObjectVersion

      UpdateFunctionCodeRequest.Builder s3ObjectVersion(String s3ObjectVersion)

      For versioned objects, the version of the deployment package object to use.

      Parameters:
      s3ObjectVersion - For versioned objects, the version of the deployment package object to use.
      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. Do not use for a function defined with a .zip file archive.

      Parameters:
      imageUri - URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publish

      Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.

      Parameters:
      publish - Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dryRun

      Set to true to validate the request parameters and access permissions without modifying the function code.

      Parameters:
      dryRun - Set to true to validate the request parameters and access permissions without modifying the function code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revisionId

      UpdateFunctionCodeRequest.Builder revisionId(String revisionId)

      Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.

      Parameters:
      revisionId - Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architecturesWithStrings

      UpdateFunctionCodeRequest.Builder architecturesWithStrings(Collection<String> architectures)

      The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

      Parameters:
      architectures - The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architecturesWithStrings

      UpdateFunctionCodeRequest.Builder architecturesWithStrings(String... architectures)

      The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

      Parameters:
      architectures - The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architectures

      The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

      Parameters:
      architectures - The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • architectures

      UpdateFunctionCodeRequest.Builder architectures(Architecture... architectures)

      The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.

      Parameters:
      architectures - The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateFunctionCodeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.