import * as pulumi from "@pulumi/pulumi"; /** * * [Official documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#stacks/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@lbrlabs/pulumi-grafana"; * * const test = new grafana.CloudStack("test", { * description: "Test Grafana Cloud Stack", * regionSlug: "eu", * slug: "gcloudstacktest", * }); * ``` * * ## Import * * ```sh * $ pulumi import grafana:index/cloudStack:CloudStack stack_name {{stack_id}} // import by numerical ID * ``` * * ```sh * $ pulumi import grafana:index/cloudStack:CloudStack stack_name {{stack_slug}} // or import by slug * ``` */ export declare class CloudStack extends pulumi.CustomResource { /** * Get an existing CloudStack 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, state?: CloudStackState, opts?: pulumi.CustomResourceOptions): CloudStack; /** * Returns true if the given object is an instance of CloudStack. 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 CloudStack; /** * Name of the Alertmanager instance configured for this stack. */ readonly alertmanagerName: pulumi.Output; /** * Status of the Alertmanager instance configured for this stack. */ readonly alertmanagerStatus: pulumi.Output; /** * Base URL of the Alertmanager instance configured for this stack. */ readonly alertmanagerUrl: pulumi.Output; /** * User ID of the Alertmanager instance configured for this stack. */ readonly alertmanagerUserId: pulumi.Output; /** * Description of stack. */ readonly description: pulumi.Output; readonly graphiteName: pulumi.Output; readonly graphiteStatus: pulumi.Output; readonly graphiteUrl: pulumi.Output; readonly graphiteUserId: pulumi.Output; readonly logsName: pulumi.Output; readonly logsStatus: pulumi.Output; readonly logsUrl: pulumi.Output; readonly logsUserId: pulumi.Output; /** * Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”). */ readonly name: pulumi.Output; /** * Organization id to assign to this stack. */ readonly orgId: pulumi.Output; /** * Organization name to assign to this stack. */ readonly orgName: pulumi.Output; /** * Organization slug to assign to this stack. */ readonly orgSlug: pulumi.Output; /** * Prometheus name for this instance. */ readonly prometheusName: pulumi.Output; /** * Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana */ readonly prometheusRemoteEndpoint: pulumi.Output; /** * Use this URL to send prometheus metrics to Grafana cloud */ readonly prometheusRemoteWriteEndpoint: pulumi.Output; /** * Prometheus status for this instance. */ readonly prometheusStatus: pulumi.Output; /** * Prometheus url for this instance. */ readonly prometheusUrl: pulumi.Output; /** * Prometheus user ID. Used for e.g. remote_write. */ readonly prometheusUserId: pulumi.Output; /** * Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions. */ readonly regionSlug: pulumi.Output; /** * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance * available at “https://\n\n.grafana.net". */ readonly slug: pulumi.Output; /** * Status of the stack. */ readonly status: pulumi.Output; readonly tracesName: pulumi.Output; readonly tracesStatus: pulumi.Output; /** * Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL. */ readonly tracesUrl: pulumi.Output; readonly tracesUserId: pulumi.Output; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ readonly url: pulumi.Output; /** * Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`. */ readonly waitForReadiness: pulumi.Output; /** * How long to wait for readiness (if enabled). Defaults to `5m0s`. */ readonly waitForReadinessTimeout: pulumi.Output; /** * Create a CloudStack 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. */ constructor(name: string, args: CloudStackArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStack resources. */ export interface CloudStackState { /** * Name of the Alertmanager instance configured for this stack. */ alertmanagerName?: pulumi.Input; /** * Status of the Alertmanager instance configured for this stack. */ alertmanagerStatus?: pulumi.Input; /** * Base URL of the Alertmanager instance configured for this stack. */ alertmanagerUrl?: pulumi.Input; /** * User ID of the Alertmanager instance configured for this stack. */ alertmanagerUserId?: pulumi.Input; /** * Description of stack. */ description?: pulumi.Input; graphiteName?: pulumi.Input; graphiteStatus?: pulumi.Input; graphiteUrl?: pulumi.Input; graphiteUserId?: pulumi.Input; logsName?: pulumi.Input; logsStatus?: pulumi.Input; logsUrl?: pulumi.Input; logsUserId?: pulumi.Input; /** * Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”). */ name?: pulumi.Input; /** * Organization id to assign to this stack. */ orgId?: pulumi.Input; /** * Organization name to assign to this stack. */ orgName?: pulumi.Input; /** * Organization slug to assign to this stack. */ orgSlug?: pulumi.Input; /** * Prometheus name for this instance. */ prometheusName?: pulumi.Input; /** * Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana */ prometheusRemoteEndpoint?: pulumi.Input; /** * Use this URL to send prometheus metrics to Grafana cloud */ prometheusRemoteWriteEndpoint?: pulumi.Input; /** * Prometheus status for this instance. */ prometheusStatus?: pulumi.Input; /** * Prometheus url for this instance. */ prometheusUrl?: pulumi.Input; /** * Prometheus user ID. Used for e.g. remote_write. */ prometheusUserId?: pulumi.Input; /** * Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions. */ regionSlug?: pulumi.Input; /** * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance * available at “https://\n\n.grafana.net". */ slug?: pulumi.Input; /** * Status of the stack. */ status?: pulumi.Input; tracesName?: pulumi.Input; tracesStatus?: pulumi.Input; /** * Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL. */ tracesUrl?: pulumi.Input; tracesUserId?: pulumi.Input; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ url?: pulumi.Input; /** * Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`. */ waitForReadiness?: pulumi.Input; /** * How long to wait for readiness (if enabled). Defaults to `5m0s`. */ waitForReadinessTimeout?: pulumi.Input; } /** * The set of arguments for constructing a CloudStack resource. */ export interface CloudStackArgs { /** * Description of stack. */ description?: pulumi.Input; /** * Name of stack. Conventionally matches the url of the instance (e.g. “\n\n.grafana.net”). */ name?: pulumi.Input; /** * Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions. */ regionSlug?: pulumi.Input; /** * Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance * available at “https://\n\n.grafana.net". */ slug: pulumi.Input; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ url?: pulumi.Input; /** * Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`. */ waitForReadiness?: pulumi.Input; /** * How long to wait for readiness (if enabled). Defaults to `5m0s`. */ waitForReadinessTimeout?: pulumi.Input; }