UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

842 lines (841 loc) 36.6 kB
import * as pulumi from "@pulumi/pulumi"; /** * * [Official documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#stacks/) * * Required access policy scopes: * * * stacks:read * * stacks:write * * stacks:delete * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = new grafana.cloud.Stack("test", { * name: "gcloudstacktest", * slug: "gcloudstacktest", * regionSlug: "eu", * description: "Test Grafana Cloud Stack", * }); * ``` * * ## Import * * ```sh * terraform import grafana_cloud_stack.name "{{ stackSlugOrID }}" * ``` */ export declare class Stack extends pulumi.CustomResource { /** * Get an existing Stack 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?: StackState, opts?: pulumi.CustomResourceOptions): Stack; /** * Returns true if the given object is an instance of Stack. 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 Stack; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Alertmanager instances (Optional) */ readonly alertmanagerIpAllowListCname: pulumi.Output<string>; /** * Name of the Alertmanager instance configured for this stack. */ readonly alertmanagerName: pulumi.Output<string>; /** * Status of the Alertmanager instance configured for this stack. */ readonly alertmanagerStatus: pulumi.Output<string>; /** * Base URL of the Alertmanager instance configured for this stack. */ readonly alertmanagerUrl: pulumi.Output<string>; /** * User ID of the Alertmanager instance configured for this stack. */ readonly alertmanagerUserId: pulumi.Output<number>; /** * Base URL of the Cloud Provider API for this stack's cluster. This can be used with the `cloudProviderUrl` provider config option to manage Cloud Provider resources for this stack. */ readonly cloudProviderUrl: pulumi.Output<string>; /** * Name of the cluster where this stack resides. */ readonly clusterName: pulumi.Output<string>; /** * Slug of the cluster where this stack resides. */ readonly clusterSlug: pulumi.Output<string>; /** * Base URL of the Connections API for this stack's cluster. This can be used with the `connectionsApiUrl` provider config option to manage Connections resources for this stack. */ readonly connectionsApiUrl: pulumi.Output<string>; /** * Whether to enable delete protection for the stack, preventing accidental deletion. Defaults to `true`. */ readonly deleteProtection: pulumi.Output<boolean | undefined>; /** * Description of stack. */ readonly description: pulumi.Output<string | undefined>; /** * Name of the Fleet Management instance configured for this stack. */ readonly fleetManagementName: pulumi.Output<string>; /** * Availability Zone IDs for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ readonly fleetManagementPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ readonly fleetManagementPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ readonly fleetManagementPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ readonly fleetManagementPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ readonly fleetManagementPrivateConnectivityInfoServiceName: pulumi.Output<string>; /** * Status of the Fleet Management instance configured for this stack. */ readonly fleetManagementStatus: pulumi.Output<string>; /** * Base URL of the Fleet Management instance configured for this stack. */ readonly fleetManagementUrl: pulumi.Output<string>; /** * User ID of the Fleet Management instance configured for this stack. */ readonly fleetManagementUserId: pulumi.Output<number>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the grafana instance (Optional) */ readonly grafanasIpAllowListCname: pulumi.Output<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Graphite instance (Optional) */ readonly graphiteIpAllowListCname: pulumi.Output<string>; readonly graphiteName: pulumi.Output<string>; /** * Availability Zone IDs for Graphite when using AWS PrivateLink (only for AWS stacks) */ readonly graphitePrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Graphite when using AWS PrivateLink (only for AWS stacks) */ readonly graphitePrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Graphite when using AWS PrivateLink (only for AWS stacks) */ readonly graphitePrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Graphite when using AWS PrivateLink (only for AWS stacks) */ readonly graphitePrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Graphite when using AWS PrivateLink (only for AWS stacks) */ readonly graphitePrivateConnectivityInfoServiceName: pulumi.Output<string>; readonly graphiteStatus: pulumi.Output<string>; readonly graphiteUrl: pulumi.Output<string>; readonly graphiteUserId: pulumi.Output<number>; /** * Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (`prometheusUserId` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. */ readonly influxUrl: pulumi.Output<string>; /** * A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\-._]+$" and stacks cannot have more than 10 labels. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Logs instance (Optional) */ readonly logsIpAllowListCname: pulumi.Output<string>; readonly logsName: pulumi.Output<string>; /** * Availability Zone IDs for Logs when using AWS PrivateLink (only for AWS stacks) */ readonly logsPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Logs when using AWS PrivateLink (only for AWS stacks) */ readonly logsPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Logs when using AWS PrivateLink (only for AWS stacks) */ readonly logsPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Logs when using AWS PrivateLink (only for AWS stacks) */ readonly logsPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Logs when using AWS PrivateLink (only for AWS stacks) */ readonly logsPrivateConnectivityInfoServiceName: pulumi.Output<string>; readonly logsStatus: pulumi.Output<string>; readonly logsUrl: pulumi.Output<string>; readonly logsUserId: pulumi.Output<number>; /** * Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`). */ readonly name: pulumi.Output<string>; /** * Base URL of the OnCall API instance configured for this stack. */ readonly oncallApiUrl: pulumi.Output<string>; /** * Organization id to assign to this stack. */ readonly orgId: pulumi.Output<number>; /** * Organization name to assign to this stack. */ readonly orgName: pulumi.Output<string>; /** * Organization slug to assign to this stack. */ readonly orgSlug: pulumi.Output<string>; /** * Availability Zone IDs for OTLP when using AWS PrivateLink (only for AWS stacks) */ readonly otlpPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for OTLP when using AWS PrivateLink (only for AWS stacks) */ readonly otlpPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for OTLP when using AWS PrivateLink (only for AWS stacks) */ readonly otlpPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for OTLP when using AWS PrivateLink (only for AWS stacks) */ readonly otlpPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for OTLP when using AWS PrivateLink (only for AWS stacks) */ readonly otlpPrivateConnectivityInfoServiceName: pulumi.Output<string>; /** * Base URL of the OTLP instance configured for this stack. The username is the stack's ID (`id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. */ readonly otlpUrl: pulumi.Output<string>; /** * Availability Zone IDs for PDC's API when using AWS PrivateLink (only for AWS stacks) */ readonly pdcApiPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for PDC's API when using AWS PrivateLink (only for AWS stacks) */ readonly pdcApiPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for PDC's API when using AWS PrivateLink (only for AWS stacks) */ readonly pdcApiPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for PDC's API when using AWS PrivateLink (only for AWS stacks) */ readonly pdcApiPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for PDC's API when using AWS PrivateLink (only for AWS stacks) */ readonly pdcApiPrivateConnectivityInfoServiceName: pulumi.Output<string>; /** * Availability Zone IDs for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ readonly pdcGatewayPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ readonly pdcGatewayPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ readonly pdcGatewayPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ readonly pdcGatewayPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ readonly pdcGatewayPrivateConnectivityInfoServiceName: pulumi.Output<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Profiles instance (Optional) */ readonly profilesIpAllowListCname: pulumi.Output<string>; readonly profilesName: pulumi.Output<string>; /** * Availability Zone IDs for Profiles when using AWS PrivateLink (only for AWS stacks) */ readonly profilesPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Profiles when using AWS PrivateLink (only for AWS stacks) */ readonly profilesPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Profiles when using AWS PrivateLink (only for AWS stacks) */ readonly profilesPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Profiles when using AWS PrivateLink (only for AWS stacks) */ readonly profilesPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Profiles when using AWS PrivateLink (only for AWS stacks) */ readonly profilesPrivateConnectivityInfoServiceName: pulumi.Output<string>; readonly profilesStatus: pulumi.Output<string>; readonly profilesUrl: pulumi.Output<string>; readonly profilesUserId: pulumi.Output<number>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Prometheus instance (Optional) */ readonly prometheusIpAllowListCname: pulumi.Output<string>; /** * Prometheus name for this instance. */ readonly prometheusName: pulumi.Output<string>; /** * Availability Zone IDs for Prometheus when using AWS PrivateLink (only for AWS stacks) */ readonly prometheusPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Prometheus when using AWS PrivateLink (only for AWS stacks) */ readonly prometheusPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Prometheus when using AWS PrivateLink (only for AWS stacks) */ readonly prometheusPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Prometheus when using AWS PrivateLink (only for AWS stacks) */ readonly prometheusPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Prometheus when using AWS PrivateLink (only for AWS stacks) */ readonly prometheusPrivateConnectivityInfoServiceName: pulumi.Output<string>; /** * Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana */ readonly prometheusRemoteEndpoint: pulumi.Output<string>; /** * Use this URL to send prometheus metrics to Grafana cloud */ readonly prometheusRemoteWriteEndpoint: pulumi.Output<string>; /** * Prometheus status for this instance. */ readonly prometheusStatus: pulumi.Output<string>; /** * Prometheus url for this instance. */ readonly prometheusUrl: pulumi.Output<string>; /** * Prometheus user ID. Used for e.g. remote_write. */ readonly prometheusUserId: pulumi.Output<number>; /** * 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<string | undefined>; /** * Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`. */ readonly slug: pulumi.Output<string>; /** * Base URL of the Synthetic Monitoring API for this stack's region. This can be used with the `smUrl` provider config option. Note: Synthetic Monitoring requires activation either via the `grafana.syntheticMonitoring.Installation` resource or manually in the Grafana Cloud UI before it can be used. */ readonly smUrl: pulumi.Output<string>; /** * Status of the stack. */ readonly status: pulumi.Output<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Traces instance (Optional) */ readonly tracesIpAllowListCname: pulumi.Output<string>; readonly tracesName: pulumi.Output<string>; /** * Availability Zone IDs for Traces when using AWS PrivateLink (only for AWS stacks) */ readonly tracesPrivateConnectivityInfoAvailabilityZoneIds: pulumi.Output<string[]>; /** * Availability Zones for Traces when using AWS PrivateLink (only for AWS stacks) */ readonly tracesPrivateConnectivityInfoAvailabilityZones: pulumi.Output<string[]>; /** * Private DNS for Traces when using AWS PrivateLink (only for AWS stacks) */ readonly tracesPrivateConnectivityInfoPrivateDns: pulumi.Output<string>; /** * Regions for Traces when using AWS PrivateLink (only for AWS stacks) */ readonly tracesPrivateConnectivityInfoRegions: pulumi.Output<string[]>; /** * Service Name for Traces when using AWS PrivateLink (only for AWS stacks) */ readonly tracesPrivateConnectivityInfoServiceName: pulumi.Output<string>; readonly tracesStatus: pulumi.Output<string>; /** * 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<string>; readonly tracesUserId: pulumi.Output<number>; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ readonly url: pulumi.Output<string>; /** * 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<boolean | undefined>; /** * How long to wait for readiness (if enabled). Defaults to `10m0s`. */ readonly waitForReadinessTimeout: pulumi.Output<string | undefined>; /** * Create a Stack 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: StackArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Stack resources. */ export interface StackState { /** * Comma-separated list of CNAMEs that can be whitelisted to access the Alertmanager instances (Optional) */ alertmanagerIpAllowListCname?: pulumi.Input<string>; /** * Name of the Alertmanager instance configured for this stack. */ alertmanagerName?: pulumi.Input<string>; /** * Status of the Alertmanager instance configured for this stack. */ alertmanagerStatus?: pulumi.Input<string>; /** * Base URL of the Alertmanager instance configured for this stack. */ alertmanagerUrl?: pulumi.Input<string>; /** * User ID of the Alertmanager instance configured for this stack. */ alertmanagerUserId?: pulumi.Input<number>; /** * Base URL of the Cloud Provider API for this stack's cluster. This can be used with the `cloudProviderUrl` provider config option to manage Cloud Provider resources for this stack. */ cloudProviderUrl?: pulumi.Input<string>; /** * Name of the cluster where this stack resides. */ clusterName?: pulumi.Input<string>; /** * Slug of the cluster where this stack resides. */ clusterSlug?: pulumi.Input<string>; /** * Base URL of the Connections API for this stack's cluster. This can be used with the `connectionsApiUrl` provider config option to manage Connections resources for this stack. */ connectionsApiUrl?: pulumi.Input<string>; /** * Whether to enable delete protection for the stack, preventing accidental deletion. Defaults to `true`. */ deleteProtection?: pulumi.Input<boolean>; /** * Description of stack. */ description?: pulumi.Input<string>; /** * Name of the Fleet Management instance configured for this stack. */ fleetManagementName?: pulumi.Input<string>; /** * Availability Zone IDs for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ fleetManagementPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ fleetManagementPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ fleetManagementPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ fleetManagementPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Fleet Management when using AWS PrivateLink (only for AWS stacks) */ fleetManagementPrivateConnectivityInfoServiceName?: pulumi.Input<string>; /** * Status of the Fleet Management instance configured for this stack. */ fleetManagementStatus?: pulumi.Input<string>; /** * Base URL of the Fleet Management instance configured for this stack. */ fleetManagementUrl?: pulumi.Input<string>; /** * User ID of the Fleet Management instance configured for this stack. */ fleetManagementUserId?: pulumi.Input<number>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the grafana instance (Optional) */ grafanasIpAllowListCname?: pulumi.Input<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Graphite instance (Optional) */ graphiteIpAllowListCname?: pulumi.Input<string>; graphiteName?: pulumi.Input<string>; /** * Availability Zone IDs for Graphite when using AWS PrivateLink (only for AWS stacks) */ graphitePrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Graphite when using AWS PrivateLink (only for AWS stacks) */ graphitePrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Graphite when using AWS PrivateLink (only for AWS stacks) */ graphitePrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Graphite when using AWS PrivateLink (only for AWS stacks) */ graphitePrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Graphite when using AWS PrivateLink (only for AWS stacks) */ graphitePrivateConnectivityInfoServiceName?: pulumi.Input<string>; graphiteStatus?: pulumi.Input<string>; graphiteUrl?: pulumi.Input<string>; graphiteUserId?: pulumi.Input<number>; /** * Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (`prometheusUserId` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. */ influxUrl?: pulumi.Input<string>; /** * A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\-._]+$" and stacks cannot have more than 10 labels. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Logs instance (Optional) */ logsIpAllowListCname?: pulumi.Input<string>; logsName?: pulumi.Input<string>; /** * Availability Zone IDs for Logs when using AWS PrivateLink (only for AWS stacks) */ logsPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Logs when using AWS PrivateLink (only for AWS stacks) */ logsPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Logs when using AWS PrivateLink (only for AWS stacks) */ logsPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Logs when using AWS PrivateLink (only for AWS stacks) */ logsPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Logs when using AWS PrivateLink (only for AWS stacks) */ logsPrivateConnectivityInfoServiceName?: pulumi.Input<string>; logsStatus?: pulumi.Input<string>; logsUrl?: pulumi.Input<string>; logsUserId?: pulumi.Input<number>; /** * Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`). */ name?: pulumi.Input<string>; /** * Base URL of the OnCall API instance configured for this stack. */ oncallApiUrl?: pulumi.Input<string>; /** * Organization id to assign to this stack. */ orgId?: pulumi.Input<number>; /** * Organization name to assign to this stack. */ orgName?: pulumi.Input<string>; /** * Organization slug to assign to this stack. */ orgSlug?: pulumi.Input<string>; /** * Availability Zone IDs for OTLP when using AWS PrivateLink (only for AWS stacks) */ otlpPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for OTLP when using AWS PrivateLink (only for AWS stacks) */ otlpPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for OTLP when using AWS PrivateLink (only for AWS stacks) */ otlpPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for OTLP when using AWS PrivateLink (only for AWS stacks) */ otlpPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for OTLP when using AWS PrivateLink (only for AWS stacks) */ otlpPrivateConnectivityInfoServiceName?: pulumi.Input<string>; /** * Base URL of the OTLP instance configured for this stack. The username is the stack's ID (`id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. */ otlpUrl?: pulumi.Input<string>; /** * Availability Zone IDs for PDC's API when using AWS PrivateLink (only for AWS stacks) */ pdcApiPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for PDC's API when using AWS PrivateLink (only for AWS stacks) */ pdcApiPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for PDC's API when using AWS PrivateLink (only for AWS stacks) */ pdcApiPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for PDC's API when using AWS PrivateLink (only for AWS stacks) */ pdcApiPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for PDC's API when using AWS PrivateLink (only for AWS stacks) */ pdcApiPrivateConnectivityInfoServiceName?: pulumi.Input<string>; /** * Availability Zone IDs for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ pdcGatewayPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ pdcGatewayPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ pdcGatewayPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ pdcGatewayPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for PDC's Gateway when using AWS PrivateLink (only for AWS stacks) */ pdcGatewayPrivateConnectivityInfoServiceName?: pulumi.Input<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Profiles instance (Optional) */ profilesIpAllowListCname?: pulumi.Input<string>; profilesName?: pulumi.Input<string>; /** * Availability Zone IDs for Profiles when using AWS PrivateLink (only for AWS stacks) */ profilesPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Profiles when using AWS PrivateLink (only for AWS stacks) */ profilesPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Profiles when using AWS PrivateLink (only for AWS stacks) */ profilesPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Profiles when using AWS PrivateLink (only for AWS stacks) */ profilesPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Profiles when using AWS PrivateLink (only for AWS stacks) */ profilesPrivateConnectivityInfoServiceName?: pulumi.Input<string>; profilesStatus?: pulumi.Input<string>; profilesUrl?: pulumi.Input<string>; profilesUserId?: pulumi.Input<number>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Prometheus instance (Optional) */ prometheusIpAllowListCname?: pulumi.Input<string>; /** * Prometheus name for this instance. */ prometheusName?: pulumi.Input<string>; /** * Availability Zone IDs for Prometheus when using AWS PrivateLink (only for AWS stacks) */ prometheusPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Prometheus when using AWS PrivateLink (only for AWS stacks) */ prometheusPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Prometheus when using AWS PrivateLink (only for AWS stacks) */ prometheusPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Prometheus when using AWS PrivateLink (only for AWS stacks) */ prometheusPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Prometheus when using AWS PrivateLink (only for AWS stacks) */ prometheusPrivateConnectivityInfoServiceName?: pulumi.Input<string>; /** * Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana */ prometheusRemoteEndpoint?: pulumi.Input<string>; /** * Use this URL to send prometheus metrics to Grafana cloud */ prometheusRemoteWriteEndpoint?: pulumi.Input<string>; /** * Prometheus status for this instance. */ prometheusStatus?: pulumi.Input<string>; /** * Prometheus url for this instance. */ prometheusUrl?: pulumi.Input<string>; /** * Prometheus user ID. Used for e.g. remote_write. */ prometheusUserId?: pulumi.Input<number>; /** * 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<string>; /** * Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`. */ slug?: pulumi.Input<string>; /** * Base URL of the Synthetic Monitoring API for this stack's region. This can be used with the `smUrl` provider config option. Note: Synthetic Monitoring requires activation either via the `grafana.syntheticMonitoring.Installation` resource or manually in the Grafana Cloud UI before it can be used. */ smUrl?: pulumi.Input<string>; /** * Status of the stack. */ status?: pulumi.Input<string>; /** * Comma-separated list of CNAMEs that can be whitelisted to access the Traces instance (Optional) */ tracesIpAllowListCname?: pulumi.Input<string>; tracesName?: pulumi.Input<string>; /** * Availability Zone IDs for Traces when using AWS PrivateLink (only for AWS stacks) */ tracesPrivateConnectivityInfoAvailabilityZoneIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Availability Zones for Traces when using AWS PrivateLink (only for AWS stacks) */ tracesPrivateConnectivityInfoAvailabilityZones?: pulumi.Input<pulumi.Input<string>[]>; /** * Private DNS for Traces when using AWS PrivateLink (only for AWS stacks) */ tracesPrivateConnectivityInfoPrivateDns?: pulumi.Input<string>; /** * Regions for Traces when using AWS PrivateLink (only for AWS stacks) */ tracesPrivateConnectivityInfoRegions?: pulumi.Input<pulumi.Input<string>[]>; /** * Service Name for Traces when using AWS PrivateLink (only for AWS stacks) */ tracesPrivateConnectivityInfoServiceName?: pulumi.Input<string>; tracesStatus?: pulumi.Input<string>; /** * 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<string>; tracesUserId?: pulumi.Input<number>; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ url?: pulumi.Input<string>; /** * 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<boolean>; /** * How long to wait for readiness (if enabled). Defaults to `10m0s`. */ waitForReadinessTimeout?: pulumi.Input<string>; } /** * The set of arguments for constructing a Stack resource. */ export interface StackArgs { /** * Whether to enable delete protection for the stack, preventing accidental deletion. Defaults to `true`. */ deleteProtection?: pulumi.Input<boolean>; /** * Description of stack. */ description?: pulumi.Input<string>; /** * A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\-._]+$" and stacks cannot have more than 10 labels. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`). */ name?: pulumi.Input<string>; /** * 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<string>; /** * Subdomain that the Grafana instance will be available at. Setting slug to `<stack_slug>` will make the instance available at `https://<stack_slug>.grafana.net`. */ slug: pulumi.Input<string>; /** * Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack */ url?: pulumi.Input<string>; /** * 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<boolean>; /** * How long to wait for readiness (if enabled). Defaults to `10m0s`. */ waitForReadinessTimeout?: pulumi.Input<string>; }