Class CfnApplicationStatusCheck
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.ec2.CfnApplicationStatusCheck
- All Implemented Interfaces:
IInspectable,IApplicationStatusCheckRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:43.419Z")
@Stability(Stable)
public class CfnApplicationStatusCheck
extends CfnResource
implements IInspectable, IApplicationStatusCheckRef, ITaggableV2
An application status check monitors an HTTP or HTTPS endpoint on Amazon EC2 instances and reports application-layer health.
Configure a health check with a Protocol, Port, and Path, and then associate it with EC2 instances via AWS::EC2::ApplicationStatusCheckInstanceAssociation or AWS::EC2::ApplicationStatusCheckTagAssociation.
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.ec2.*;
CfnApplicationStatusCheck cfnApplicationStatusCheck = CfnApplicationStatusCheck.Builder.create(this, "MyCfnApplicationStatusCheck")
.port(123)
.protocol("protocol")
// the properties below are optional
.aggregation("aggregation")
.deviceIndex(123)
.failureThreshold(123)
.healthCheckPaths(List.of(HealthCheckPathProperty.builder()
.destinations(List.of(HealthCheckPathDestinationProperty.builder()
.securityGroupId("securityGroupId")
.subnetId("subnetId")
.build()))
.source(HealthCheckPathSourceProperty.builder()
.securityGroupId("securityGroupId")
.subnetId("subnetId")
.build())
.build()))
.initializationGracePeriodSeconds(123)
.interval(123)
.ipScope("ipScope")
.ipVersion("ipVersion")
.path("path")
.statusCodeMatcher("statusCodeMatcher")
.successThreshold(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeout(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApplicationStatusCheck.static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IApplicationStatusCheckRef
IApplicationStatusCheckRef.Jsii$Default, IApplicationStatusCheckRef.Jsii$ProxyNested 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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplicationStatusCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplicationStatusCheck(software.amazon.jsii.JsiiObjectRef objRef) CfnApplicationStatusCheck(software.constructs.Construct scope, String id, CfnApplicationStatusCheckProps props) Create a newAWS::EC2::ApplicationStatusCheck. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringWhether this check is included in the rolled-up application status.A reference to a ApplicationStatusCheck resource.The unique identifier of the application status check.The Amazon Resource Name (ARN) of the application status check.When the application status check was created (ISO 8601).Tag Manager which manages the tags for this resource.The network interface device index used for the health check.The number of consecutive failed probes required to mark the instance unhealthy.The source/destination network paths used for the health check.Seconds to wait after instance launch before beginning health checks.The interval, in seconds, between health check probes.The IP scope used for the health check.The IP version used for the health check.getPath()The HTTP path used for the health check.getPort()The port used for the health check.The network protocol used for the health check.The HTTP status codes considered successful (e.g., "200-299").The number of consecutive successful probes required to mark the instance healthy.getTags()Tags to apply to the application status check.The timeout, in seconds, for each health check probe.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnApplicationStatusCheck.renderProperties(Map<String, Object> props) voidsetAggregation(String value) Whether this check is included in the rolled-up application status.voidsetDeviceIndex(Number value) The network interface device index used for the health check.voidsetFailureThreshold(Number value) The number of consecutive failed probes required to mark the instance unhealthy.voidsetHealthCheckPaths(List<Object> value) The source/destination network paths used for the health check.voidsetHealthCheckPaths(IResolvable value) The source/destination network paths used for the health check.voidSeconds to wait after instance launch before beginning health checks.voidsetInterval(Number value) The interval, in seconds, between health check probes.voidsetIpScope(String value) The IP scope used for the health check.voidsetIpVersion(String value) The IP version used for the health check.voidThe HTTP path used for the health check.voidThe port used for the health check.voidsetProtocol(String value) The network protocol used for the health check.voidsetStatusCodeMatcher(String value) The HTTP status codes considered successful (e.g., "200-299").voidsetSuccessThreshold(Number value) The number of consecutive successful probes required to mark the instance healthy.voidTags to apply to the application status check.voidsetTimeout(Number value) The timeout, in seconds, for each health check probe.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
-
CfnApplicationStatusCheck
protected CfnApplicationStatusCheck(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplicationStatusCheck
protected CfnApplicationStatusCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplicationStatusCheck
@Stability(Stable) public CfnApplicationStatusCheck(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationStatusCheckProps props) Create a newAWS::EC2::ApplicationStatusCheck.- 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
-
arnForApplicationStatusCheck
@Stability(Stable) @NotNull public static String arnForApplicationStatusCheck(@NotNull IApplicationStatusCheckRef resource) - Parameters:
resource- This parameter is required.
-
isCfnApplicationStatusCheck
Checks whether the given object is a CfnApplicationStatusCheck.- 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.
-
getApplicationStatusCheckRef
A reference to a ApplicationStatusCheck resource.- Specified by:
getApplicationStatusCheckRefin interfaceIApplicationStatusCheckRef
-
getAttrApplicationStatusCheckId
The unique identifier of the application status check. -
getAttrArn
The Amazon Resource Name (ARN) of the application status check. -
getAttrCreationTime
When the application status check was created (ISO 8601). -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getPort
The port used for the health check. -
setPort
The port used for the health check. -
getProtocol
The network protocol used for the health check. -
setProtocol
The network protocol used for the health check. -
getAggregation
Whether this check is included in the rolled-up application status. -
setAggregation
Whether this check is included in the rolled-up application status. -
getDeviceIndex
The network interface device index used for the health check. -
setDeviceIndex
The network interface device index used for the health check. -
getFailureThreshold
The number of consecutive failed probes required to mark the instance unhealthy. -
setFailureThreshold
The number of consecutive failed probes required to mark the instance unhealthy. -
getHealthCheckPaths
The source/destination network paths used for the health check.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplicationStatusCheck.HealthCheckPathProperty> -
setHealthCheckPaths
The source/destination network paths used for the health check. -
setHealthCheckPaths
The source/destination network paths used for the health check. -
getInitializationGracePeriodSeconds
Seconds to wait after instance launch before beginning health checks. -
setInitializationGracePeriodSeconds
Seconds to wait after instance launch before beginning health checks. -
getInterval
The interval, in seconds, between health check probes. -
setInterval
The interval, in seconds, between health check probes. -
getIpScope
The IP scope used for the health check. -
setIpScope
The IP scope used for the health check. -
getIpVersion
The IP version used for the health check. -
setIpVersion
The IP version used for the health check. -
getPath
The HTTP path used for the health check. -
setPath
The HTTP path used for the health check. -
getStatusCodeMatcher
The HTTP status codes considered successful (e.g., "200-299"). -
setStatusCodeMatcher
The HTTP status codes considered successful (e.g., "200-299"). -
getSuccessThreshold
The number of consecutive successful probes required to mark the instance healthy. -
setSuccessThreshold
The number of consecutive successful probes required to mark the instance healthy. -
getTags
Tags to apply to the application status check. -
setTags
Tags to apply to the application status check. -
getTimeout
The timeout, in seconds, for each health check probe. -
setTimeout
The timeout, in seconds, for each health check probe.
-