import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Governance Control resource. This can be used to configure built-in Governance Console controls, such as their detection, mitigation, and notification settings. Controls are built into Datadog: this resource configures an existing control rather than creating one, and removing it from Terraform only removes it from state. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Configure the built-in "Unused API Keys" governance control * const unusedApiKeys = new datadog.GovernanceControl("unused_api_keys", { * detectionType: "unused_api_keys", * detectionParameters: JSON.stringify({ * api_key_threshold: 30, * }), * notificationSettings: [{ * event_type: "new_detection", * enabled: true, * targets: [{ * type: "slack", * handle: "#platform-governance", * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/governanceControl:GovernanceControl unused_api_keys unused_api_keys * ``` */ export declare class GovernanceControl extends pulumi.CustomResource { /** * Get an existing GovernanceControl 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?: GovernanceControlState, opts?: pulumi.CustomResourceOptions): GovernanceControl; /** * Check whether an existing GovernanceControl 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?: GovernanceControlState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of GovernanceControl. 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 GovernanceControl; /** * Detection parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ readonly detectionParameters: pulumi.Output; /** * The detection type that uniquely identifies the control, for example `unusedApiKeys`. */ readonly detectionType: pulumi.Output; /** * Mitigation parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ readonly mitigationParameters: pulumi.Output; /** * The mitigation type configured for the control. Empty when not configured. */ readonly mitigationType: pulumi.Output; /** * Human-readable name of the control. */ readonly name: pulumi.Output; /** * The notification settings for the control, one entry per event type. */ readonly notificationSettings: pulumi.Output; /** * Create a GovernanceControl 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: GovernanceControlArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GovernanceControl resources. */ export interface GovernanceControlState { /** * Detection parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ detectionParameters?: pulumi.Input; /** * The detection type that uniquely identifies the control, for example `unusedApiKeys`. */ detectionType?: pulumi.Input; /** * Mitigation parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ mitigationParameters?: pulumi.Input; /** * The mitigation type configured for the control. Empty when not configured. */ mitigationType?: pulumi.Input; /** * Human-readable name of the control. */ name?: pulumi.Input; /** * The notification settings for the control, one entry per event type. */ notificationSettings?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a GovernanceControl resource. */ export interface GovernanceControlArgs { /** * Detection parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ detectionParameters?: pulumi.Input; /** * The detection type that uniquely identifies the control, for example `unusedApiKeys`. */ detectionType: pulumi.Input; /** * Mitigation parameters for the control, as a JSON-encoded map of parameter names to their configured values. */ mitigationParameters?: pulumi.Input; /** * The mitigation type configured for the control. Empty when not configured. */ mitigationType?: pulumi.Input; /** * The notification settings for the control, one entry per event type. */ notificationSettings?: pulumi.Input[] | undefined>; } //# sourceMappingURL=governanceControl.d.ts.map