class CfnAnomalyDetectorPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.LookoutMetrics.Mixins.CfnAnomalyDetectorPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslookoutmetrics/mixins#CfnAnomalyDetectorPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.lookoutmetrics.mixins.CfnAnomalyDetectorPropsMixin |
Python | aws_cdk.mixins_preview.aws_lookoutmetrics.mixins.CfnAnomalyDetectorPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_lookoutmetrics » mixins » CfnAnomalyDetectorPropsMixin |
Implements
IMixin
Extends
Mixin
End of support notice: On Oct 9, 2025, AWS will end support for Amazon Lookout for Metrics.
After Oct 9, 2025, you will no longer be able to access the Amazon Lookout for Metrics console or Amazon Lookout for Metrics resources. For more information, see Amazon Lookout for Metrics end of support .
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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as lookoutmetrics_mixins } from '@aws-cdk/mixins-preview/aws-lookoutmetrics';
const cfnAnomalyDetectorPropsMixin = new lookoutmetrics_mixins.CfnAnomalyDetectorPropsMixin({
anomalyDetectorConfig: {
anomalyDetectorFrequency: 'anomalyDetectorFrequency',
},
anomalyDetectorDescription: 'anomalyDetectorDescription',
anomalyDetectorName: 'anomalyDetectorName',
kmsKeyArn: 'kmsKeyArn',
metricSetList: [{
dimensionList: ['dimensionList'],
metricList: [{
aggregationFunction: 'aggregationFunction',
metricName: 'metricName',
namespace: 'namespace',
}],
metricSetDescription: 'metricSetDescription',
metricSetFrequency: 'metricSetFrequency',
metricSetName: 'metricSetName',
metricSource: {
appFlowConfig: {
flowName: 'flowName',
roleArn: 'roleArn',
},
cloudwatchConfig: {
roleArn: 'roleArn',
},
rdsSourceConfig: {
databaseHost: 'databaseHost',
databaseName: 'databaseName',
databasePort: 123,
dbInstanceIdentifier: 'dbInstanceIdentifier',
roleArn: 'roleArn',
secretManagerArn: 'secretManagerArn',
tableName: 'tableName',
vpcConfiguration: {
securityGroupIdList: ['securityGroupIdList'],
subnetIdList: ['subnetIdList'],
},
},
redshiftSourceConfig: {
clusterIdentifier: 'clusterIdentifier',
databaseHost: 'databaseHost',
databaseName: 'databaseName',
databasePort: 123,
roleArn: 'roleArn',
secretManagerArn: 'secretManagerArn',
tableName: 'tableName',
vpcConfiguration: {
securityGroupIdList: ['securityGroupIdList'],
subnetIdList: ['subnetIdList'],
},
},
s3SourceConfig: {
fileFormatDescriptor: {
csvFormatDescriptor: {
charset: 'charset',
containsHeader: false,
delimiter: 'delimiter',
fileCompression: 'fileCompression',
headerList: ['headerList'],
quoteSymbol: 'quoteSymbol',
},
jsonFormatDescriptor: {
charset: 'charset',
fileCompression: 'fileCompression',
},
},
historicalDataPathList: ['historicalDataPathList'],
roleArn: 'roleArn',
templatedPathList: ['templatedPathList'],
},
},
offset: 123,
timestampColumn: {
columnFormat: 'columnFormat',
columnName: 'columnName',
},
timezone: 'timezone',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAnomalyDetectorPropsMixin(props: CfnAnomalyDetectorMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Anomaly Detector Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::LookoutMetrics::AnomalyDetector.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript