@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:01.271Z") @Stability(value=Stable) public class CfnAlarm extends CfnResource implements IInspectable
| 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$Proxy| 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(software.constructs.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)
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, overrideLogicalIdjsiiAsyncCall, 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
software.constructs.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=Stable)
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()
@Stability(value=Stable)
public void setComparisonOperator(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getEvaluationPeriods()
@Stability(value=Stable)
public void setEvaluationPeriods(@NotNull
Number value)
@Stability(value=Stable) @Nullable public Object getActionsEnabled()
@Stability(value=Stable)
public void setActionsEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setActionsEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getAlarmActions()
@Stability(value=Stable)
public void setAlarmActions(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getAlarmDescription()
@Stability(value=Stable)
public void setAlarmDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getAlarmName()
@Stability(value=Stable)
public void setAlarmName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getDatapointsToAlarm()
@Stability(value=Stable)
public void setDatapointsToAlarm(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Object getDimensions()
@Stability(value=Stable)
public void setDimensions(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setDimensions(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getEvaluateLowSampleCountPercentile()
@Stability(value=Stable)
public void setEvaluateLowSampleCountPercentile(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getExtendedStatistic()
@Stability(value=Stable)
public void setExtendedStatistic(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<String> getInsufficientDataActions()
@Stability(value=Stable)
public void setInsufficientDataActions(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getMetricName()
@Stability(value=Stable)
public void setMetricName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getMetrics()
@Stability(value=Stable)
public void setMetrics(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setMetrics(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getNamespace()
@Stability(value=Stable)
public void setNamespace(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<String> getOkActions()
@Stability(value=Stable)
public void setOkActions(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public Number getPeriod()
@Stability(value=Stable)
public void setPeriod(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getStatistic()
@Stability(value=Stable)
public void setStatistic(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getThreshold()
@Stability(value=Stable)
public void setThreshold(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getThresholdMetricId()
@Stability(value=Stable)
public void setThresholdMetricId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getTreatMissingData()
@Stability(value=Stable)
public void setTreatMissingData(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getUnit()
@Stability(value=Stable)
public void setUnit(@Nullable
String value)
Copyright © 2021. All rights reserved.