@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.955Z") @Stability(value=Stable) 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.
|
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 |
|---|---|
|
CfnAnomalyMonitor(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrCreationDate()
The date when the monitor was created.
|
Number |
getAttrDimensionalValueCount()
The value for evaluated dimensions.
|
String |
getAttrLastEvaluatedDate()
The date when the monitor last evaluated for anomalies.
|
String |
getAttrLastUpdatedDate()
The date when the monitor was last updated.
|
String |
getAttrMonitorArn()
The Amazon Resource Name (ARN) value for the monitor.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getMonitorDimension()
The dimensions to evaluate.
|
String |
getMonitorName()
The name of the monitor.
|
String |
getMonitorSpecification()
The array of `MonitorSpecification` in JSON array format.
|
String |
getMonitorType()
The possible type values.
|
Object |
getResourceTags()
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setMonitorDimension(String value)
The dimensions to evaluate.
|
void |
setMonitorName(String value)
The name of the monitor.
|
void |
setMonitorSpecification(String value)
The array of `MonitorSpecification` in JSON array format.
|
void |
setMonitorType(String value)
The possible type values.
|
void |
setResourceTags(IResolvable value)
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
void |
setResourceTags(List<Object> value)
`AWS::CE::AnomalyMonitor.ResourceTags`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, 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 CfnAnomalyMonitor(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAnomalyMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAnomalyMonitor(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@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 getAttrCreationDate()
@Stability(value=Stable) @NotNull public Number getAttrDimensionalValueCount()
@Stability(value=Stable) @NotNull public String getAttrLastEvaluatedDate()
@Stability(value=Stable) @NotNull public String getAttrLastUpdatedDate()
@Stability(value=Stable) @NotNull public String getAttrMonitorArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getMonitorName()
@Stability(value=Stable)
public void setMonitorName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getMonitorType()
@Stability(value=Stable)
public void setMonitorType(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getMonitorDimension()
@Stability(value=Stable)
public void setMonitorDimension(@Nullable
String value)
@Stability(value=Stable) @Nullable public 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.
@Stability(value=Stable)
public void setMonitorSpecification(@Nullable
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.
@Stability(value=Stable) @Nullable public Object getResourceTags()
@Stability(value=Stable)
public void setResourceTags(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.