@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
93 lines (92 loc) • 3.48 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* This data source allows you to look up all existing Grafana Cloud AWS CloudWatch Scrape Job resources in your stack.
*
* See the Grafana Provider configuration docs
* for information on authentication and required access policy scopes.
*
* * [Official Grafana Cloud documentation](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = grafana.cloud.getStack({
* slug: "gcloudstacktest",
* });
* const testGetAwsCloudwatchScrapeJobs = test.then(test => grafana.cloudProvider.getAwsCloudwatchScrapeJobs({
* stackId: test.id,
* }));
* ```
*/
export declare function getAwsCloudwatchScrapeJobs(args: GetAwsCloudwatchScrapeJobsArgs, opts?: pulumi.InvokeOptions): Promise<GetAwsCloudwatchScrapeJobsResult>;
/**
* A collection of arguments for invoking getAwsCloudwatchScrapeJobs.
*/
export interface GetAwsCloudwatchScrapeJobsArgs {
/**
* A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
*/
scrapeJobs?: inputs.cloudProvider.GetAwsCloudwatchScrapeJobsScrapeJob[];
/**
* The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
stackId: string;
}
/**
* A collection of values returned by getAwsCloudwatchScrapeJobs.
*/
export interface GetAwsCloudwatchScrapeJobsResult {
/**
* The Terraform Resource ID. This has the format "{{ stackId }}".
*/
readonly id: string;
/**
* A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
*/
readonly scrapeJobs?: outputs.cloudProvider.GetAwsCloudwatchScrapeJobsScrapeJob[];
/**
* The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
readonly stackId: string;
}
/**
* This data source allows you to look up all existing Grafana Cloud AWS CloudWatch Scrape Job resources in your stack.
*
* See the Grafana Provider configuration docs
* for information on authentication and required access policy scopes.
*
* * [Official Grafana Cloud documentation](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = grafana.cloud.getStack({
* slug: "gcloudstacktest",
* });
* const testGetAwsCloudwatchScrapeJobs = test.then(test => grafana.cloudProvider.getAwsCloudwatchScrapeJobs({
* stackId: test.id,
* }));
* ```
*/
export declare function getAwsCloudwatchScrapeJobsOutput(args: GetAwsCloudwatchScrapeJobsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAwsCloudwatchScrapeJobsResult>;
/**
* A collection of arguments for invoking getAwsCloudwatchScrapeJobs.
*/
export interface GetAwsCloudwatchScrapeJobsOutputArgs {
/**
* A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
*/
scrapeJobs?: pulumi.Input<pulumi.Input<inputs.cloudProvider.GetAwsCloudwatchScrapeJobsScrapeJobArgs>[]>;
/**
* The Stack ID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
stackId: pulumi.Input<string>;
}