UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

168 lines (167 loc) 5.19 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Resource for creating a Harness CCM Filters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = new harness.PlatformCcmFilters("test", { * identifier: "identifier", * name: "name", * orgId: "org_id", * projectId: "project_id", * type: "CCMRecommendation", * filterProperties: { * tags: ["foo:bar"], * filterType: "CCMRecommendation", * }, * filterVisibility: "EveryOne", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level ccm filter * * ```sh * $ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <filter_id>/<type> * ``` * * Import org level ccm filter * * ```sh * $ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <ord_id>/<filter_id>/<type> * ``` * * Import project level ccm filter * * ```sh * $ pulumi import harness:index/platformCcmFilters:PlatformCcmFilters example <org_id>/<project_id>/<filter_id>/<type> * ``` */ export declare class PlatformCcmFilters extends pulumi.CustomResource { /** * Get an existing PlatformCcmFilters 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<pulumi.ID>, state?: PlatformCcmFiltersState, opts?: pulumi.CustomResourceOptions): PlatformCcmFilters; /** * Returns true if the given object is an instance of PlatformCcmFilters. 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 PlatformCcmFilters; /** * Properties of the filters entity defined in Harness. */ readonly filterProperties: pulumi.Output<outputs.PlatformCcmFiltersFilterProperties>; /** * This indicates visibility of filters, by default it is Everyone. */ readonly filterVisibility: pulumi.Output<string | undefined>; /** * Unique identifier of the resource. */ readonly identifier: pulumi.Output<string>; /** * Name of the ccm filters. */ readonly name: pulumi.Output<string>; /** * Organization Identifier for the Entity. */ readonly orgId: pulumi.Output<string | undefined>; /** * Project Identifier for the Entity. */ readonly projectId: pulumi.Output<string | undefined>; /** * Type of ccm filters. */ readonly type: pulumi.Output<string>; /** * Create a PlatformCcmFilters 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: PlatformCcmFiltersArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PlatformCcmFilters resources. */ export interface PlatformCcmFiltersState { /** * Properties of the filters entity defined in Harness. */ filterProperties?: pulumi.Input<inputs.PlatformCcmFiltersFilterProperties>; /** * This indicates visibility of filters, by default it is Everyone. */ filterVisibility?: pulumi.Input<string>; /** * Unique identifier of the resource. */ identifier?: pulumi.Input<string>; /** * Name of the ccm filters. */ name?: pulumi.Input<string>; /** * Organization Identifier for the Entity. */ orgId?: pulumi.Input<string>; /** * Project Identifier for the Entity. */ projectId?: pulumi.Input<string>; /** * Type of ccm filters. */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a PlatformCcmFilters resource. */ export interface PlatformCcmFiltersArgs { /** * Properties of the filters entity defined in Harness. */ filterProperties: pulumi.Input<inputs.PlatformCcmFiltersFilterProperties>; /** * This indicates visibility of filters, by default it is Everyone. */ filterVisibility?: pulumi.Input<string>; /** * Unique identifier of the resource. */ identifier: pulumi.Input<string>; /** * Name of the ccm filters. */ name?: pulumi.Input<string>; /** * Organization Identifier for the Entity. */ orgId?: pulumi.Input<string>; /** * Project Identifier for the Entity. */ projectId?: pulumi.Input<string>; /** * Type of ccm filters. */ type: pulumi.Input<string>; }