awscc.lookoutmetrics_anomalydetector

Filters

  • event

  • reduce

  • value

Actions

delete

Parent base class for filters and actions.

properties:
  type:
    enum:
    - delete
required:
- type

Permissions - lookoutmetrics:DescribeAnomalyDetector, lookoutmetrics:DeleteAnomalyDetector

update

Parent base class for filters and actions.

definitions:
  AnomalyDetectorConfig:
    additionalProperties: false
    properties:
      AnomalyDetectorFrequency:
        description: Frequency of anomaly detection
        enum:
        - PT5M
        - PT10M
        - PT1H
        - P1D
        type: string
    required:
    - AnomalyDetectorFrequency
    type: object
  AnomalyDetectorFrequency:
    description: Frequency of anomaly detection
    enum:
    - PT5M
    - PT10M
    - PT1H
    - P1D
    type: string
  AppFlowConfig:
    additionalProperties: false
    properties:
      FlowName:
        maxLength: 256
        pattern: '[a-zA-Z0-9][\w!@#.-]+'
        type: string
      RoleArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:.*:.+
        type: string
    required:
    - RoleArn
    - FlowName
    type: object
  Arn:
    maxLength: 256
    pattern: arn:([a-z\d-]+):.*:.*:.*:.+
    type: string
  Charset:
    maxLength: 63
    pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
    type: string
  CloudwatchConfig:
    additionalProperties: false
    properties:
      RoleArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:.*:.+
        type: string
    required:
    - RoleArn
    type: object
  ColumnName:
    description: Name of a column in the data.
    maxLength: 63
    minLength: 1
    pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
    type: string
  CsvFormatDescriptor:
    additionalProperties: false
    properties:
      Charset:
        maxLength: 63
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
        type: string
      ContainsHeader:
        type: boolean
      Delimiter:
        maxLength: 1
        pattern: '[^\r\n]'
        type: string
      FileCompression:
        enum:
        - NONE
        - GZIP
        type: string
      HeaderList:
        items:
          description: Name of a column in the data.
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
          type: string
        type: array
      QuoteSymbol:
        maxLength: 1
        pattern: '[^\r\n]|^$'
        type: string
    type: object
  DatabaseHost:
    maxLength: 253
    minLength: 1
    pattern: .*\S.*
    type: string
  DatabasePort:
    maximum: 65535
    minimum: 1
    type: integer
  FileFormatDescriptor:
    additionalProperties: false
    properties:
      CsvFormatDescriptor:
        additionalProperties: false
        properties:
          Charset:
            maxLength: 63
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
            type: string
          ContainsHeader:
            type: boolean
          Delimiter:
            maxLength: 1
            pattern: '[^\r\n]'
            type: string
          FileCompression:
            enum:
            - NONE
            - GZIP
            type: string
          HeaderList:
            items:
              description: Name of a column in the data.
              maxLength: 63
              minLength: 1
              pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
              type: string
            type: array
          QuoteSymbol:
            maxLength: 1
            pattern: '[^\r\n]|^$'
            type: string
        type: object
      JsonFormatDescriptor:
        additionalProperties: false
        properties:
          Charset:
            maxLength: 63
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
            type: string
          FileCompression:
            enum:
            - NONE
            - GZIP
            type: string
        type: object
    type: object
  JsonFormatDescriptor:
    additionalProperties: false
    properties:
      Charset:
        maxLength: 63
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
        type: string
      FileCompression:
        enum:
        - NONE
        - GZIP
        type: string
    type: object
  Metric:
    additionalProperties: false
    properties:
      AggregationFunction:
        description: Operator used to aggregate metric values
        enum:
        - AVG
        - SUM
        type: string
      MetricName:
        description: Name of a column in the data.
        maxLength: 63
        minLength: 1
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
        type: string
      Namespace:
        maxLength: 255
        minLength: 1
        pattern: '[^:].*'
        type: string
    required:
    - MetricName
    - AggregationFunction
    type: object
  MetricSet:
    additionalProperties: false
    properties:
      DimensionList:
        description: Dimensions for this MetricSet.
        insertionOrder: false
        items:
          description: Name of a column in the data.
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
          type: string
        minItems: 0
        type: array
      MetricList:
        description: Metrics captured by this MetricSet.
        insertionOrder: false
        items:
          additionalProperties: false
          properties:
            AggregationFunction:
              description: Operator used to aggregate metric values
              enum:
              - AVG
              - SUM
              type: string
            MetricName:
              description: Name of a column in the data.
              maxLength: 63
              minLength: 1
              pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
              type: string
            Namespace:
              maxLength: 255
              minLength: 1
              pattern: '[^:].*'
              type: string
          required:
          - MetricName
          - AggregationFunction
          type: object
        minItems: 1
        type: array
      MetricSetDescription:
        description: A description for the MetricSet.
        maxLength: 256
        pattern: .*\S.*
        type: string
      MetricSetFrequency:
        description: A frequency period to aggregate the data
        enum:
        - PT5M
        - PT10M
        - PT1H
        - P1D
        type: string
      MetricSetName:
        description: The name of the MetricSet.
        maxLength: 63
        minLength: 1
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
        type: string
      MetricSource:
        additionalProperties: false
        properties:
          AppFlowConfig:
            additionalProperties: false
            properties:
              FlowName:
                maxLength: 256
                pattern: '[a-zA-Z0-9][\w!@#.-]+'
                type: string
              RoleArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                type: string
            required:
            - RoleArn
            - FlowName
            type: object
          CloudwatchConfig:
            additionalProperties: false
            properties:
              RoleArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                type: string
            required:
            - RoleArn
            type: object
          RDSSourceConfig:
            additionalProperties: false
            properties:
              DBInstanceIdentifier:
                maxLength: 63
                minLength: 1
                pattern: ^[a-zA-Z](?!.*--)(?!.*-$)[0-9a-zA-Z\-]*$
                type: string
              DatabaseHost:
                maxLength: 253
                minLength: 1
                pattern: .*\S.*
                type: string
              DatabaseName:
                maxLength: 64
                minLength: 1
                pattern: '[a-zA-Z0-9_]+'
                type: string
              DatabasePort:
                maximum: 65535
                minimum: 1
                type: integer
              RoleArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                type: string
              SecretManagerArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
                type: string
              TableName:
                maxLength: 100
                minLength: 1
                pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                type: string
              VpcConfiguration:
                additionalProperties: false
                properties:
                  SecurityGroupIdList:
                    items:
                      maxLength: 255
                      minLength: 1
                      pattern: '[-0-9a-zA-Z]+'
                      type: string
                    type: array
                  SubnetIdList:
                    items:
                      maxLength: 255
                      pattern: '[\-0-9a-zA-Z]+'
                      type: string
                    type: array
                required:
                - SubnetIdList
                - SecurityGroupIdList
                type: object
            required:
            - DBInstanceIdentifier
            - DatabaseHost
            - DatabasePort
            - SecretManagerArn
            - DatabaseName
            - TableName
            - RoleArn
            - VpcConfiguration
            type: object
          RedshiftSourceConfig:
            additionalProperties: false
            properties:
              ClusterIdentifier:
                maxLength: 63
                minLength: 1
                pattern: ^[a-z](?!.*--)(?!.*-$)[0-9a-z\-]*$
                type: string
              DatabaseHost:
                maxLength: 253
                minLength: 1
                pattern: .*\S.*
                type: string
              DatabaseName:
                maxLength: 100
                minLength: 1
                pattern: '[a-z0-9]+'
                type: string
              DatabasePort:
                maximum: 65535
                minimum: 1
                type: integer
              RoleArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                type: string
              SecretManagerArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
                type: string
              TableName:
                maxLength: 100
                minLength: 1
                pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                type: string
              VpcConfiguration:
                additionalProperties: false
                properties:
                  SecurityGroupIdList:
                    items:
                      maxLength: 255
                      minLength: 1
                      pattern: '[-0-9a-zA-Z]+'
                      type: string
                    type: array
                  SubnetIdList:
                    items:
                      maxLength: 255
                      pattern: '[\-0-9a-zA-Z]+'
                      type: string
                    type: array
                required:
                - SubnetIdList
                - SecurityGroupIdList
                type: object
            required:
            - ClusterIdentifier
            - DatabaseHost
            - DatabasePort
            - SecretManagerArn
            - DatabaseName
            - TableName
            - RoleArn
            - VpcConfiguration
            type: object
          S3SourceConfig:
            additionalProperties: false
            properties:
              FileFormatDescriptor:
                additionalProperties: false
                properties:
                  CsvFormatDescriptor:
                    additionalProperties: false
                    properties:
                      Charset:
                        maxLength: 63
                        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                        type: string
                      ContainsHeader:
                        type: boolean
                      Delimiter:
                        maxLength: 1
                        pattern: '[^\r\n]'
                        type: string
                      FileCompression:
                        enum:
                        - NONE
                        - GZIP
                        type: string
                      HeaderList:
                        items:
                          description: Name of a column in the data.
                          maxLength: 63
                          minLength: 1
                          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                          type: string
                        type: array
                      QuoteSymbol:
                        maxLength: 1
                        pattern: '[^\r\n]|^$'
                        type: string
                    type: object
                  JsonFormatDescriptor:
                    additionalProperties: false
                    properties:
                      Charset:
                        maxLength: 63
                        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                        type: string
                      FileCompression:
                        enum:
                        - NONE
                        - GZIP
                        type: string
                    type: object
                type: object
              HistoricalDataPathList:
                items:
                  maxLength: 1024
                  pattern: ^s3://[a-z0-9].+$
                  type: string
                maxItems: 1
                minItems: 1
                type: array
              RoleArn:
                maxLength: 256
                pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                type: string
              TemplatedPathList:
                items:
                  maxLength: 1024
                  pattern: ^s3://[a-zA-Z0-9_\-\/ {}=]+$
                  type: string
                maxItems: 1
                minItems: 1
                type: array
            required:
            - RoleArn
            - FileFormatDescriptor
            type: object
        type: object
      Offset:
        description: Offset, in seconds, between the frequency interval and the time
          at which the metrics are available.
        maximum: 432000
        minimum: 0
        type: integer
      TimestampColumn:
        additionalProperties: false
        properties:
          ColumnFormat:
            description: A timestamp format for the timestamps in the dataset
            maxLength: 63
            pattern: .*\S.*
            type: string
          ColumnName:
            description: Name of a column in the data.
            maxLength: 63
            minLength: 1
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
            type: string
        type: object
      Timezone:
        maxLength: 60
        pattern: .*\S.*
        type: string
    required:
    - MetricSetName
    - MetricList
    - MetricSource
    type: object
  MetricSource:
    additionalProperties: false
    properties:
      AppFlowConfig:
        additionalProperties: false
        properties:
          FlowName:
            maxLength: 256
            pattern: '[a-zA-Z0-9][\w!@#.-]+'
            type: string
          RoleArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:.*:.+
            type: string
        required:
        - RoleArn
        - FlowName
        type: object
      CloudwatchConfig:
        additionalProperties: false
        properties:
          RoleArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:.*:.+
            type: string
        required:
        - RoleArn
        type: object
      RDSSourceConfig:
        additionalProperties: false
        properties:
          DBInstanceIdentifier:
            maxLength: 63
            minLength: 1
            pattern: ^[a-zA-Z](?!.*--)(?!.*-$)[0-9a-zA-Z\-]*$
            type: string
          DatabaseHost:
            maxLength: 253
            minLength: 1
            pattern: .*\S.*
            type: string
          DatabaseName:
            maxLength: 64
            minLength: 1
            pattern: '[a-zA-Z0-9_]+'
            type: string
          DatabasePort:
            maximum: 65535
            minimum: 1
            type: integer
          RoleArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:.*:.+
            type: string
          SecretManagerArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
            type: string
          TableName:
            maxLength: 100
            minLength: 1
            pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
            type: string
          VpcConfiguration:
            additionalProperties: false
            properties:
              SecurityGroupIdList:
                items:
                  maxLength: 255
                  minLength: 1
                  pattern: '[-0-9a-zA-Z]+'
                  type: string
                type: array
              SubnetIdList:
                items:
                  maxLength: 255
                  pattern: '[\-0-9a-zA-Z]+'
                  type: string
                type: array
            required:
            - SubnetIdList
            - SecurityGroupIdList
            type: object
        required:
        - DBInstanceIdentifier
        - DatabaseHost
        - DatabasePort
        - SecretManagerArn
        - DatabaseName
        - TableName
        - RoleArn
        - VpcConfiguration
        type: object
      RedshiftSourceConfig:
        additionalProperties: false
        properties:
          ClusterIdentifier:
            maxLength: 63
            minLength: 1
            pattern: ^[a-z](?!.*--)(?!.*-$)[0-9a-z\-]*$
            type: string
          DatabaseHost:
            maxLength: 253
            minLength: 1
            pattern: .*\S.*
            type: string
          DatabaseName:
            maxLength: 100
            minLength: 1
            pattern: '[a-z0-9]+'
            type: string
          DatabasePort:
            maximum: 65535
            minimum: 1
            type: integer
          RoleArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:.*:.+
            type: string
          SecretManagerArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
            type: string
          TableName:
            maxLength: 100
            minLength: 1
            pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
            type: string
          VpcConfiguration:
            additionalProperties: false
            properties:
              SecurityGroupIdList:
                items:
                  maxLength: 255
                  minLength: 1
                  pattern: '[-0-9a-zA-Z]+'
                  type: string
                type: array
              SubnetIdList:
                items:
                  maxLength: 255
                  pattern: '[\-0-9a-zA-Z]+'
                  type: string
                type: array
            required:
            - SubnetIdList
            - SecurityGroupIdList
            type: object
        required:
        - ClusterIdentifier
        - DatabaseHost
        - DatabasePort
        - SecretManagerArn
        - DatabaseName
        - TableName
        - RoleArn
        - VpcConfiguration
        type: object
      S3SourceConfig:
        additionalProperties: false
        properties:
          FileFormatDescriptor:
            additionalProperties: false
            properties:
              CsvFormatDescriptor:
                additionalProperties: false
                properties:
                  Charset:
                    maxLength: 63
                    pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                    type: string
                  ContainsHeader:
                    type: boolean
                  Delimiter:
                    maxLength: 1
                    pattern: '[^\r\n]'
                    type: string
                  FileCompression:
                    enum:
                    - NONE
                    - GZIP
                    type: string
                  HeaderList:
                    items:
                      description: Name of a column in the data.
                      maxLength: 63
                      minLength: 1
                      pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                      type: string
                    type: array
                  QuoteSymbol:
                    maxLength: 1
                    pattern: '[^\r\n]|^$'
                    type: string
                type: object
              JsonFormatDescriptor:
                additionalProperties: false
                properties:
                  Charset:
                    maxLength: 63
                    pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                    type: string
                  FileCompression:
                    enum:
                    - NONE
                    - GZIP
                    type: string
                type: object
            type: object
          HistoricalDataPathList:
            items:
              maxLength: 1024
              pattern: ^s3://[a-z0-9].+$
              type: string
            maxItems: 1
            minItems: 1
            type: array
          RoleArn:
            maxLength: 256
            pattern: arn:([a-z\d-]+):.*:.*:.*:.+
            type: string
          TemplatedPathList:
            items:
              maxLength: 1024
              pattern: ^s3://[a-zA-Z0-9_\-\/ {}=]+$
              type: string
            maxItems: 1
            minItems: 1
            type: array
        required:
        - RoleArn
        - FileFormatDescriptor
        type: object
    type: object
  RDSSourceConfig:
    additionalProperties: false
    properties:
      DBInstanceIdentifier:
        maxLength: 63
        minLength: 1
        pattern: ^[a-zA-Z](?!.*--)(?!.*-$)[0-9a-zA-Z\-]*$
        type: string
      DatabaseHost:
        maxLength: 253
        minLength: 1
        pattern: .*\S.*
        type: string
      DatabaseName:
        maxLength: 64
        minLength: 1
        pattern: '[a-zA-Z0-9_]+'
        type: string
      DatabasePort:
        maximum: 65535
        minimum: 1
        type: integer
      RoleArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:.*:.+
        type: string
      SecretManagerArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
        type: string
      TableName:
        maxLength: 100
        minLength: 1
        pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
        type: string
      VpcConfiguration:
        additionalProperties: false
        properties:
          SecurityGroupIdList:
            items:
              maxLength: 255
              minLength: 1
              pattern: '[-0-9a-zA-Z]+'
              type: string
            type: array
          SubnetIdList:
            items:
              maxLength: 255
              pattern: '[\-0-9a-zA-Z]+'
              type: string
            type: array
        required:
        - SubnetIdList
        - SecurityGroupIdList
        type: object
    required:
    - DBInstanceIdentifier
    - DatabaseHost
    - DatabasePort
    - SecretManagerArn
    - DatabaseName
    - TableName
    - RoleArn
    - VpcConfiguration
    type: object
  RedshiftSourceConfig:
    additionalProperties: false
    properties:
      ClusterIdentifier:
        maxLength: 63
        minLength: 1
        pattern: ^[a-z](?!.*--)(?!.*-$)[0-9a-z\-]*$
        type: string
      DatabaseHost:
        maxLength: 253
        minLength: 1
        pattern: .*\S.*
        type: string
      DatabaseName:
        maxLength: 100
        minLength: 1
        pattern: '[a-z0-9]+'
        type: string
      DatabasePort:
        maximum: 65535
        minimum: 1
        type: integer
      RoleArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:.*:.+
        type: string
      SecretManagerArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
        type: string
      TableName:
        maxLength: 100
        minLength: 1
        pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
        type: string
      VpcConfiguration:
        additionalProperties: false
        properties:
          SecurityGroupIdList:
            items:
              maxLength: 255
              minLength: 1
              pattern: '[-0-9a-zA-Z]+'
              type: string
            type: array
          SubnetIdList:
            items:
              maxLength: 255
              pattern: '[\-0-9a-zA-Z]+'
              type: string
            type: array
        required:
        - SubnetIdList
        - SecurityGroupIdList
        type: object
    required:
    - ClusterIdentifier
    - DatabaseHost
    - DatabasePort
    - SecretManagerArn
    - DatabaseName
    - TableName
    - RoleArn
    - VpcConfiguration
    type: object
  S3SourceConfig:
    additionalProperties: false
    properties:
      FileFormatDescriptor:
        additionalProperties: false
        properties:
          CsvFormatDescriptor:
            additionalProperties: false
            properties:
              Charset:
                maxLength: 63
                pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                type: string
              ContainsHeader:
                type: boolean
              Delimiter:
                maxLength: 1
                pattern: '[^\r\n]'
                type: string
              FileCompression:
                enum:
                - NONE
                - GZIP
                type: string
              HeaderList:
                items:
                  description: Name of a column in the data.
                  maxLength: 63
                  minLength: 1
                  pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                  type: string
                type: array
              QuoteSymbol:
                maxLength: 1
                pattern: '[^\r\n]|^$'
                type: string
            type: object
          JsonFormatDescriptor:
            additionalProperties: false
            properties:
              Charset:
                maxLength: 63
                pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                type: string
              FileCompression:
                enum:
                - NONE
                - GZIP
                type: string
            type: object
        type: object
      HistoricalDataPathList:
        items:
          maxLength: 1024
          pattern: ^s3://[a-z0-9].+$
          type: string
        maxItems: 1
        minItems: 1
        type: array
      RoleArn:
        maxLength: 256
        pattern: arn:([a-z\d-]+):.*:.*:.*:.+
        type: string
      TemplatedPathList:
        items:
          maxLength: 1024
          pattern: ^s3://[a-zA-Z0-9_\-\/ {}=]+$
          type: string
        maxItems: 1
        minItems: 1
        type: array
    required:
    - RoleArn
    - FileFormatDescriptor
    type: object
  SecretManagerArn:
    maxLength: 256
    pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
    type: string
  SecurityGroupIdList:
    items:
      maxLength: 255
      minLength: 1
      pattern: '[-0-9a-zA-Z]+'
      type: string
    type: array
  SubnetIdList:
    items:
      maxLength: 255
      pattern: '[\-0-9a-zA-Z]+'
      type: string
    type: array
  TableName:
    maxLength: 100
    minLength: 1
    pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
    type: string
  TimestampColumn:
    additionalProperties: false
    properties:
      ColumnFormat:
        description: A timestamp format for the timestamps in the dataset
        maxLength: 63
        pattern: .*\S.*
        type: string
      ColumnName:
        description: Name of a column in the data.
        maxLength: 63
        minLength: 1
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
        type: string
    type: object
  VpcConfiguration:
    additionalProperties: false
    properties:
      SecurityGroupIdList:
        items:
          maxLength: 255
          minLength: 1
          pattern: '[-0-9a-zA-Z]+'
          type: string
        type: array
      SubnetIdList:
        items:
          maxLength: 255
          pattern: '[\-0-9a-zA-Z]+'
          type: string
        type: array
    required:
    - SubnetIdList
    - SecurityGroupIdList
    type: object
