UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

119 lines (118 loc) 4.36 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as grafana from "@pulumi/grafana"; * import * as grafana from "@pulumiverse/grafana"; * * const test = grafana.cloud.getStack({ * slug: "gcloudstacktest", * }); * const testGetRole = aws.iam.getRole({ * name: "my-role", * }); * const testAwsAccount = new grafana.cloudprovider.AwsAccount("test", { * stackId: test.then(test => test.id), * roleArn: testGetRole.then(testGetRole => testGetRole.arn), * regions: [ * "us-east-1", * "us-east-2", * "us-west-1", * ], * }); * ``` * * ## Import * * ```sh * $ pulumi import grafana:cloud/providerAwsAccount:ProviderAwsAccount name "{{ stack_id }}:{{ resource_id }}" * ``` * * @deprecated grafana.cloud/providerawsaccount.ProviderAwsAccount has been deprecated in favor of grafana.cloudprovider/awsaccount.AwsAccount */ export declare class ProviderAwsAccount extends pulumi.CustomResource { /** * Get an existing ProviderAwsAccount resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProviderAwsAccountState, opts?: pulumi.CustomResourceOptions): ProviderAwsAccount; /** * Returns true if the given object is an instance of ProviderAwsAccount. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ProviderAwsAccount; /** * An optional human-readable name for this AWS Account resource. */ readonly name: pulumi.Output<string>; /** * A set of regions that this AWS Account resource applies to. */ readonly regions: pulumi.Output<string[]>; /** * The ID given by the Grafana Cloud Provider API to this AWS Account resource. */ readonly resourceId: pulumi.Output<string>; /** * An IAM Role ARN string to represent with this AWS Account resource. */ readonly roleArn: pulumi.Output<string>; readonly stackId: pulumi.Output<string>; /** * Create a ProviderAwsAccount resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ /** @deprecated grafana.cloud/providerawsaccount.ProviderAwsAccount has been deprecated in favor of grafana.cloudprovider/awsaccount.AwsAccount */ constructor(name: string, args: ProviderAwsAccountArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProviderAwsAccount resources. */ export interface ProviderAwsAccountState { /** * An optional human-readable name for this AWS Account resource. */ name?: pulumi.Input<string>; /** * A set of regions that this AWS Account resource applies to. */ regions?: pulumi.Input<pulumi.Input<string>[]>; /** * The ID given by the Grafana Cloud Provider API to this AWS Account resource. */ resourceId?: pulumi.Input<string>; /** * An IAM Role ARN string to represent with this AWS Account resource. */ roleArn?: pulumi.Input<string>; stackId?: pulumi.Input<string>; } /** * The set of arguments for constructing a ProviderAwsAccount resource. */ export interface ProviderAwsAccountArgs { /** * An optional human-readable name for this AWS Account resource. */ name?: pulumi.Input<string>; /** * A set of regions that this AWS Account resource applies to. */ regions: pulumi.Input<pulumi.Input<string>[]>; /** * An IAM Role ARN string to represent with this AWS Account resource. */ roleArn: pulumi.Input<string>; stackId: pulumi.Input<string>; }