UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

99 lines (98 loc) 3.36 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * 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, * })); * ``` */ /** @deprecated grafana.cloud/getproviderawsaccount.getProviderAwsAccount has been deprecated in favor of grafana.cloudprovider/getawsaccount.getAwsAccount */ export declare function getProviderAwsAccount(args: GetProviderAwsAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetProviderAwsAccountResult>; /** * A collection of arguments for invoking getProviderAwsAccount. */ export interface GetProviderAwsAccountArgs { /** * The ID given by the Grafana Cloud Provider API to this AWS Account resource. */ resourceId: string; stackId: string; } /** * A collection of values returned by getProviderAwsAccount. */ export interface GetProviderAwsAccountResult { 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; readonly stackId: string; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * 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, * })); * ``` */ /** @deprecated grafana.cloud/getproviderawsaccount.getProviderAwsAccount has been deprecated in favor of grafana.cloudprovider/getawsaccount.getAwsAccount */ export declare function getProviderAwsAccountOutput(args: GetProviderAwsAccountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProviderAwsAccountResult>; /** * A collection of arguments for invoking getProviderAwsAccount. */ export interface GetProviderAwsAccountOutputArgs { /** * The ID given by the Grafana Cloud Provider API to this AWS Account resource. */ resourceId: pulumi.Input<string>; stackId: pulumi.Input<string>; }