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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:04.593Z")
@Stability(Stable)
public class CfnCloudWatchAlarmTemplate
extends CfnResource
implements IInspectable, 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) .groupIdentifier("groupIdentifier") .metricName("metricName") .name("name") .period(123) .statistic("statistic") .targetResourceType("targetResourceType") .threshold(123) .treatMissingData("treatMissingData") // the properties below are optional .datapointsToAlarm(123) .description("description") .tags(Map.of( "tagsKey", "tags")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnCloudWatchAlarmTemplate
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnCloudWatchAlarmTemplate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCloudWatchAlarmTemplate
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setComparisonOperator
(String value) The comparison operator used to compare the specified statistic and the threshold.void
setDatapointsToAlarm
(Number value) The number of datapoints within the evaluation period that must be breaching to trigger the alarm.void
setDescription
(String value) A resource's optional description.void
setEvaluationPeriods
(Number value) The number of periods over which data is compared to the specified threshold.void
setGroupIdentifier
(String value) A cloudwatch alarm template group's identifier.void
setMetricName
(String value) The name of the metric associated with the alarm.void
A resource's name.void
The period, in seconds, over which the specified statistic is applied.void
setStatistic
(String value) The statistic to apply to the alarm's metric data.void
Represents the tags associated with a resource.void
setTargetResourceType
(String value) The resource type this template should dynamically generate CloudWatch metric alarms for.void
setThreshold
(Number value) The threshold value to compare with the specified statistic.void
setTreatMissingData
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
getGroupIdentifier
A cloudwatch alarm template group's identifier. -
setGroupIdentifier
A cloudwatch alarm template group's identifier. -
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. -
getTags
Represents the tags associated with a resource. -
setTags
Represents the tags associated with a resource.
-