Class CfnCloudWatchAlarmTemplate
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.medialive.CfnCloudWatchAlarmTemplate
- All Implemented Interfaces:
IInspectable,ITaggableV2,ICloudWatchAlarmTemplateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:42.153Z")
@Stability(Stable)
public class CfnCloudWatchAlarmTemplate
extends CfnResource
implements IInspectable, ICloudWatchAlarmTemplateRef, ITaggableV2
Definition of AWS::MediaLive::CloudWatchAlarmTemplate Resource Type.
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.medialive.*;
CfnCloudWatchAlarmTemplate cfnCloudWatchAlarmTemplate = CfnCloudWatchAlarmTemplate.Builder.create(this, "MyCfnCloudWatchAlarmTemplate")
.comparisonOperator("comparisonOperator")
.evaluationPeriods(123)
.metricName("metricName")
.name("name")
.period(123)
.statistic("statistic")
.targetResourceType("targetResourceType")
.threshold(123)
.treatMissingData("treatMissingData")
// the properties below are optional
.datapointsToAlarm(123)
.description("description")
.groupIdentifier("groupIdentifier")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCloudWatchAlarmTemplate.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.medialive.ICloudWatchAlarmTemplateRef
ICloudWatchAlarmTemplateRef.Jsii$Default, ICloudWatchAlarmTemplateRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnCloudWatchAlarmTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCloudWatchAlarmTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnCloudWatchAlarmTemplate(software.constructs.Construct scope, String id, CfnCloudWatchAlarmTemplateProps props) -
Method Summary
Modifier and TypeMethodDescriptionA cloudwatch alarm template's ARN (Amazon Resource Name).The date and time of resource creation.A CloudWatch alarm template group's id.A cloudwatch alarm template's id.The date and time of latest resource modification.Tag Manager which manages the tags for this resource.A reference to a CloudWatchAlarmTemplate resource.The comparison operator used to compare the specified statistic and the threshold.The number of datapoints within the evaluation period that must be breaching to trigger the alarm.A resource's optional description.The number of periods over which data is compared to the specified threshold.A cloudwatch alarm template group's identifier.The name of the metric associated with the alarm.getName()A resource's name.The period, in seconds, over which the specified statistic is applied.The statistic to apply to the alarm's metric data.getTags()Represents the tags associated with a resource.The resource type this template should dynamically generate CloudWatch metric alarms for.The threshold value to compare with the specified statistic.Specifies how missing data points are treated when evaluating the alarm's condition.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComparisonOperator(String value) The comparison operator used to compare the specified statistic and the threshold.voidsetDatapointsToAlarm(Number value) The number of datapoints within the evaluation period that must be breaching to trigger the alarm.voidsetDescription(String value) A resource's optional description.voidsetEvaluationPeriods(Number value) The number of periods over which data is compared to the specified threshold.voidsetGroupIdentifier(String value) A cloudwatch alarm template group's identifier.voidsetMetricName(String value) The name of the metric associated with the alarm.voidA resource's name.voidThe period, in seconds, over which the specified statistic is applied.voidsetStatistic(String value) The statistic to apply to the alarm's metric data.voidRepresents the tags associated with a resource.voidsetTargetResourceType(String value) The resource type this template should dynamically generate CloudWatch metric alarms for.voidsetThreshold(Number value) The threshold value to compare with the specified statistic.voidsetTreatMissingData(String value) Specifies how missing data points are treated when evaluating the alarm's condition.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnCloudWatchAlarmTemplate
protected CfnCloudWatchAlarmTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCloudWatchAlarmTemplate
protected CfnCloudWatchAlarmTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCloudWatchAlarmTemplate
@Stability(Stable) public CfnCloudWatchAlarmTemplate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCloudWatchAlarmTemplateProps props) - 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
-
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.
-
getAttrArn
A cloudwatch alarm template's ARN (Amazon Resource Name). -
getAttrCreatedAt
The date and time of resource creation. -
getAttrGroupId
A CloudWatch alarm template group's id.Amazon Web Services provided template groups have ids that start with
aws- -
getAttrId
A cloudwatch alarm template's id.Amazon Web Services provided templates have ids that start with
.aws- -
getAttrIdentifier
-
getAttrModifiedAt
The date and time of latest resource modification. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCloudWatchAlarmTemplateRef
A reference to a CloudWatchAlarmTemplate resource.- Specified by:
getCloudWatchAlarmTemplateRefin interfaceICloudWatchAlarmTemplateRef
-
getComparisonOperator
The comparison operator used to compare the specified statistic and the threshold. -
setComparisonOperator
The comparison operator used to compare the specified statistic and the threshold. -
getEvaluationPeriods
The number of periods over which data is compared to the specified threshold. -
setEvaluationPeriods
The number of periods over which data is compared to the specified threshold. -
getMetricName
The name of the metric associated with the alarm. -
setMetricName
The name of the metric associated with the alarm. -
getName
A resource's name. -
setName
A resource's name. -
getPeriod
The period, in seconds, over which the specified statistic is applied. -
setPeriod
The period, in seconds, over which the specified statistic is applied. -
getStatistic
The statistic to apply to the alarm's metric data. -
setStatistic
The statistic to apply to the alarm's metric data. -
getTargetResourceType
The resource type this template should dynamically generate CloudWatch metric alarms for. -
setTargetResourceType
The resource type this template should dynamically generate CloudWatch metric alarms for. -
getThreshold
The threshold value to compare with the specified statistic. -
setThreshold
The threshold value to compare with the specified statistic. -
getTreatMissingData
Specifies how missing data points are treated when evaluating the alarm's condition. -
setTreatMissingData
Specifies how missing data points are treated when evaluating the alarm's condition. -
getDatapointsToAlarm
The number of datapoints within the evaluation period that must be breaching to trigger the alarm. -
setDatapointsToAlarm
The number of datapoints within the evaluation period that must be breaching to trigger the alarm. -
getDescription
A resource's optional description. -
setDescription
A resource's optional description. -
getGroupIdentifier
A cloudwatch alarm template group's identifier. -
setGroupIdentifier
A cloudwatch alarm template group's identifier. -
getTags
Represents the tags associated with a resource. -
setTags
Represents the tags associated with a resource.
-