import * as pulumi from "@pulumi/pulumi"; /** * Specifies a suppression for an Azure Advisor recommendation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const current = azure.core.getClientConfig({}); * const example = azure.advisor.getRecommendations({}); * const exampleSuppression = new azure.advisor.Suppression("example", { * name: "HardcodedSuppressionName", * recommendationId: test.recommendations[0].recommendationName, * resourceId: current.then(current => `/subscriptions/${current.subscriptionId}`), * ttl: "01:00:00:00", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Advisor` - 2023-01-01 * * ## Import * * Advisor suppressions can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:advisor/suppression:Suppression example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor/recommendations/00000000-0000-0000-0000-000000000000/suppressions/name * ``` */ export declare class Suppression extends pulumi.CustomResource { /** * Get an existing Suppression 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?: SuppressionState, opts?: pulumi.CustomResourceOptions): Suppression; /** * Returns true if the given object is an instance of Suppression. 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 Suppression; /** * The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created. */ readonly name: pulumi.Output; /** * The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created. */ readonly recommendationId: pulumi.Output; /** * The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created. */ readonly resourceId: pulumi.Output; /** * The GUID of the suppression. */ readonly suppressionId: pulumi.Output; /** * A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created. */ readonly ttl: pulumi.Output; /** * Create a Suppression 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: SuppressionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Suppression resources. */ export interface SuppressionState { /** * The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created. */ name?: pulumi.Input; /** * The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created. */ recommendationId?: pulumi.Input; /** * The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created. */ resourceId?: pulumi.Input; /** * The GUID of the suppression. */ suppressionId?: pulumi.Input; /** * A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created. */ ttl?: pulumi.Input; } /** * The set of arguments for constructing a Suppression resource. */ export interface SuppressionArgs { /** * The Name which should be used for this Advisor suppression. Changing this forces a new Advisor suppression to be created. */ name?: pulumi.Input; /** * The ID of the Advisor recommendation to suppress. Changing this forces a new Advisor suppression to be created. */ recommendationId: pulumi.Input; /** * The ID of the Resource to suppress the Advisor recommendation for. Changing this forces a new Advisor suppression to be created. */ resourceId: pulumi.Input; /** * A optional time to live value. If omitted, the suppression will not expire. Changing this forces a new Advisor suppression to be created. */ ttl?: pulumi.Input; }