@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:49.843Z") public class CfnAnomalyMonitor extends CfnResource implements IInspectable
The AWS::CE::AnomalyMonitor
resource is a Cost Explorer resource type that continuously inspects your account's cost data for anomalies, based on MonitorType
and MonitorSpecification
. The content consists of detailed metadata and the current status of the monitor object.
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.ce.*; CfnAnomalyMonitor cfnAnomalyMonitor = CfnAnomalyMonitor.Builder.create(this, "MyCfnAnomalyMonitor") .monitorName("monitorName") .monitorType("monitorType") // the properties below are optional .monitorDimension("monitorDimension") .monitorSpecification("monitorSpecification") .resourceTags(List.of(ResourceTagProperty.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnAnomalyMonitor.Builder
A fluent builder for
CfnAnomalyMonitor . |
static interface |
CfnAnomalyMonitor.ResourceTagProperty
The tag structure that contains a tag key and value.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnAnomalyMonitor(Construct scope,
java.lang.String id,
CfnAnomalyMonitorProps props)
Create a new `AWS::CE::AnomalyMonitor`.
|
protected |
CfnAnomalyMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAnomalyMonitor(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrCreationDate()
The date when the monitor was created.
|
java.lang.Number |
getAttrDimensionalValueCount()
The value for evaluated dimensions.
|
java.lang.String |
getAttrLastEvaluatedDate()
The date when the monitor last evaluated for anomalies.
|
java.lang.String |
getAttrLastUpdatedDate()
The date when the monitor was last updated.
|
java.lang.String |
getAttrMonitorArn()
The Amazon Resource Name (ARN) value for the monitor.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getMonitorDimension()
The dimensions to evaluate.
|
java.lang.String |
getMonitorName()
The name of the monitor.
|
java.lang.String |
getMonitorSpecification()
The array of `MonitorSpecification` in JSON array format.
|
java.lang.String |
getMonitorType()
The possible type values.
|
java.lang.Object |
getResourceTags()
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setMonitorDimension(java.lang.String value)
The dimensions to evaluate.
|
void |
setMonitorName(java.lang.String value)
The name of the monitor.
|
void |
setMonitorSpecification(java.lang.String value)
The array of `MonitorSpecification` in JSON array format.
|
void |
setMonitorType(java.lang.String value)
The possible type values.
|
void |
setResourceTags(IResolvable value)
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
void |
setResourceTags(java.util.List<java.lang.Object> value)
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnAnomalyMonitor(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAnomalyMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnAnomalyMonitor(Construct scope, java.lang.String id, CfnAnomalyMonitorProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrCreationDate()
public java.lang.Number getAttrDimensionalValueCount()
public java.lang.String getAttrLastEvaluatedDate()
public java.lang.String getAttrLastUpdatedDate()
public java.lang.String getAttrMonitorArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getMonitorName()
public void setMonitorName(java.lang.String value)
public java.lang.String getMonitorType()
public void setMonitorType(java.lang.String value)
public java.lang.String getMonitorDimension()
public void setMonitorDimension(java.lang.String value)
public java.lang.String getMonitorSpecification()
For instance, you can use MonitorSpecification
to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the Examples section of this page.
public void setMonitorSpecification(java.lang.String value)
For instance, you can use MonitorSpecification
to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the Examples section of this page.
public java.lang.Object getResourceTags()
public void setResourceTags(IResolvable value)
public void setResourceTags(java.util.List<java.lang.Object> value)