Class CfnWebFunction

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IWebFunctionRef, ITaggableV2, 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.645Z") @Stability(Stable) public class CfnWebFunction extends CfnResource implements IInspectable, IWebFunctionRef, ITaggableV2
Resource Type definition for AWS::Lambda::WebFunction.

Creates a Lambda Web function container.

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.*;
 CfnWebFunction cfnWebFunction = CfnWebFunction.Builder.create(this, "MyCfnWebFunction")
         .functionName("functionName")
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnWebFunction

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

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

      @Stability(Stable) public CfnWebFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWebFunctionProps props)
      Create a new AWS::Lambda::WebFunction.

      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

    • isCfnWebFunction

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

      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 function was created.
    • getAttrFunctionArn

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

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

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

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the function was last updated.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • 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
    • getWebFunctionRef

      @Stability(Stable) @NotNull public WebFunctionReference getWebFunctionRef()
      A reference to a WebFunction resource.
      Specified by:
      getWebFunctionRef in interface IWebFunctionRef
    • getFunctionName

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

      @Stability(Stable) public void setFunctionName(@NotNull String value)
      The name of the web function.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of tags to apply to the function.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of tags to apply to the function.