JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class UpdateFunctionCodeRequest

    • Constructor Detail

      • UpdateFunctionCodeRequest

        public UpdateFunctionCodeRequest()
    • Method Detail

      • setFunctionName

        public void setFunctionName(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.

      • getFunctionName

        public String getFunctionName()

        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:
        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.

      • withFunctionName

        public UpdateFunctionCodeRequest withFunctionName(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.
      • setZipFile

        public void setZipFile(ByteBuffer 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.

        The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        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.
      • getZipFile

        public ByteBuffer getZipFile()

        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.

        ByteBuffers are stateful. Calling their get methods changes their position. We recommend using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent position, and calling get methods on this rather than directly on the returned ByteBuffer. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the position.

        Returns:
        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.
      • withZipFile

        public UpdateFunctionCodeRequest withZipFile(ByteBuffer 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.

        The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        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.
      • setS3Bucket

        public void setS3Bucket(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.
      • getS3Bucket

        public String getS3Bucket()

        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:
        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.
      • withS3Bucket

        public UpdateFunctionCodeRequest withS3Bucket(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.
      • setS3Key

        public void setS3Key(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.
      • getS3Key

        public String getS3Key()

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

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

        public UpdateFunctionCodeRequest withS3Key(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.
      • setS3ObjectVersion

        public void setS3ObjectVersion(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.
      • getS3ObjectVersion

        public String getS3ObjectVersion()

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

        Returns:
        For versioned objects, the version of the deployment package object to use.
      • withS3ObjectVersion

        public UpdateFunctionCodeRequest withS3ObjectVersion(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.
      • setImageUri

        public void setImageUri(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.
      • getImageUri

        public String getImageUri()

        URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.

        Returns:
        URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
      • withImageUri

        public UpdateFunctionCodeRequest withImageUri(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.
      • setPublish

        public void setPublish(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.
      • getPublish

        public Boolean getPublish()

        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:
        Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
      • withPublish

        public UpdateFunctionCodeRequest withPublish(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.
      • isPublish

        public Boolean isPublish()

        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:
        Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
      • setDryRun

        public void setDryRun(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.
      • getDryRun

        public Boolean getDryRun()

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

        Returns:
        Set to true to validate the request parameters and access permissions without modifying the function code.
      • withDryRun

        public UpdateFunctionCodeRequest withDryRun(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.
      • isDryRun

        public Boolean isDryRun()

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

        Returns:
        Set to true to validate the request parameters and access permissions without modifying the function code.
      • setRevisionId

        public void setRevisionId(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.
      • getRevisionId

        public String getRevisionId()

        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:
        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.
      • withRevisionId

        public UpdateFunctionCodeRequest withRevisionId(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.
      • getArchitectures

        public List<String> getArchitectures()

        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:
        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.
        See Also:
        Architecture
      • setArchitectures

        public void setArchitectures(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.
        See Also:
        Architecture
      • withArchitectures

        public UpdateFunctionCodeRequest withArchitectures(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.

        NOTE: This method appends the values to the existing list (if any). Use setArchitectures(java.util.Collection) or withArchitectures(java.util.Collection) if you want to override the existing values.

        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.
        See Also:
        Architecture
      • withArchitectures

        public UpdateFunctionCodeRequest withArchitectures(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.
        See Also:
        Architecture
      • withArchitectures

        public UpdateFunctionCodeRequest withArchitectures(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.
        See Also:
        Architecture
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /