@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.733Z") @Stability(value=Stable) public class CfnAnomalyDetector extends CfnResource implements IInspectable
The AWS::LookoutMetrics::AnomalyDetector type creates an anomaly detector.
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.lookoutmetrics.*;
CfnAnomalyDetector cfnAnomalyDetector = CfnAnomalyDetector.Builder.create(this, "MyCfnAnomalyDetector")
.anomalyDetectorConfig(AnomalyDetectorConfigProperty.builder()
.anomalyDetectorFrequency("anomalyDetectorFrequency")
.build())
.metricSetList(List.of(MetricSetProperty.builder()
.metricList(List.of(MetricProperty.builder()
.aggregationFunction("aggregationFunction")
.metricName("metricName")
// the properties below are optional
.namespace("namespace")
.build()))
.metricSetName("metricSetName")
.metricSource(MetricSourceProperty.builder()
.appFlowConfig(AppFlowConfigProperty.builder()
.flowName("flowName")
.roleArn("roleArn")
.build())
.cloudwatchConfig(CloudwatchConfigProperty.builder()
.roleArn("roleArn")
.build())
.rdsSourceConfig(RDSSourceConfigProperty.builder()
.databaseHost("databaseHost")
.databaseName("databaseName")
.databasePort(123)
.dbInstanceIdentifier("dbInstanceIdentifier")
.roleArn("roleArn")
.secretManagerArn("secretManagerArn")
.tableName("tableName")
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetIdList(List.of("subnetIdList"))
.build())
.build())
.redshiftSourceConfig(RedshiftSourceConfigProperty.builder()
.clusterIdentifier("clusterIdentifier")
.databaseHost("databaseHost")
.databaseName("databaseName")
.databasePort(123)
.roleArn("roleArn")
.secretManagerArn("secretManagerArn")
.tableName("tableName")
.vpcConfiguration(VpcConfigurationProperty.builder()
.securityGroupIdList(List.of("securityGroupIdList"))
.subnetIdList(List.of("subnetIdList"))
.build())
.build())
.s3SourceConfig(S3SourceConfigProperty.builder()
.fileFormatDescriptor(FileFormatDescriptorProperty.builder()
.csvFormatDescriptor(CsvFormatDescriptorProperty.builder()
.charset("charset")
.containsHeader(false)
.delimiter("delimiter")
.fileCompression("fileCompression")
.headerList(List.of("headerList"))
.quoteSymbol("quoteSymbol")
.build())
.jsonFormatDescriptor(JsonFormatDescriptorProperty.builder()
.charset("charset")
.fileCompression("fileCompression")
.build())
.build())
.roleArn("roleArn")
// the properties below are optional
.historicalDataPathList(List.of("historicalDataPathList"))
.templatedPathList(List.of("templatedPathList"))
.build())
.build())
// the properties below are optional
.dimensionList(List.of("dimensionList"))
.metricSetDescription("metricSetDescription")
.metricSetFrequency("metricSetFrequency")
.offset(123)
.timestampColumn(TimestampColumnProperty.builder()
.columnFormat("columnFormat")
.columnName("columnName")
.build())
.timezone("timezone")
.build()))
// the properties below are optional
.anomalyDetectorDescription("anomalyDetectorDescription")
.anomalyDetectorName("anomalyDetectorName")
.kmsKeyArn("kmsKeyArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnAnomalyDetector.AnomalyDetectorConfigProperty
Contains information about a detector's configuration.
|
static interface |
CfnAnomalyDetector.AppFlowConfigProperty
Details about an Amazon AppFlow flow datasource.
|
static class |
CfnAnomalyDetector.Builder
A fluent builder for
CfnAnomalyDetector. |
static interface |
CfnAnomalyDetector.CloudwatchConfigProperty
Details about an Amazon CloudWatch datasource.
|
static interface |
CfnAnomalyDetector.CsvFormatDescriptorProperty
Contains information about how a source CSV data file should be analyzed.
|
static interface |
CfnAnomalyDetector.FileFormatDescriptorProperty
Contains information about a source file's formatting.
|
static interface |
CfnAnomalyDetector.JsonFormatDescriptorProperty
Contains information about how a source JSON data file should be analyzed.
|
static interface |
CfnAnomalyDetector.MetricProperty
A calculation made by contrasting a measure and a dimension from your source data.
|
static interface |
CfnAnomalyDetector.MetricSetProperty
Contains information about a dataset.
|
static interface |
CfnAnomalyDetector.MetricSourceProperty
Contains information about how the source data should be interpreted.
|
static interface |
CfnAnomalyDetector.RDSSourceConfigProperty
Contains information about the Amazon Relational Database Service (RDS) configuration.
|
static interface |
CfnAnomalyDetector.RedshiftSourceConfigProperty
Provides information about the Amazon Redshift database configuration.
|
static interface |
CfnAnomalyDetector.S3SourceConfigProperty
Contains information about the configuration of the S3 bucket that contains source files.
|
static interface |
CfnAnomalyDetector.TimestampColumnProperty
Contains information about the column used to track time in a source data file.
|
static interface |
CfnAnomalyDetector.VpcConfigurationProperty
Contains configuration information about the Amazon Virtual Private Cloud (VPC).
|
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 |
|---|---|
|
CfnAnomalyDetector(software.constructs.Construct scope,
String id,
CfnAnomalyDetectorProps props)
Create a new `AWS::LookoutMetrics::AnomalyDetector`.
|
protected |
CfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAnomalyDetectorConfig()
Contains information about the configuration of the anomaly detector.
|
String |
getAnomalyDetectorDescription()
A description of the detector.
|
String |
getAnomalyDetectorName()
The name of the detector.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the detector.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getKmsKeyArn()
The ARN of the KMS key to use to encrypt your data.
|
Object |
getMetricSetList()
The detector's dataset.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAnomalyDetectorConfig(CfnAnomalyDetector.AnomalyDetectorConfigProperty value)
Contains information about the configuration of the anomaly detector.
|
void |
setAnomalyDetectorConfig(IResolvable value)
Contains information about the configuration of the anomaly detector.
|
void |
setAnomalyDetectorDescription(String value)
A description of the detector.
|
void |
setAnomalyDetectorName(String value)
The name of the detector.
|
void |
setKmsKeyArn(String value)
The ARN of the KMS key to use to encrypt your data.
|
void |
setMetricSetList(IResolvable value)
The detector's dataset.
|
void |
setMetricSetList(List<Object> value)
The detector's dataset.
|
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 CfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAnomalyDetector(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAnomalyDetectorProps 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()
For example, arn:aws:lookoutmetrics:us-east-2:123456789012:AnomalyDetector:my-detector
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getAnomalyDetectorConfig()
@Stability(value=Stable)
public void setAnomalyDetectorConfig(@NotNull
CfnAnomalyDetector.AnomalyDetectorConfigProperty value)
@Stability(value=Stable)
public void setAnomalyDetectorConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getMetricSetList()
@Stability(value=Stable)
public void setMetricSetList(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setMetricSetList(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public String getAnomalyDetectorDescription()
@Stability(value=Stable)
public void setAnomalyDetectorDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getAnomalyDetectorName()
@Stability(value=Stable)
public void setAnomalyDetectorName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getKmsKeyArn()
@Stability(value=Stable)
public void setKmsKeyArn(@Nullable
String value)
Copyright © 2022. All rights reserved.