1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. aps
  5. AnomalyDetector

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi

aws-native.aps.AnomalyDetector

Start a Neo task
Explain and create an aws-native.aps.AnomalyDetector resource
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi

    AnomalyDetector schema for cloudformation.

    Create AnomalyDetector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AnomalyDetector(name: string, args: AnomalyDetectorArgs, opts?: CustomResourceOptions);
    @overload
    def AnomalyDetector(resource_name: str,
                        args: AnomalyDetectorArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnomalyDetector(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        alias: Optional[str] = None,
                        configuration: Optional[AnomalyDetectorConfigurationArgs] = None,
                        workspace: Optional[str] = None,
                        evaluation_interval_in_seconds: Optional[int] = None,
                        labels: Optional[Sequence[AnomalyDetectorLabelArgs]] = None,
                        missing_data_action: Optional[AnomalyDetectorMissingDataActionArgs] = None,
                        tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewAnomalyDetector(ctx *Context, name string, args AnomalyDetectorArgs, opts ...ResourceOption) (*AnomalyDetector, error)
    public AnomalyDetector(string name, AnomalyDetectorArgs args, CustomResourceOptions? opts = null)
    public AnomalyDetector(String name, AnomalyDetectorArgs args)
    public AnomalyDetector(String name, AnomalyDetectorArgs args, CustomResourceOptions options)
    
    type: aws-native:aps:AnomalyDetector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AnomalyDetectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AnomalyDetectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AnomalyDetectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnomalyDetectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnomalyDetectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AnomalyDetector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AnomalyDetector resource accepts the following input properties:

    Alias string
    The AnomalyDetector alias.
    Configuration Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    Workspace string
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    EvaluationIntervalInSeconds int
    The AnomalyDetector period of detection and metric generation.
    Labels List<Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorLabel>
    An array of key-value pairs to provide meta-data.
    MissingDataAction Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorMissingDataAction
    The action to perform when running the expression returns no data.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to this resource.
    Alias string
    The AnomalyDetector alias.
    Configuration AnomalyDetectorConfigurationArgs
    Determines the anomaly detector's algorithm and its configuration.
    Workspace string
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    EvaluationIntervalInSeconds int
    The AnomalyDetector period of detection and metric generation.
    Labels []AnomalyDetectorLabelArgs
    An array of key-value pairs to provide meta-data.
    MissingDataAction AnomalyDetectorMissingDataActionArgs
    The action to perform when running the expression returns no data.
    Tags TagArgs
    An array of key-value pairs to apply to this resource.
    alias String
    The AnomalyDetector alias.
    configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    workspace String
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    evaluationIntervalInSeconds Integer
    The AnomalyDetector period of detection and metric generation.
    labels List<AnomalyDetectorLabel>
    An array of key-value pairs to provide meta-data.
    missingDataAction AnomalyDetectorMissingDataAction
    The action to perform when running the expression returns no data.
    tags List<Tag>
    An array of key-value pairs to apply to this resource.
    alias string
    The AnomalyDetector alias.
    configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    workspace string
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    evaluationIntervalInSeconds number
    The AnomalyDetector period of detection and metric generation.
    labels AnomalyDetectorLabel[]
    An array of key-value pairs to provide meta-data.
    missingDataAction AnomalyDetectorMissingDataAction
    The action to perform when running the expression returns no data.
    tags Tag[]
    An array of key-value pairs to apply to this resource.
    alias str
    The AnomalyDetector alias.
    configuration AnomalyDetectorConfigurationArgs
    Determines the anomaly detector's algorithm and its configuration.
    workspace str
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    evaluation_interval_in_seconds int
    The AnomalyDetector period of detection and metric generation.
    labels Sequence[AnomalyDetectorLabelArgs]
    An array of key-value pairs to provide meta-data.
    missing_data_action AnomalyDetectorMissingDataActionArgs
    The action to perform when running the expression returns no data.
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to this resource.
    alias String
    The AnomalyDetector alias.
    configuration Property Map
    Determines the anomaly detector's algorithm and its configuration.
    workspace String
    Required to identify a specific APS Workspace associated with this Anomaly Detector.
    evaluationIntervalInSeconds Number
    The AnomalyDetector period of detection and metric generation.
    labels List<Property Map>
    An array of key-value pairs to provide meta-data.
    missingDataAction Property Map
    The action to perform when running the expression returns no data.
    tags List<Property Map>
    An array of key-value pairs to apply to this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AnomalyDetector resource produces the following output properties:

    Arn string
    The AnomalyDetector ARN.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The AnomalyDetector ARN.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The AnomalyDetector ARN.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The AnomalyDetector ARN.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The AnomalyDetector ARN.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The AnomalyDetector ARN.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    AnomalyDetectorConfiguration, AnomalyDetectorConfigurationArgs

    RandomCutForest Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorRandomCutForestConfiguration
    The Random Cut Forest algorithm configuration for anomaly detection.
    RandomCutForest AnomalyDetectorRandomCutForestConfiguration
    The Random Cut Forest algorithm configuration for anomaly detection.
    randomCutForest AnomalyDetectorRandomCutForestConfiguration
    The Random Cut Forest algorithm configuration for anomaly detection.
    randomCutForest AnomalyDetectorRandomCutForestConfiguration
    The Random Cut Forest algorithm configuration for anomaly detection.
    random_cut_forest AnomalyDetectorRandomCutForestConfiguration
    The Random Cut Forest algorithm configuration for anomaly detection.
    randomCutForest Property Map
    The Random Cut Forest algorithm configuration for anomaly detection.

    AnomalyDetectorIgnoreNearExpected, AnomalyDetectorIgnoreNearExpectedArgs

    Amount double
    Ratio double
    Amount float64
    Ratio float64
    amount Double
    ratio Double
    amount number
    ratio number
    amount float
    ratio float
    amount Number
    ratio Number

    AnomalyDetectorLabel, AnomalyDetectorLabelArgs

    A key-value pair to provide meta-data and multi-dimensional data analysis for filtering and aggregation.
    Key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    Value string
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    Key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    Value string
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    key String
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    value String
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    value string
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    key str
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    value str
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    key String
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
    value String
    The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

    AnomalyDetectorMissingDataAction, AnomalyDetectorMissingDataActionArgs

    markAsAnomaly Boolean
    skip Boolean
    markAsAnomaly boolean
    skip boolean
    markAsAnomaly Boolean
    skip Boolean

    AnomalyDetectorRandomCutForestConfiguration, AnomalyDetectorRandomCutForestConfigurationArgs

    Query string

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    IgnoreNearExpectedFromAbove Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    IgnoreNearExpectedFromBelow Pulumi.AwsNative.Aps.Inputs.AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    SampleSize int
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    ShingleSize int
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
    Query string

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    IgnoreNearExpectedFromAbove AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    IgnoreNearExpectedFromBelow AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    SampleSize int
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    ShingleSize int
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
    query String

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    ignoreNearExpectedFromAbove AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    ignoreNearExpectedFromBelow AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    sampleSize Integer
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    shingleSize Integer
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
    query string

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    ignoreNearExpectedFromAbove AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    ignoreNearExpectedFromBelow AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    sampleSize number
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    shingleSize number
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
    query str

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    ignore_near_expected_from_above AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    ignore_near_expected_from_below AnomalyDetectorIgnoreNearExpected
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    sample_size int
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    shingle_size int
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
    query String

    The Prometheus query used to retrieve the time-series data for anomaly detection.

    Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

    Supported PromQL aggregation operators : avg , count , group , max , min , quantile , stddev , stdvar , and sum .

    ignoreNearExpectedFromAbove Property Map
    Configuration for ignoring values that are near expected values from above during anomaly detection.
    ignoreNearExpectedFromBelow Property Map
    Configuration for ignoring values that are near expected values from below during anomaly detection.
    sampleSize Number
    The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
    shingleSize Number
    The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate