Interface UpdateFunctionCodeRequest.Builder

    • Method Detail

      • 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

        UpdateFunctionCodeRequest.Builder zipFile​(SdkBytes 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

        UpdateFunctionCodeRequest.Builder s3Bucket​(String 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

        UpdateFunctionCodeRequest.Builder s3Key​(String 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

        UpdateFunctionCodeRequest.Builder imageUri​(String 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

        UpdateFunctionCodeRequest.Builder publish​(Boolean 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

        UpdateFunctionCodeRequest.Builder dryRun​(Boolean 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

        UpdateFunctionCodeRequest.Builder architectures​(Collection<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.
      • 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.