import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog incident user-defined field resource. This can be used to create and manage custom fields on Datadog incidents. **Note**: This resource targets an endpoint that is in preview and is subject to change. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const example = new datadog.IncidentType("example", { * name: "Security Incident", * description: "Security-related incidents requiring immediate attention", * }); * // A dropdown user-defined field with a fixed set of valid values. * const exampleIncidentUserDefinedField = new datadog.IncidentUserDefinedField("example", { * name: "root_cause", * displayName: "Root Cause", * type: "dropdown", * category: "what_happened", * defaultValue: "service_bug", * incidentType: example.id, * validValues: [ * { * displayName: "Service Bug", * value: "service_bug", * description: "A bug in the service code.", * }, * { * displayName: "Human Error", * value: "human_error", * }, * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/incidentUserDefinedField:IncidentUserDefinedField example "12345678-1234-1234-1234-1234567890ab" * ``` */ export declare class IncidentUserDefinedField extends pulumi.CustomResource { /** * Get an existing IncidentUserDefinedField 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?: IncidentUserDefinedFieldState, opts?: pulumi.CustomResourceOptions): IncidentUserDefinedField; /** * Check whether an existing IncidentUserDefinedField 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?: IncidentUserDefinedFieldState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of IncidentUserDefinedField. 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 IncidentUserDefinedField; /** * The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section. */ readonly category: pulumi.Output; /** * Timestamp when the field was created. */ readonly created: pulumi.Output; /** * The default value for the field. Must be one of the valid values when `validValues` is set. */ readonly defaultValue: pulumi.Output; /** * Timestamp when the field was soft-deleted, or null if not deleted. */ readonly deleted: pulumi.Output; /** * The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided. */ readonly displayName: pulumi.Output; /** * The ID of the incident type this field is associated with. Changing the incident type forces a new resource. */ readonly incidentType: pulumi.Output; /** * Metadata for autocomplete-type fields, describing how to populate autocomplete options. Populated by the server for supported fields. */ readonly metadata: pulumi.Output; /** * Timestamp when the field was last modified. */ readonly modified: pulumi.Output; /** * The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource. */ readonly name: pulumi.Output; /** * A decimal string representing the field's display order in the UI. Assigned by the server when not provided. */ readonly ordinal: pulumi.Output; /** * When true, users must fill out this field on incidents. Defaults to `false`. */ readonly required: pulumi.Output; /** * When true, this field is reserved for system use and cannot be deleted. */ readonly reserved: pulumi.Output; /** * For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource. */ readonly tagKey: pulumi.Output; /** * The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`. */ readonly type: pulumi.Output; /** * A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set. */ readonly validValues: pulumi.Output; /** * Create a IncidentUserDefinedField 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: IncidentUserDefinedFieldArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IncidentUserDefinedField resources. */ export interface IncidentUserDefinedFieldState { /** * The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section. */ category?: pulumi.Input; /** * Timestamp when the field was created. */ created?: pulumi.Input; /** * The default value for the field. Must be one of the valid values when `validValues` is set. */ defaultValue?: pulumi.Input; /** * Timestamp when the field was soft-deleted, or null if not deleted. */ deleted?: pulumi.Input; /** * The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided. */ displayName?: pulumi.Input; /** * The ID of the incident type this field is associated with. Changing the incident type forces a new resource. */ incidentType?: pulumi.Input; /** * Metadata for autocomplete-type fields, describing how to populate autocomplete options. Populated by the server for supported fields. */ metadata?: pulumi.Input; /** * Timestamp when the field was last modified. */ modified?: pulumi.Input; /** * The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource. */ name?: pulumi.Input; /** * A decimal string representing the field's display order in the UI. Assigned by the server when not provided. */ ordinal?: pulumi.Input; /** * When true, users must fill out this field on incidents. Defaults to `false`. */ required?: pulumi.Input; /** * When true, this field is reserved for system use and cannot be deleted. */ reserved?: pulumi.Input; /** * For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource. */ tagKey?: pulumi.Input; /** * The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`. */ type?: pulumi.Input; /** * A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set. */ validValues?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a IncidentUserDefinedField resource. */ export interface IncidentUserDefinedFieldArgs { /** * The section in which the field appears: `whatHappened` or `whyItHappened`. When unset, the field appears in the Attributes section. */ category?: pulumi.Input; /** * The default value for the field. Must be one of the valid values when `validValues` is set. */ defaultValue?: pulumi.Input; /** * The human-readable name shown in the UI. Defaults to a formatted version of the name if not provided. */ displayName?: pulumi.Input; /** * The ID of the incident type this field is associated with. Changing the incident type forces a new resource. */ incidentType: pulumi.Input; /** * The unique identifier of the field. Must start with a letter or digit and contain only letters, digits, underscores, or periods. Changing the name forces a new resource. */ name: pulumi.Input; /** * A decimal string representing the field's display order in the UI. Assigned by the server when not provided. */ ordinal?: pulumi.Input; /** * When true, users must fill out this field on incidents. Defaults to `false`. */ required?: pulumi.Input; /** * For metric tag-type fields only, the metric tag key that powers the autocomplete options. Changing the tag key forces a new resource. */ tagKey?: pulumi.Input; /** * The data type of the field. Changing the type forces a new resource. Valid values are `dropdown`, `multiselect`, `textbox`, `textarray`, `metrictag`, `autocomplete`, `number`, `datetime`. */ type: pulumi.Input; /** * A set of allowed values for dropdown, multiselect, and autocomplete fields; specify one block per value. Limited to 1000 values. The API does not preserve ordering, so this is modeled as an unordered set. */ validValues?: pulumi.Input[] | undefined>; } //# sourceMappingURL=incidentUserDefinedField.d.ts.map