Class CfnWebFunctionRevision

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IWebFunctionRevisionRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T16:59:57.650Z") @Stability(Stable) public class CfnWebFunctionRevision extends CfnResource implements IInspectable, IWebFunctionRevisionRef
Resource Type definition for AWS::Lambda::WebFunctionRevision.

An immutable revision of a Lambda web function, containing the function code and configuration.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 CfnWebFunctionRevision cfnWebFunctionRevision = CfnWebFunctionRevision.Builder.create(this, "MyCfnWebFunctionRevision")
         .buildConfig(BuildConfigProperty.builder()
                 .codeConfig(CodeConfigProperty.builder()
                         .s3Object(S3ObjectProperty.builder()
                                 .bucket("bucket")
                                 .key("key")
                                 // the properties below are optional
                                 .versionId("versionId")
                                 .build())
                         .build())
                 .runtimeConfig(RuntimeConfigProperty.builder()
                         .runtime("runtime")
                         .build())
                 .build())
         .functionName("functionName")
         .serviceConfig(ServiceConfigProperty.builder()
                 .executionRoleArn("executionRoleArn")
                 // the properties below are optional
                 .environmentVariables(Map.of(
                         "environmentVariablesKey", "environmentVariables"))
                 .maxConcurrencyPerEnvironment(123)
                 .telemetryConfig(TelemetryConfigProperty.builder()
                         .loggingConfig(LoggingConfigProperty.builder()
                                 .applicationLogLevel("applicationLogLevel")
                                 .logGroup("logGroup")
                                 .systemLogLevel("systemLogLevel")
                                 .build())
                         .build())
                 .timeoutSeconds(123)
                 .build())
         // the properties below are optional
         .description("description")
         .kmsKeyArn("kmsKeyArn")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnWebFunctionRevision

      protected CfnWebFunctionRevision(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnWebFunctionRevision

      protected CfnWebFunctionRevision(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnWebFunctionRevision

      @Stability(Stable) public CfnWebFunctionRevision(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWebFunctionRevisionProps props)
      Create a new AWS::Lambda::WebFunctionRevision.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • isCfnWebFunctionRevision

      @Stability(Stable) @NotNull public static Boolean isCfnWebFunctionRevision(@NotNull Object x)
      Checks whether the given object is a CfnWebFunctionRevision.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the revision was created.
    • getAttrFunctionArn

      @Stability(Stable) @NotNull public String getAttrFunctionArn()
      The Amazon Resource Name (ARN) of the function.
    • getAttrRevisionArn

      @Stability(Stable) @NotNull public String getAttrRevisionArn()
      The Amazon Resource Name (ARN) of the revision.
    • getAttrRevisionId

      @Stability(Stable) @NotNull public String getAttrRevisionId()
      The unique identifier of the revision.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The current state of the revision.
    • getAttrStateReason

      @Stability(Stable) @NotNull public String getAttrStateReason()
      The reason for the revision's current state.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getWebFunctionRevisionRef

      @Stability(Stable) @NotNull public WebFunctionRevisionReference getWebFunctionRevisionRef()
      A reference to a WebFunctionRevision resource.
      Specified by:
      getWebFunctionRevisionRef in interface IWebFunctionRevisionRef
    • getBuildConfig

      @Stability(Stable) @NotNull public Object getBuildConfig()
      The build configuration for the revision.

      Returns union: either IResolvable or CfnWebFunctionRevision.BuildConfigProperty

    • setBuildConfig

      @Stability(Stable) public void setBuildConfig(@NotNull IResolvable value)
      The build configuration for the revision.
    • setBuildConfig

      @Stability(Stable) public void setBuildConfig(@NotNull CfnWebFunctionRevision.BuildConfigProperty value)
      The build configuration for the revision.
    • getFunctionName

      @Stability(Stable) @NotNull public String getFunctionName()
      The name of the web function this revision belongs to.
    • setFunctionName

      @Stability(Stable) public void setFunctionName(@NotNull String value)
      The name of the web function this revision belongs to.
    • getServiceConfig

      @Stability(Stable) @NotNull public Object getServiceConfig()
      The service configuration for the revision.

      Returns union: either IResolvable or CfnWebFunctionRevision.ServiceConfigProperty

    • setServiceConfig

      @Stability(Stable) public void setServiceConfig(@NotNull IResolvable value)
      The service configuration for the revision.
    • setServiceConfig

      @Stability(Stable) public void setServiceConfig(@NotNull CfnWebFunctionRevision.ServiceConfigProperty value)
      The service configuration for the revision.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A description of the revision.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A description of the revision.
    • getKmsKeyArn

      @Stability(Stable) @Nullable public String getKmsKeyArn()
      The ARN of the KMS key used to encrypt the revision.
    • setKmsKeyArn

      @Stability(Stable) public void setKmsKeyArn(@Nullable String value)
      The ARN of the KMS key used to encrypt the revision.