interface MetricSourceProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.LookoutMetrics.CfnAnomalyDetector.MetricSourceProperty |
Java | software.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty |
Python | aws_cdk.aws_lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty |
TypeScript | @aws-cdk/aws-lookoutmetrics » CfnAnomalyDetector » MetricSourceProperty |
Contains information about how the source data should be interpreted.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lookoutmetrics from '@aws-cdk/aws-lookoutmetrics';
const metricSourceProperty: lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty = {
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',
},
},
roleArn: 'roleArn',
// the properties below are optional
historicalDataPathList: ['historicalDataPathList'],
templatedPathList: ['templatedPathList'],
},
};
Properties
Name | Type | Description |
---|---|---|
app | IResolvable | App | Details about an AppFlow datasource. |
cloudwatch | IResolvable | Cloudwatch | Details about an Amazon CloudWatch monitoring datasource. |
rds | IResolvable | RDSSource | Details about an Amazon Relational Database Service (RDS) datasource. |
redshift | IResolvable | Redshift | Details about an Amazon Redshift database datasource. |
s3 | IResolvable | S3 | Contains information about the configuration of the S3 bucket that contains source files. |
appFlowConfig?
Type:
IResolvable
|
App
(optional)
Details about an AppFlow datasource.
cloudwatchConfig?
Type:
IResolvable
|
Cloudwatch
(optional)
Details about an Amazon CloudWatch monitoring datasource.
rdsSourceConfig?
Type:
IResolvable
|
RDSSource
(optional)
Details about an Amazon Relational Database Service (RDS) datasource.
redshiftSourceConfig?
Type:
IResolvable
|
Redshift
(optional)
Details about an Amazon Redshift database datasource.
s3SourceConfig?
Type:
IResolvable
|
S3
(optional)
Contains information about the configuration of the S3 bucket that contains source files.