aws-cdk-lib.aws_lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty

interface MetricSourceProperty

LanguageType name
.NETAmazon.CDK.AWS.LookoutMetrics.CfnAnomalyDetector.MetricSourceProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslookoutmetrics#CfnAnomalyDetector_MetricSourceProperty
Javasoftware.amazon.awscdk.services.lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty
Pythonaws_cdk.aws_lookoutmetrics.CfnAnomalyDetector.MetricSourceProperty
TypeScript aws-cdk-lib » 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 { aws_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
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

NameTypeDescription
appFlowConfig?IResolvable | AppFlowConfigPropertyDetails about an AppFlow datasource.
cloudwatchConfig?IResolvable | CloudwatchConfigPropertyDetails about an Amazon CloudWatch monitoring datasource.
rdsSourceConfig?IResolvable | RDSSourceConfigPropertyDetails about an Amazon Relational Database Service (RDS) datasource.
redshiftSourceConfig?IResolvable | RedshiftSourceConfigPropertyDetails about an Amazon Redshift database datasource.
s3SourceConfig?IResolvable | S3SourceConfigPropertyContains information about the configuration of the S3 bucket that contains source files.

appFlowConfig?

Type: IResolvable | AppFlowConfigProperty (optional)

Details about an AppFlow datasource.


cloudwatchConfig?

Type: IResolvable | CloudwatchConfigProperty (optional)

Details about an Amazon CloudWatch monitoring datasource.


rdsSourceConfig?

Type: IResolvable | RDSSourceConfigProperty (optional)

Details about an Amazon Relational Database Service (RDS) datasource.


redshiftSourceConfig?

Type: IResolvable | RedshiftSourceConfigProperty (optional)

Details about an Amazon Redshift database datasource.


s3SourceConfig?

Type: IResolvable | S3SourceConfigProperty (optional)

Contains information about the configuration of the S3 bucket that contains source files.