import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog status page degradation template resource. This can be used to create and manage pre-filled templates for degradations on a status page. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create new datadog_status_page_degradation_template resource * const acmeStatusPage = new datadog.StatusPage("acme_status_page", { * name: "Acme Status", * type: "public", * domainPrefix: "acme-status", * visualizationType: "bars_and_uptime_percentage", * }); * const acmeApi = new datadog.StatusPageComponent("acme_api", { * pageId: acmeStatusPage.id, * name: "API", * type: "component", * position: 0, * }); * const acmeDegradationTemplate = new datadog.StatusPageDegradationTemplate("acme_degradation_template", { * pageId: acmeStatusPage.id, * name: "Acme API Degradation", * degradationTitle: "Acme API is degraded", * componentsAffecteds: [{ * id: acmeApi.id, * status: "degraded", * }], * updates: [ * { * message: "We are investigating issues with the Acme API.", * status: "investigating", * }, * { * message: "We have resolved the Acme API issues.", * status: "resolved", * }, * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/statusPageDegradationTemplate:StatusPageDegradationTemplate example "09a89ab4-d622-4fbd-87e5-81b4124bd064:1e2c6615-801b-4630-9d31-5b2f27d5b6f0" * ``` */ export declare class StatusPageDegradationTemplate extends pulumi.CustomResource { /** * Get an existing StatusPageDegradationTemplate 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?: StatusPageDegradationTemplateState, opts?: pulumi.CustomResourceOptions): StatusPageDegradationTemplate; /** * Check whether an existing StatusPageDegradationTemplate resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: StatusPageDegradationTemplateState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of StatusPageDegradationTemplate. 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 StatusPageDegradationTemplate; /** * The components affected by a degradation created from this template. */ readonly componentsAffecteds: pulumi.Output; /** * Timestamp when the degradation template was created. */ readonly createdAt: pulumi.Output; /** * The title used for a degradation created from this template. */ readonly degradationTitle: pulumi.Output; /** * Timestamp when the degradation template was last modified. */ readonly modifiedAt: pulumi.Output; /** * The name of the degradation template. */ readonly name: pulumi.Output; /** * The ID of the status page this degradation template belongs to. */ readonly pageId: pulumi.Output; /** * The pre-filled updates for a degradation created from this template. */ readonly updates: pulumi.Output; /** * Create a StatusPageDegradationTemplate 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: StatusPageDegradationTemplateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StatusPageDegradationTemplate resources. */ export interface StatusPageDegradationTemplateState { /** * The components affected by a degradation created from this template. */ componentsAffecteds?: pulumi.Input[] | undefined>; /** * Timestamp when the degradation template was created. */ createdAt?: pulumi.Input; /** * The title used for a degradation created from this template. */ degradationTitle?: pulumi.Input; /** * Timestamp when the degradation template was last modified. */ modifiedAt?: pulumi.Input; /** * The name of the degradation template. */ name?: pulumi.Input; /** * The ID of the status page this degradation template belongs to. */ pageId?: pulumi.Input; /** * The pre-filled updates for a degradation created from this template. */ updates?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a StatusPageDegradationTemplate resource. */ export interface StatusPageDegradationTemplateArgs { /** * The components affected by a degradation created from this template. */ componentsAffecteds?: pulumi.Input[] | undefined>; /** * The title used for a degradation created from this template. */ degradationTitle?: pulumi.Input; /** * The name of the degradation template. */ name: pulumi.Input; /** * The ID of the status page this degradation template belongs to. */ pageId: pulumi.Input; /** * The pre-filled updates for a degradation created from this template. */ updates?: pulumi.Input[] | undefined>; } //# sourceMappingURL=statusPageDegradationTemplate.d.ts.map