Class CfnVersionProps.Builder

java.lang.Object
software.amazon.awscdk.services.lambda.CfnVersionProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersionProps>
Enclosing interface:
CfnVersionProps

@Stability(Stable) public static final class CfnVersionProps.Builder extends Object implements software.amazon.jsii.Builder<CfnVersionProps>
A builder for CfnVersionProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • functionName

      @Stability(Stable) public CfnVersionProps.Builder functionName(String functionName)
      Parameters:
      functionName - The name of the Lambda function. This parameter is required. Name formats - Function name - MyFunction .

      • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction .
      • Partial ARN - 123456789012:function:MyFunction .

      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:
      this
    • codeSha256

      @Stability(Stable) public CfnVersionProps.Builder codeSha256(String codeSha256)
      Parameters:
      codeSha256 - Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
      Returns:
      this
    • description

      @Stability(Stable) public CfnVersionProps.Builder description(String description)
      Parameters:
      description - A description for the version to override the description in the function configuration. Updates are not supported for this property.
      Returns:
      this
    • provisionedConcurrencyConfig

      @Stability(Stable) public CfnVersionProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig)
      Parameters:
      provisionedConcurrencyConfig - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
      Returns:
      this
    • provisionedConcurrencyConfig

      @Stability(Stable) public CfnVersionProps.Builder provisionedConcurrencyConfig(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig)
      Parameters:
      provisionedConcurrencyConfig - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
      Returns:
      this
    • build

      @Stability(Stable) public CfnVersionProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnVersionProps>
      Returns:
      a new instance of CfnVersionProps
      Throws:
      NullPointerException - if any required attribute was not provided