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

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.getAnomalyDetector

Start a Neo task
Explain and create an aws-native.aps.getAnomalyDetector 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.

    Using getAnomalyDetector

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAnomalyDetector(args: GetAnomalyDetectorArgs, opts?: InvokeOptions): Promise<GetAnomalyDetectorResult>
    function getAnomalyDetectorOutput(args: GetAnomalyDetectorOutputArgs, opts?: InvokeOptions): Output<GetAnomalyDetectorResult>
    def get_anomaly_detector(arn: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetAnomalyDetectorResult
    def get_anomaly_detector_output(arn: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetAnomalyDetectorResult]
    func LookupAnomalyDetector(ctx *Context, args *LookupAnomalyDetectorArgs, opts ...InvokeOption) (*LookupAnomalyDetectorResult, error)
    func LookupAnomalyDetectorOutput(ctx *Context, args *LookupAnomalyDetectorOutputArgs, opts ...InvokeOption) LookupAnomalyDetectorResultOutput

    > Note: This function is named LookupAnomalyDetector in the Go SDK.

    public static class GetAnomalyDetector 
    {
        public static Task<GetAnomalyDetectorResult> InvokeAsync(GetAnomalyDetectorArgs args, InvokeOptions? opts = null)
        public static Output<GetAnomalyDetectorResult> Invoke(GetAnomalyDetectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAnomalyDetectorResult> getAnomalyDetector(GetAnomalyDetectorArgs args, InvokeOptions options)
    public static Output<GetAnomalyDetectorResult> getAnomalyDetector(GetAnomalyDetectorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:aps:getAnomalyDetector
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn string
    The AnomalyDetector ARN.
    Arn string
    The AnomalyDetector ARN.
    arn String
    The AnomalyDetector ARN.
    arn string
    The AnomalyDetector ARN.
    arn str
    The AnomalyDetector ARN.
    arn String
    The AnomalyDetector ARN.

    getAnomalyDetector Result

    The following output properties are available:

    Arn string
    The AnomalyDetector ARN.
    Configuration Pulumi.AwsNative.Aps.Outputs.AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    EvaluationIntervalInSeconds int
    The AnomalyDetector period of detection and metric generation.
    Labels List<Pulumi.AwsNative.Aps.Outputs.AnomalyDetectorLabel>
    An array of key-value pairs to provide meta-data.
    MissingDataAction Pulumi.AwsNative.Aps.Outputs.AnomalyDetectorMissingDataAction
    The action to perform when running the expression returns no data.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs to apply to this resource.
    Arn string
    The AnomalyDetector ARN.
    Configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    EvaluationIntervalInSeconds int
    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.
    arn String
    The AnomalyDetector ARN.
    configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    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.
    arn string
    The AnomalyDetector ARN.
    configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    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.
    arn str
    The AnomalyDetector ARN.
    configuration AnomalyDetectorConfiguration
    Determines the anomaly detector's algorithm and its configuration.
    evaluation_interval_in_seconds int
    The AnomalyDetector period of detection and metric generation.
    labels Sequence[AnomalyDetectorLabel]
    An array of key-value pairs to provide meta-data.
    missing_data_action AnomalyDetectorMissingDataAction
    The action to perform when running the expression returns no data.
    tags Sequence[root_Tag]
    An array of key-value pairs to apply to this resource.
    arn String
    The AnomalyDetector ARN.
    configuration Property Map
    Determines the anomaly detector's algorithm and its configuration.
    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.

    Supporting Types

    AnomalyDetectorConfiguration

    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

    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

    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

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

    AnomalyDetectorRandomCutForestConfiguration

    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

    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