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

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

AWS Cloud Control v1.35.0 published on Monday, Sep 22, 2025 by Pulumi

aws-native.aps.getScraper

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.35.0 published on Monday, Sep 22, 2025 by Pulumi

    Resource Type definition for AWS::APS::Scraper

    Using getScraper

    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 getScraper(args: GetScraperArgs, opts?: InvokeOptions): Promise<GetScraperResult>
    function getScraperOutput(args: GetScraperOutputArgs, opts?: InvokeOptions): Output<GetScraperResult>
    def get_scraper(arn: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetScraperResult
    def get_scraper_output(arn: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetScraperResult]
    func LookupScraper(ctx *Context, args *LookupScraperArgs, opts ...InvokeOption) (*LookupScraperResult, error)
    func LookupScraperOutput(ctx *Context, args *LookupScraperOutputArgs, opts ...InvokeOption) LookupScraperResultOutput

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

    public static class GetScraper 
    {
        public static Task<GetScraperResult> InvokeAsync(GetScraperArgs args, InvokeOptions? opts = null)
        public static Output<GetScraperResult> Invoke(GetScraperInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScraperResult> getScraper(GetScraperArgs args, InvokeOptions options)
    public static Output<GetScraperResult> getScraper(GetScraperArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:aps:getScraper
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn string
    Scraper ARN.
    Arn string
    Scraper ARN.
    arn String
    Scraper ARN.
    arn string
    Scraper ARN.
    arn str
    Scraper ARN.
    arn String
    Scraper ARN.

    getScraper Result

    The following output properties are available:

    Alias string
    Scraper alias.
    Arn string
    Scraper ARN.
    Destination Pulumi.AwsNative.Aps.Outputs.ScraperDestination
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    RoleArn string
    IAM role ARN for the scraper.
    RoleConfiguration Pulumi.AwsNative.Aps.Outputs.ScraperRoleConfiguration
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    ScrapeConfiguration Pulumi.AwsNative.Aps.Outputs.ScraperScrapeConfiguration
    The configuration in use by the scraper.
    ScraperId string
    Required to identify a specific scraper.
    ScraperLoggingConfiguration Pulumi.AwsNative.Aps.Outputs.ScraperLoggingConfiguration
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs to apply to this resource.
    Alias string
    Scraper alias.
    Arn string
    Scraper ARN.
    Destination ScraperDestination
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    RoleArn string
    IAM role ARN for the scraper.
    RoleConfiguration ScraperRoleConfiguration
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    ScrapeConfiguration ScraperScrapeConfiguration
    The configuration in use by the scraper.
    ScraperId string
    Required to identify a specific scraper.
    ScraperLoggingConfiguration ScraperLoggingConfiguration
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    Tags Tag
    An array of key-value pairs to apply to this resource.
    alias String
    Scraper alias.
    arn String
    Scraper ARN.
    destination ScraperDestination
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    roleArn String
    IAM role ARN for the scraper.
    roleConfiguration ScraperRoleConfiguration
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    scrapeConfiguration ScraperScrapeConfiguration
    The configuration in use by the scraper.
    scraperId String
    Required to identify a specific scraper.
    scraperLoggingConfiguration ScraperLoggingConfiguration
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    tags List<Tag>
    An array of key-value pairs to apply to this resource.
    alias string
    Scraper alias.
    arn string
    Scraper ARN.
    destination ScraperDestination
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    roleArn string
    IAM role ARN for the scraper.
    roleConfiguration ScraperRoleConfiguration
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    scrapeConfiguration ScraperScrapeConfiguration
    The configuration in use by the scraper.
    scraperId string
    Required to identify a specific scraper.
    scraperLoggingConfiguration ScraperLoggingConfiguration
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    tags Tag[]
    An array of key-value pairs to apply to this resource.
    alias str
    Scraper alias.
    arn str
    Scraper ARN.
    destination ScraperDestination
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    role_arn str
    IAM role ARN for the scraper.
    role_configuration ScraperRoleConfiguration
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    scrape_configuration ScraperScrapeConfiguration
    The configuration in use by the scraper.
    scraper_id str
    Required to identify a specific scraper.
    scraper_logging_configuration ScraperLoggingConfiguration
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    tags Sequence[root_Tag]
    An array of key-value pairs to apply to this resource.
    alias String
    Scraper alias.
    arn String
    Scraper ARN.
    destination Property Map
    The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
    roleArn String
    IAM role ARN for the scraper.
    roleConfiguration Property Map
    The role configuration in an Amazon Managed Service for Prometheus scraper.
    scrapeConfiguration Property Map
    The configuration in use by the scraper.
    scraperId String
    Required to identify a specific scraper.
    scraperLoggingConfiguration Property Map
    The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.
    tags List<Property Map>
    An array of key-value pairs to apply to this resource.

    Supporting Types

    ScraperCloudWatchLogDestination

    LogGroupArn string
    ARN of the CloudWatch log group
    LogGroupArn string
    ARN of the CloudWatch log group
    logGroupArn String
    ARN of the CloudWatch log group
    logGroupArn string
    ARN of the CloudWatch log group
    log_group_arn str
    ARN of the CloudWatch log group
    logGroupArn String
    ARN of the CloudWatch log group

    ScraperComponent

    Type Pulumi.AwsNative.Aps.ScraperComponentType
    The type of the scraper component.
    Config Pulumi.AwsNative.Aps.Inputs.ScraperComponentConfig
    The configuration settings for the scraper component.
    Type ScraperComponentType
    The type of the scraper component.
    Config ScraperComponentConfig
    The configuration settings for the scraper component.
    type ScraperComponentType
    The type of the scraper component.
    config ScraperComponentConfig
    The configuration settings for the scraper component.
    type ScraperComponentType
    The type of the scraper component.
    config ScraperComponentConfig
    The configuration settings for the scraper component.
    type ScraperComponentType
    The type of the scraper component.
    config ScraperComponentConfig
    The configuration settings for the scraper component.
    type "SERVICE_DISCOVERY" | "COLLECTOR" | "EXPORTER"
    The type of the scraper component.
    config Property Map
    The configuration settings for the scraper component.

    ScraperComponentConfig

    Options Dictionary<string, string>
    Configuration options for the scraper component.
    Options map[string]string
    Configuration options for the scraper component.
    options Map<String,String>
    Configuration options for the scraper component.
    options {[key: string]: string}
    Configuration options for the scraper component.
    options Mapping[str, str]
    Configuration options for the scraper component.
    options Map<String>
    Configuration options for the scraper component.

    ScraperComponentType

    ScraperDestination

    AmpConfiguration Pulumi.AwsNative.Aps.Inputs.ScraperDestinationAmpConfigurationProperties
    Configuration for Amazon Managed Prometheus metrics destination
    AmpConfiguration ScraperDestinationAmpConfigurationProperties
    Configuration for Amazon Managed Prometheus metrics destination
    ampConfiguration ScraperDestinationAmpConfigurationProperties
    Configuration for Amazon Managed Prometheus metrics destination
    ampConfiguration ScraperDestinationAmpConfigurationProperties
    Configuration for Amazon Managed Prometheus metrics destination
    amp_configuration ScraperDestinationAmpConfigurationProperties
    Configuration for Amazon Managed Prometheus metrics destination
    ampConfiguration Property Map
    Configuration for Amazon Managed Prometheus metrics destination

    ScraperDestinationAmpConfigurationProperties

    WorkspaceArn string
    ARN of an Amazon Managed Prometheus workspace
    WorkspaceArn string
    ARN of an Amazon Managed Prometheus workspace
    workspaceArn String
    ARN of an Amazon Managed Prometheus workspace
    workspaceArn string
    ARN of an Amazon Managed Prometheus workspace
    workspace_arn str
    ARN of an Amazon Managed Prometheus workspace
    workspaceArn String
    ARN of an Amazon Managed Prometheus workspace

    ScraperLoggingConfiguration

    ScraperLoggingDestination

    CloudWatchLogs Pulumi.AwsNative.Aps.Inputs.ScraperCloudWatchLogDestination
    The CloudWatch Logs configuration for the scraper logging destination.
    CloudWatchLogs ScraperCloudWatchLogDestination
    The CloudWatch Logs configuration for the scraper logging destination.
    cloudWatchLogs ScraperCloudWatchLogDestination
    The CloudWatch Logs configuration for the scraper logging destination.
    cloudWatchLogs ScraperCloudWatchLogDestination
    The CloudWatch Logs configuration for the scraper logging destination.
    cloud_watch_logs ScraperCloudWatchLogDestination
    The CloudWatch Logs configuration for the scraper logging destination.
    cloudWatchLogs Property Map
    The CloudWatch Logs configuration for the scraper logging destination.

    ScraperRoleConfiguration

    SourceRoleArn string
    IAM Role in source account
    TargetRoleArn string
    IAM Role in the target account
    SourceRoleArn string
    IAM Role in source account
    TargetRoleArn string
    IAM Role in the target account
    sourceRoleArn String
    IAM Role in source account
    targetRoleArn String
    IAM Role in the target account
    sourceRoleArn string
    IAM Role in source account
    targetRoleArn string
    IAM Role in the target account
    source_role_arn str
    IAM Role in source account
    target_role_arn str
    IAM Role in the target account
    sourceRoleArn String
    IAM Role in source account
    targetRoleArn String
    IAM Role in the target account

    ScraperScrapeConfiguration

    ConfigurationBlob string
    Prometheus compatible scrape configuration in base64 encoded blob format
    ConfigurationBlob string
    Prometheus compatible scrape configuration in base64 encoded blob format
    configurationBlob String
    Prometheus compatible scrape configuration in base64 encoded blob format
    configurationBlob string
    Prometheus compatible scrape configuration in base64 encoded blob format
    configuration_blob str
    Prometheus compatible scrape configuration in base64 encoded blob format
    configurationBlob String
    Prometheus compatible scrape configuration in base64 encoded blob format

    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.35.0 published on Monday, Sep 22, 2025 by Pulumi