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,
role_configuration: Optional[ScraperRoleConfigurationArgs] = 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
This property is required. string - The unique name of the resource.
- args
This property is required. ScraperArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. ScraperArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ScraperArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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
This property is required. Pulumi.Aws Native. Aps. Inputs. Scraper Destination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- Scrape
Configuration This property is required. Pulumi.Aws Native. Aps. Inputs. Scraper Scrape Configuration - The configuration in use by the scraper.
- Source
This property is required. Pulumi.Aws Native. Aps. Inputs. Scraper Source - The Amazon EKS cluster from which the scraper collects metrics.
- Alias string
- Scraper alias.
- Role
Configuration Pulumi.Aws Native. Aps. Inputs. Scraper Role Configuration - List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Destination
This property is required. ScraperDestination Args - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- Scrape
Configuration This property is required. ScraperScrape Configuration Args - The configuration in use by the scraper.
- Source
This property is required. ScraperSource Args - The Amazon EKS cluster from which the scraper collects metrics.
- Alias string
- Scraper alias.
- Role
Configuration ScraperRole Configuration Args - Tag
Args - An array of key-value pairs to apply to this resource.
- destination
This property is required. ScraperDestination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration This property is required. ScraperScrape Configuration - The configuration in use by the scraper.
- source
This property is required. ScraperSource - The Amazon EKS cluster from which the scraper collects metrics.
- alias String
- Scraper alias.
- role
Configuration ScraperRole Configuration - List<Tag>
- An array of key-value pairs to apply to this resource.
- destination
This property is required. ScraperDestination - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration This property is required. ScraperScrape Configuration - The configuration in use by the scraper.
- source
This property is required. ScraperSource - The Amazon EKS cluster from which the scraper collects metrics.
- alias string
- Scraper alias.
- role
Configuration ScraperRole Configuration - Tag[]
- An array of key-value pairs to apply to this resource.
- destination
This property is required. ScraperDestination Args - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape_
configuration This property is required. ScraperScrape Configuration Args - The configuration in use by the scraper.
- source
This property is required. ScraperSource Args - The Amazon EKS cluster from which the scraper collects metrics.
- alias str
- Scraper alias.
- role_
configuration ScraperRole Configuration Args - Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- destination
This property is required. Property Map - The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.
- scrape
Configuration This property is required. Property Map - The configuration in use by the scraper.
- source
This property is required. Property Map - The Amazon EKS cluster from which the scraper collects metrics.
- alias String
- Scraper alias.
- role
Configuration Property Map - 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 This property is required. string - ARN of an Amazon Managed Prometheus workspace
- Workspace
Arn This property is required. string - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn This property is required. String - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn This property is required. string - ARN of an Amazon Managed Prometheus workspace
- workspace_
arn This property is required. str - ARN of an Amazon Managed Prometheus workspace
- workspace
Arn This property is required. String - ARN of an Amazon Managed Prometheus workspace
ScraperRoleConfiguration, ScraperRoleConfigurationArgs
- Source
Role stringArn - IAM Role in source account
- Target
Role stringArn - IAM Role in the target account
- Source
Role stringArn - IAM Role in source account
- Target
Role stringArn - IAM Role in the target account
- source
Role StringArn - IAM Role in source account
- target
Role StringArn - IAM Role in the target account
- source
Role stringArn - IAM Role in source account
- target
Role stringArn - IAM Role in the target account
- source_
role_ strarn - IAM Role in source account
- target_
role_ strarn - IAM Role in the target account
- source
Role StringArn - IAM Role in source account
- target
Role StringArn - IAM Role in the target account
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 This property is required. string - ARN of an EKS cluster
- Subnet
Ids This property is required. List<string> - List of subnet IDs
- Security
Group List<string>Ids - List of security group IDs
- Cluster
Arn This property is required. string - ARN of an EKS cluster
- Subnet
Ids This property is required. []string - List of subnet IDs
- Security
Group []stringIds - List of security group IDs
- cluster
Arn This property is required. String - ARN of an EKS cluster
- subnet
Ids This property is required. List<String> - List of subnet IDs
- security
Group List<String>Ids - List of security group IDs
- cluster
Arn This property is required. string - ARN of an EKS cluster
- subnet
Ids This property is required. string[] - List of subnet IDs
- security
Group string[]Ids - List of security group IDs
- cluster_
arn This property is required. str - ARN of an EKS cluster
- subnet_
ids This property is required. Sequence[str] - List of subnet IDs
- security_
group_ Sequence[str]ids - List of security group IDs
- cluster
Arn This property is required. String - ARN of an EKS cluster
- subnet
Ids This property is required. 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.