@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
121 lines (120 loc) • 3.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This data source allows you to look up an existing Grafana Cloud AWS Account resource 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 testAwsAccount = new grafana.cloudprovider.AwsAccount("test", {
* stackId: test.then(test => test.id),
* roleArn: testAwsIamRole.arn,
* regions: [
* "us-east-2",
* "eu-west-3",
* ],
* });
* const testGetAwsAccount = pulumi.all([test, testAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloudProvider.getAwsAccountOutput({
* stackId: test.id,
* resourceId: resourceId,
* }));
* ```
*/
export declare function getAwsAccount(args: GetAwsAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAwsAccountResult>;
/**
* A collection of arguments for invoking getAwsAccount.
*/
export interface GetAwsAccountArgs {
/**
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
*/
resourceId: string;
/**
* The StackID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
stackId: string;
}
/**
* A collection of values returned by getAwsAccount.
*/
export interface GetAwsAccountResult {
/**
* The Terraform Resource ID. This has the format "{{ stack*id }}:{{ resource*id }}".
*/
readonly id: string;
/**
* An optional human-readable name for this AWS Account resource.
*/
readonly name: string;
/**
* A set of regions that this AWS Account resource applies to.
*/
readonly regions: string[];
/**
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
*/
readonly resourceId: string;
/**
* An IAM Role ARN string to represent with this AWS Account resource.
*/
readonly roleArn: string;
/**
* The StackID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
readonly stackId: string;
}
/**
* This data source allows you to look up an existing Grafana Cloud AWS Account resource 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 testAwsAccount = new grafana.cloudprovider.AwsAccount("test", {
* stackId: test.then(test => test.id),
* roleArn: testAwsIamRole.arn,
* regions: [
* "us-east-2",
* "eu-west-3",
* ],
* });
* const testGetAwsAccount = pulumi.all([test, testAwsAccount.resourceId]).apply(([test, resourceId]) => grafana.cloudProvider.getAwsAccountOutput({
* stackId: test.id,
* resourceId: resourceId,
* }));
* ```
*/
export declare function getAwsAccountOutput(args: GetAwsAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAwsAccountResult>;
/**
* A collection of arguments for invoking getAwsAccount.
*/
export interface GetAwsAccountOutputArgs {
/**
* The ID given by the Grafana Cloud Provider API to this AWS Account resource.
*/
resourceId: pulumi.Input<string>;
/**
* The StackID of the Grafana Cloud instance. Part of the Terraform Resource ID.
*/
stackId: pulumi.Input<string>;
}