Class CfnWebFunctionRevision
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lambda.CfnWebFunctionRevision
- 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe build configuration for the revision.static final classA fluent builder forCfnWebFunctionRevision.static interfaceThe code configuration for the revision.static interfaceThe logging configuration.static interfaceThe runtime configuration for the revision.static interfaceThe S3 location of the function code.static interfaceThe service configuration for the revision.static interfaceThe telemetry configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.lambda.IWebFunctionRevisionRef
IWebFunctionRevisionRef.Jsii$Default, IWebFunctionRevisionRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWebFunctionRevision(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWebFunctionRevision(software.amazon.jsii.JsiiObjectRef objRef) CfnWebFunctionRevision(software.constructs.Construct scope, String id, CfnWebFunctionRevisionProps props) Create a newAWS::Lambda::WebFunctionRevision. -
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the revision was created.The Amazon Resource Name (ARN) of the function.The Amazon Resource Name (ARN) of the revision.The unique identifier of the revision.The current state of the revision.The reason for the revision's current state.The build configuration for the revision.A description of the revision.The name of the web function this revision belongs to.The ARN of the KMS key used to encrypt the revision.The service configuration for the revision.A reference to a WebFunctionRevision resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWebFunctionRevision.renderProperties(Map<String, Object> props) voidsetBuildConfig(IResolvable value) The build configuration for the revision.voidThe build configuration for the revision.voidsetDescription(String value) A description of the revision.voidsetFunctionName(String value) The name of the web function this revision belongs to.voidsetKmsKeyArn(String value) The ARN of the KMS key used to encrypt the revision.voidsetServiceConfig(IResolvable value) The service configuration for the revision.voidThe service configuration for the revision.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 newAWS::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
Checks whether the given object is a CfnWebFunctionRevision.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The timestamp when the revision was created. -
getAttrFunctionArn
The Amazon Resource Name (ARN) of the function. -
getAttrRevisionArn
The Amazon Resource Name (ARN) of the revision. -
getAttrRevisionId
The unique identifier of the revision. -
getAttrState
The current state of the revision. -
getAttrStateReason
The reason for the revision's current state. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getWebFunctionRevisionRef
A reference to a WebFunctionRevision resource.- Specified by:
getWebFunctionRevisionRefin interfaceIWebFunctionRevisionRef
-
getBuildConfig
The build configuration for the revision.Returns union: either
IResolvableorCfnWebFunctionRevision.BuildConfigProperty -
setBuildConfig
The build configuration for the revision. -
setBuildConfig
@Stability(Stable) public void setBuildConfig(@NotNull CfnWebFunctionRevision.BuildConfigProperty value) The build configuration for the revision. -
getFunctionName
The name of the web function this revision belongs to. -
setFunctionName
The name of the web function this revision belongs to. -
getServiceConfig
The service configuration for the revision.Returns union: either
IResolvableorCfnWebFunctionRevision.ServiceConfigProperty -
setServiceConfig
The service configuration for the revision. -
setServiceConfig
@Stability(Stable) public void setServiceConfig(@NotNull CfnWebFunctionRevision.ServiceConfigProperty value) The service configuration for the revision. -
getDescription
A description of the revision. -
setDescription
A description of the revision. -
getKmsKeyArn
The ARN of the KMS key used to encrypt the revision. -
setKmsKeyArn
The ARN of the KMS key used to encrypt the revision.
-