@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:07.563Z") @Stability(value=Stable) public class CfnAlarm extends CfnResource implements IInspectable
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAlarm.Builder
A fluent builder for
CfnAlarm. |
static interface |
CfnAlarm.DimensionProperty |
static interface |
CfnAlarm.MetricDataQueryProperty |
static interface |
CfnAlarm.MetricProperty |
static interface |
CfnAlarm.MetricStatProperty |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAlarm(Construct scope,
String id,
CfnAlarmProps props)
Create a new `AWS::CloudWatch::Alarm`.
|
protected |
CfnAlarm(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAlarm(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActionsEnabled()
`AWS::CloudWatch::Alarm.ActionsEnabled`.
|
List<String> |
getAlarmActions()
`AWS::CloudWatch::Alarm.AlarmActions`.
|
String |
getAlarmDescription()
`AWS::CloudWatch::Alarm.AlarmDescription`.
|
String |
getAlarmName()
`AWS::CloudWatch::Alarm.AlarmName`.
|
String |
getAttrArn() |
protected Map<String,Object> |
getCfnProperties() |
String |
getComparisonOperator()
`AWS::CloudWatch::Alarm.ComparisonOperator`.
|
Number |
getDatapointsToAlarm()
`AWS::CloudWatch::Alarm.DatapointsToAlarm`.
|
Object |
getDimensions()
`AWS::CloudWatch::Alarm.Dimensions`.
|
String |
getEvaluateLowSampleCountPercentile()
`AWS::CloudWatch::Alarm.EvaluateLowSampleCountPercentile`.
|
Number |
getEvaluationPeriods()
`AWS::CloudWatch::Alarm.EvaluationPeriods`.
|
String |
getExtendedStatistic()
`AWS::CloudWatch::Alarm.ExtendedStatistic`.
|
List<String> |
getInsufficientDataActions()
`AWS::CloudWatch::Alarm.InsufficientDataActions`.
|
String |
getMetricName()
`AWS::CloudWatch::Alarm.MetricName`.
|
Object |
getMetrics()
`AWS::CloudWatch::Alarm.Metrics`.
|
String |
getNamespace()
`AWS::CloudWatch::Alarm.Namespace`.
|
List<String> |
getOkActions()
`AWS::CloudWatch::Alarm.OKActions`.
|
Number |
getPeriod()
`AWS::CloudWatch::Alarm.Period`.
|
String |
getStatistic()
`AWS::CloudWatch::Alarm.Statistic`.
|
Number |
getThreshold()
`AWS::CloudWatch::Alarm.Threshold`.
|
String |
getThresholdMetricId()
`AWS::CloudWatch::Alarm.ThresholdMetricId`.
|
String |
getTreatMissingData()
`AWS::CloudWatch::Alarm.TreatMissingData`.
|
String |
getUnit()
`AWS::CloudWatch::Alarm.Unit`.
|
void |
inspect(TreeInspector inspector)
(experimental) Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActionsEnabled(Boolean value)
`AWS::CloudWatch::Alarm.ActionsEnabled`.
|
void |
setActionsEnabled(IResolvable value)
`AWS::CloudWatch::Alarm.ActionsEnabled`.
|
void |
setAlarmActions(List<String> value)
`AWS::CloudWatch::Alarm.AlarmActions`.
|
void |
setAlarmDescription(String value)
`AWS::CloudWatch::Alarm.AlarmDescription`.
|
void |
setAlarmName(String value)
`AWS::CloudWatch::Alarm.AlarmName`.
|
void |
setComparisonOperator(String value)
`AWS::CloudWatch::Alarm.ComparisonOperator`.
|
void |
setDatapointsToAlarm(Number value)
`AWS::CloudWatch::Alarm.DatapointsToAlarm`.
|
void |
setDimensions(IResolvable value)
`AWS::CloudWatch::Alarm.Dimensions`.
|
void |
setDimensions(List<Object> value)
`AWS::CloudWatch::Alarm.Dimensions`.
|
void |
setEvaluateLowSampleCountPercentile(String value)
`AWS::CloudWatch::Alarm.EvaluateLowSampleCountPercentile`.
|
void |
setEvaluationPeriods(Number value)
`AWS::CloudWatch::Alarm.EvaluationPeriods`.
|
void |
setExtendedStatistic(String value)
`AWS::CloudWatch::Alarm.ExtendedStatistic`.
|
void |
setInsufficientDataActions(List<String> value)
`AWS::CloudWatch::Alarm.InsufficientDataActions`.
|
void |
setMetricName(String value)
`AWS::CloudWatch::Alarm.MetricName`.
|
void |
setMetrics(IResolvable value)
`AWS::CloudWatch::Alarm.Metrics`.
|
void |
setMetrics(List<Object> value)
`AWS::CloudWatch::Alarm.Metrics`.
|
void |
setNamespace(String value)
`AWS::CloudWatch::Alarm.Namespace`.
|
void |
setOkActions(List<String> value)
`AWS::CloudWatch::Alarm.OKActions`.
|
void |
setPeriod(Number value)
`AWS::CloudWatch::Alarm.Period`.
|
void |
setStatistic(String value)
`AWS::CloudWatch::Alarm.Statistic`.
|
void |
setThreshold(Number value)
`AWS::CloudWatch::Alarm.Threshold`.
|
void |
setThresholdMetricId(String value)
`AWS::CloudWatch::Alarm.ThresholdMetricId`.
|
void |
setTreatMissingData(String value)
`AWS::CloudWatch::Alarm.TreatMissingData`.
|
void |
setUnit(String value)
`AWS::CloudWatch::Alarm.Unit`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAlarm(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAlarm(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAlarm(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnAlarmProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Experimental)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getComparisonOperator()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-comparisonoperator@Stability(value=Stable)
public void setComparisonOperator(@NotNull
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-comparisonoperator@Stability(value=Stable) @NotNull public Number getEvaluationPeriods()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods@Stability(value=Stable)
public void setEvaluationPeriods(@NotNull
Number value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods@Stability(value=Stable) @Nullable public Object getActionsEnabled()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled@Stability(value=Stable)
public void setActionsEnabled(@Nullable
Boolean value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled@Stability(value=Stable)
public void setActionsEnabled(@Nullable
IResolvable value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled@Stability(value=Stable) @Nullable public List<String> getAlarmActions()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions@Stability(value=Stable)
public void setAlarmActions(@Nullable
List<String> value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions@Stability(value=Stable) @Nullable public String getAlarmDescription()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription@Stability(value=Stable)
public void setAlarmDescription(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription@Stability(value=Stable) @Nullable public String getAlarmName()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname@Stability(value=Stable)
public void setAlarmName(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname@Stability(value=Stable) @Nullable public Number getDatapointsToAlarm()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-datapointstoalarm@Stability(value=Stable)
public void setDatapointsToAlarm(@Nullable
Number value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-datapointstoalarm@Stability(value=Stable) @Nullable public Object getDimensions()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension@Stability(value=Stable)
public void setDimensions(@Nullable
IResolvable value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension@Stability(value=Stable)
public void setDimensions(@Nullable
List<Object> value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension@Stability(value=Stable) @Nullable public String getEvaluateLowSampleCountPercentile()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile@Stability(value=Stable)
public void setEvaluateLowSampleCountPercentile(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile@Stability(value=Stable) @Nullable public String getExtendedStatistic()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-extendedstatistic@Stability(value=Stable)
public void setExtendedStatistic(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-extendedstatistic@Stability(value=Stable) @Nullable public List<String> getInsufficientDataActions()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-insufficientdataactions@Stability(value=Stable)
public void setInsufficientDataActions(@Nullable
List<String> value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-insufficientdataactions@Stability(value=Stable) @Nullable public String getMetricName()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-metricname@Stability(value=Stable)
public void setMetricName(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-metricname@Stability(value=Stable) @Nullable public Object getMetrics()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-metrics@Stability(value=Stable)
public void setMetrics(@Nullable
IResolvable value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-metrics@Stability(value=Stable)
public void setMetrics(@Nullable
List<Object> value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-metrics@Stability(value=Stable) @Nullable public String getNamespace()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace@Stability(value=Stable)
public void setNamespace(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace@Stability(value=Stable) @Nullable public List<String> getOkActions()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions@Stability(value=Stable)
public void setOkActions(@Nullable
List<String> value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions@Stability(value=Stable) @Nullable public Number getPeriod()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-period@Stability(value=Stable)
public void setPeriod(@Nullable
Number value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-period@Stability(value=Stable) @Nullable public String getStatistic()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-statistic@Stability(value=Stable)
public void setStatistic(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-statistic@Stability(value=Stable) @Nullable public Number getThreshold()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-threshold@Stability(value=Stable)
public void setThreshold(@Nullable
Number value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-threshold@Stability(value=Stable) @Nullable public String getThresholdMetricId()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dynamic-threshold@Stability(value=Stable)
public void setThresholdMetricId(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dynamic-threshold@Stability(value=Stable) @Nullable public String getTreatMissingData()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata@Stability(value=Stable)
public void setTreatMissingData(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata@Stability(value=Stable) @Nullable public String getUnit()
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unit@Stability(value=Stable)
public void setUnit(@Nullable
String value)
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unitCopyright © 2020. All rights reserved.