We recommend new projects start with resources from the AWS provider.
aws-native.aps.Scraper
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::APS::Scraper
Create Scraper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Scraper(name: string, args: ScraperArgs, opts?: CustomResourceOptions);
@overload
def Scraper(resource_name: str,
args: ScraperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Scraper(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[ScraperDestinationArgs] = None,
scrape_configuration: Optional[ScraperScrapeConfigurationArgs] = None,
source: Optional[ScraperSourceArgs] = None,
alias: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewScraper(ctx *Context, name string, args ScraperArgs, opts ...ResourceOption) (*Scraper, error)
public Scraper(string name, ScraperArgs args, CustomResourceOptions? opts = null)
public Scraper(String name, ScraperArgs args)
public Scraper(String name, ScraperArgs args, CustomResourceOptions options)
type: aws-native:aps:Scraper
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 ScraperArgs
- 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 ScraperArgs
- 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 ScraperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScraperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScraperArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Scraper 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 Scraper resource accepts the following input properties:
- Destination
Pulumi.
Aws Native. Aps. Inputs. Scraper Destination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- Scrape
Configuration Pulumi.Aws Native. Aps. Inputs. Scraper Scrape Configuration - The configuration in use by the scraper.
- Source
Pulumi.
Aws Native. Aps. Inputs. Scraper Source - The Amazon EKS cluster from which the scraper collects metrics.
- Alias string
- Scraper alias.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Destination
Scraper
Destination Args - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- Scrape
Configuration ScraperScrape Configuration Args - The configuration in use by the scraper.
- Source
Scraper
Source Args - The Amazon EKS cluster from which the scraper collects metrics.
- Alias string
- Scraper alias.
- Tag
Args - An array of key-value pairs to apply to this resource.
- destination
Scraper
Destination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration ScraperScrape Configuration - The configuration in use by the scraper.
- source
Scraper
Source - The Amazon EKS cluster from which the scraper collects metrics.
- alias String
- Scraper alias.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- destination
Scraper
Destination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration ScraperScrape Configuration - The configuration in use by the scraper.
- source
Scraper
Source - The Amazon EKS cluster from which the scraper collects metrics.
- alias string
- Scraper alias.
- Tag[]
- An array of key-value pairs to apply to this resource.
- destination
Scraper
Destination Args - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape_
configuration ScraperScrape Configuration Args - The configuration in use by the scraper.
- source
Scraper
Source Args - The Amazon EKS cluster from which the scraper collects metrics.
- alias str
- Scraper alias.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- destination Property Map
- The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration Property Map - The configuration in use by the scraper.
- source Property Map
- The Amazon EKS cluster from which the scraper collects metrics.
- alias String
- Scraper alias.
- 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 Scraper resource produces the following output properties:
- arn str
- Scraper ARN.
- id str
- The provider-assigned unique ID for this managed resource.
- role_
arn str - IAM role ARN for the scraper.
- scraper_
id str - Required to identify a specific scraper.
Supporting Types
ScraperDestination, ScraperDestinationArgs
- Amp
Configuration Pulumi.Aws Native. Aps. Inputs. Scraper Destination Amp Configuration Properties - Configuration for Amazon Managed Prometheus metrics destination
- Amp
Configuration ScraperDestination Amp Configuration Properties - Configuration for Amazon Managed Prometheus metrics destination
- amp
Configuration ScraperDestination Amp Configuration Properties - Configuration for Amazon Managed Prometheus metrics destination
- amp
Configuration ScraperDestination Amp Configuration Properties - Configuration for Amazon Managed Prometheus metrics destination
- amp_
configuration ScraperDestination Amp Configuration Properties - Configuration for Amazon Managed Prometheus metrics destination
- amp
Configuration Property Map - Configuration for Amazon Managed Prometheus metrics destination
ScraperDestinationAmpConfigurationProperties, ScraperDestinationAmpConfigurationPropertiesArgs
- Workspace
Arn string - ARN of an Amazon Managed Prometheus workspace
- Workspace
Arn string - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn String - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn string - ARN of an Amazon Managed Prometheus workspace
- workspace_
arn str - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn String - ARN of an Amazon Managed Prometheus workspace
ScraperScrapeConfiguration, ScraperScrapeConfigurationArgs
- Configuration
Blob string - Prometheus compatible scrape configuration in base64 encoded blob format
- Configuration
Blob string - Prometheus compatible scrape configuration in base64 encoded blob format
- configuration
Blob String - Prometheus compatible scrape configuration in base64 encoded blob format
- configuration
Blob string - Prometheus compatible scrape configuration in base64 encoded blob format
- configuration_
blob str - Prometheus compatible scrape configuration in base64 encoded blob format
- configuration
Blob String - Prometheus compatible scrape configuration in base64 encoded blob format
ScraperSource, ScraperSourceArgs
- Eks
Configuration Pulumi.Aws Native. Aps. Inputs. Scraper Source Eks Configuration Properties - Configuration for EKS metrics source
- Eks
Configuration ScraperSource Eks Configuration Properties - Configuration for EKS metrics source
- eks
Configuration ScraperSource Eks Configuration Properties - Configuration for EKS metrics source
- eks
Configuration ScraperSource Eks Configuration Properties - Configuration for EKS metrics source
- eks_
configuration ScraperSource Eks Configuration Properties - Configuration for EKS metrics source
- eks
Configuration Property Map - Configuration for EKS metrics source
ScraperSourceEksConfigurationProperties, ScraperSourceEksConfigurationPropertiesArgs
- Cluster
Arn string - ARN of an EKS cluster
- Subnet
Ids List<string> - List of subnet IDs
- Security
Group List<string>Ids - List of security group IDs
- Cluster
Arn string - ARN of an EKS cluster
- Subnet
Ids []string - List of subnet IDs
- Security
Group []stringIds - List of security group IDs
- cluster
Arn String - ARN of an EKS cluster
- subnet
Ids List<String> - List of subnet IDs
- security
Group List<String>Ids - List of security group IDs
- cluster
Arn string - ARN of an EKS cluster
- subnet
Ids string[] - List of subnet IDs
- security
Group string[]Ids - List of security group IDs
- cluster_
arn str - ARN of an EKS cluster
- subnet_
ids Sequence[str] - List of subnet IDs
- security_
group_ Sequence[str]ids - List of security group IDs
- cluster
Arn String - ARN of an EKS cluster
- subnet
Ids List<String> - List of subnet IDs
- security
Group List<String>Ids - List of security group IDs
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.