UNPKG

@pulumi/pagerduty

Version:

A Pulumi package for creating and managing pagerduty cloud resources.

74 lines (73 loc) 2.35 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a specific [Incident Custom Field](https://support.pagerduty.com/docs/custom-fields-on-incidents). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const environment = pagerduty.getIncidentCustomField({ * name: "environment", * }); * const devEnvironment = new pagerduty.IncidentCustomFieldOption("dev_environment", { * field: environment.then(environment => environment.id), * datatype: "string", * value: "dev", * }); * ``` */ export declare function getIncidentCustomField(args: GetIncidentCustomFieldArgs, opts?: pulumi.InvokeOptions): Promise<GetIncidentCustomFieldResult>; /** * A collection of arguments for invoking getIncidentCustomField. */ export interface GetIncidentCustomFieldArgs { /** * The name of the field. */ name: string; } /** * A collection of values returned by getIncidentCustomField. */ export interface GetIncidentCustomFieldResult { readonly dataType: string; readonly description: string; readonly displayName: string; readonly fieldType: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; } /** * Use this data source to get information about a specific [Incident Custom Field](https://support.pagerduty.com/docs/custom-fields-on-incidents). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const environment = pagerduty.getIncidentCustomField({ * name: "environment", * }); * const devEnvironment = new pagerduty.IncidentCustomFieldOption("dev_environment", { * field: environment.then(environment => environment.id), * datatype: "string", * value: "dev", * }); * ``` */ export declare function getIncidentCustomFieldOutput(args: GetIncidentCustomFieldOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIncidentCustomFieldResult>; /** * A collection of arguments for invoking getIncidentCustomField. */ export interface GetIncidentCustomFieldOutputArgs { /** * The name of the field. */ name: pulumi.Input<string>; }