properties:
  AnomalyDetectorConfig:
    additionalProperties: false
    properties:
      AnomalyDetectorFrequency:
        description: Frequency of anomaly detection
        enum:
        - PT5M
        - PT10M
        - PT1H
        - P1D
        type: string
    required:
    - AnomalyDetectorFrequency
    type: object
  AnomalyDetectorDescription:
    description: A description for the AnomalyDetector.
    maxLength: 256
    pattern: .*\S.*
    type: string
  KmsKeyArn:
    description: KMS key used to encrypt the AnomalyDetector data
    maxLength: 2048
    minLength: 20
    pattern: arn:aws.*:kms:.*:[0-9]{12}:key/.*
    type: string
  MetricSetList:
    description: List of metric sets for anomaly detection
    items:
      additionalProperties: false
      properties:
        DimensionList:
          description: Dimensions for this MetricSet.
          insertionOrder: false
          items:
            description: Name of a column in the data.
            maxLength: 63
            minLength: 1
            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
            type: string
          minItems: 0
          type: array
        MetricList:
          description: Metrics captured by this MetricSet.
          insertionOrder: false
          items:
            additionalProperties: false
            properties:
              AggregationFunction:
                description: Operator used to aggregate metric values
                enum:
                - AVG
                - SUM
                type: string
              MetricName:
                description: Name of a column in the data.
                maxLength: 63
                minLength: 1
                pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                type: string
              Namespace:
                maxLength: 255
                minLength: 1
                pattern: '[^:].*'
                type: string
            required:
            - MetricName
            - AggregationFunction
            type: object
          minItems: 1
          type: array
        MetricSetDescription:
          description: A description for the MetricSet.
          maxLength: 256
          pattern: .*\S.*
          type: string
        MetricSetFrequency:
          description: A frequency period to aggregate the data
          enum:
          - PT5M
          - PT10M
          - PT1H
          - P1D
          type: string
        MetricSetName:
          description: The name of the MetricSet.
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
          type: string
        MetricSource:
          additionalProperties: false
          properties:
            AppFlowConfig:
              additionalProperties: false
              properties:
                FlowName:
                  maxLength: 256
                  pattern: '[a-zA-Z0-9][\w!@#.-]+'
                  type: string
                RoleArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                  type: string
              required:
              - RoleArn
              - FlowName
              type: object
            CloudwatchConfig:
              additionalProperties: false
              properties:
                RoleArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                  type: string
              required:
              - RoleArn
              type: object
            RDSSourceConfig:
              additionalProperties: false
              properties:
                DBInstanceIdentifier:
                  maxLength: 63
                  minLength: 1
                  pattern: ^[a-zA-Z](?!.*--)(?!.*-$)[0-9a-zA-Z\-]*$
                  type: string
                DatabaseHost:
                  maxLength: 253
                  minLength: 1
                  pattern: .*\S.*
                  type: string
                DatabaseName:
                  maxLength: 64
                  minLength: 1
                  pattern: '[a-zA-Z0-9_]+'
                  type: string
                DatabasePort:
                  maximum: 65535
                  minimum: 1
                  type: integer
                RoleArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                  type: string
                SecretManagerArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
                  type: string
                TableName:
                  maxLength: 100
                  minLength: 1
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                  type: string
                VpcConfiguration:
                  additionalProperties: false
                  properties:
                    SecurityGroupIdList:
                      items:
                        maxLength: 255
                        minLength: 1
                        pattern: '[-0-9a-zA-Z]+'
                        type: string
                      type: array
                    SubnetIdList:
                      items:
                        maxLength: 255
                        pattern: '[\-0-9a-zA-Z]+'
                        type: string
                      type: array
                  required:
                  - SubnetIdList
                  - SecurityGroupIdList
                  type: object
              required:
              - DBInstanceIdentifier
              - DatabaseHost
              - DatabasePort
              - SecretManagerArn
              - DatabaseName
              - TableName
              - RoleArn
              - VpcConfiguration
              type: object
            RedshiftSourceConfig:
              additionalProperties: false
              properties:
                ClusterIdentifier:
                  maxLength: 63
                  minLength: 1
                  pattern: ^[a-z](?!.*--)(?!.*-$)[0-9a-z\-]*$
                  type: string
                DatabaseHost:
                  maxLength: 253
                  minLength: 1
                  pattern: .*\S.*
                  type: string
                DatabaseName:
                  maxLength: 100
                  minLength: 1
                  pattern: '[a-z0-9]+'
                  type: string
                DatabasePort:
                  maximum: 65535
                  minimum: 1
                  type: integer
                RoleArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                  type: string
                SecretManagerArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+
                  type: string
                TableName:
                  maxLength: 100
                  minLength: 1
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                  type: string
                VpcConfiguration:
                  additionalProperties: false
                  properties:
                    SecurityGroupIdList:
                      items:
                        maxLength: 255
                        minLength: 1
                        pattern: '[-0-9a-zA-Z]+'
                        type: string
                      type: array
                    SubnetIdList:
                      items:
                        maxLength: 255
                        pattern: '[\-0-9a-zA-Z]+'
                        type: string
                      type: array
                  required:
                  - SubnetIdList
                  - SecurityGroupIdList
                  type: object
              required:
              - ClusterIdentifier
              - DatabaseHost
              - DatabasePort
              - SecretManagerArn
              - DatabaseName
              - TableName
              - RoleArn
              - VpcConfiguration
              type: object
            S3SourceConfig:
              additionalProperties: false
              properties:
                FileFormatDescriptor:
                  additionalProperties: false
                  properties:
                    CsvFormatDescriptor:
                      additionalProperties: false
                      properties:
                        Charset:
                          maxLength: 63
                          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                          type: string
                        ContainsHeader:
                          type: boolean
                        Delimiter:
                          maxLength: 1
                          pattern: '[^\r\n]'
                          type: string
                        FileCompression:
                          enum:
                          - NONE
                          - GZIP
                          type: string
                        HeaderList:
                          items:
                            description: Name of a column in the data.
                            maxLength: 63
                            minLength: 1
                            pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                            type: string
                          type: array
                        QuoteSymbol:
                          maxLength: 1
                          pattern: '[^\r\n]|^$'
                          type: string
                      type: object
                    JsonFormatDescriptor:
                      additionalProperties: false
                      properties:
                        Charset:
                          maxLength: 63
                          pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
                          type: string
                        FileCompression:
                          enum:
                          - NONE
                          - GZIP
                          type: string
                      type: object
                  type: object
                HistoricalDataPathList:
                  items:
                    maxLength: 1024
                    pattern: ^s3://[a-z0-9].+$
                    type: string
                  maxItems: 1
                  minItems: 1
                  type: array
                RoleArn:
                  maxLength: 256
                  pattern: arn:([a-z\d-]+):.*:.*:.*:.+
                  type: string
                TemplatedPathList:
                  items:
                    maxLength: 1024
                    pattern: ^s3://[a-zA-Z0-9_\-\/ {}=]+$
                    type: string
                  maxItems: 1
                  minItems: 1
                  type: array
              required:
              - RoleArn
              - FileFormatDescriptor
              type: object
          type: object
        Offset:
          description: Offset, in seconds, between the frequency interval and the
            time at which the metrics are available.
          maximum: 432000
          minimum: 0
          type: integer
        TimestampColumn:
          additionalProperties: false
          properties:
            ColumnFormat:
              description: A timestamp format for the timestamps in the dataset
              maxLength: 63
              pattern: .*\S.*
              type: string
            ColumnName:
              description: Name of a column in the data.
              maxLength: 63
              minLength: 1
              pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]*
              type: string
          type: object
        Timezone:
          maxLength: 60
          pattern: .*\S.*
          type: string
      required:
      - MetricSetName
      - MetricList
      - MetricSource
      type: object
    maxItems: 1
    minItems: 1
    type: array
  type:
    enum:
    - update

Permissions - lookoutmetrics:UpdateAnomalyDetector, lookoutmetrics:UpdateMetricSet