UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

227 lines (226 loc) 6.27 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for Manual Deployment Freeze Window. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = new harness.platform.ManualFreeze("example", { * identifier: "identifier", * orgId: "orgIdentifier", * projectId: "projectIdentifier", * accountId: "accountIdentifier", * yaml: `freeze: * name: freezeName * identifier: identifier * entityConfigs: * - name: r1 * entities: * - filterType: All * type: Org * - filterType: All * type: Project * - filterType: All * type: Service * - filterType: All * type: EnvType * status: Disabled * description: hi * windows: * - timeZone: Asia/Calcutta * startTime: 2023-05-03 04:16 PM * duration: 30m * recurrence: * type: Daily * notificationRules: [] * tags: {} * `, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import an account level freeze * * ```sh * $ pulumi import harness:platform/manualFreeze:ManualFreeze example <freeze_id> * ``` * * Import an organization level freeze * * ```sh * $ pulumi import harness:platform/manualFreeze:ManualFreeze example <org_id>/<freeze_id> * ``` * * Import project level freeze * * ```sh * $ pulumi import harness:platform/manualFreeze:ManualFreeze example <org_id>/<project_id>/<freeze_id> * ``` */ export declare class ManualFreeze extends pulumi.CustomResource { /** * Get an existing ManualFreeze 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?: ManualFreezeState, opts?: pulumi.CustomResourceOptions): ManualFreeze; /** * Returns true if the given object is an instance of ManualFreeze. 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 ManualFreeze; /** * Account Identifier of the freeze */ readonly accountId: pulumi.Output<string>; /** * Current or upcoming windows */ readonly currentOrUpcomingWindows: pulumi.Output<outputs.platform.ManualFreezeCurrentOrUpcomingWindow[]>; /** * Description of the freeze */ readonly description: pulumi.Output<string>; /** * Freeze windows in the freeze response */ readonly freezeWindows: pulumi.Output<outputs.platform.ManualFreezeFreezeWindow[]>; /** * Identifier of the freeze */ readonly identifier: pulumi.Output<string>; /** * Name of the freeze */ readonly name: pulumi.Output<string>; /** * Organization identifier of the freeze */ readonly orgId: pulumi.Output<string | undefined>; /** * Project identifier of the freeze */ readonly projectId: pulumi.Output<string | undefined>; /** * Scope of the freeze */ readonly scope: pulumi.Output<string>; /** * Status of the freeze */ readonly status: pulumi.Output<string>; /** * Tags associated with the freeze */ readonly tags: pulumi.Output<string[]>; /** * Type of freeze */ readonly type: pulumi.Output<string>; /** * Yaml of the freeze */ readonly yaml: pulumi.Output<string>; /** * Create a ManualFreeze 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: ManualFreezeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManualFreeze resources. */ export interface ManualFreezeState { /** * Account Identifier of the freeze */ accountId?: pulumi.Input<string>; /** * Current or upcoming windows */ currentOrUpcomingWindows?: pulumi.Input<pulumi.Input<inputs.platform.ManualFreezeCurrentOrUpcomingWindow>[]>; /** * Description of the freeze */ description?: pulumi.Input<string>; /** * Freeze windows in the freeze response */ freezeWindows?: pulumi.Input<pulumi.Input<inputs.platform.ManualFreezeFreezeWindow>[]>; /** * Identifier of the freeze */ identifier?: pulumi.Input<string>; /** * Name of the freeze */ name?: pulumi.Input<string>; /** * Organization identifier of the freeze */ orgId?: pulumi.Input<string>; /** * Project identifier of the freeze */ projectId?: pulumi.Input<string>; /** * Scope of the freeze */ scope?: pulumi.Input<string>; /** * Status of the freeze */ status?: pulumi.Input<string>; /** * Tags associated with the freeze */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * Type of freeze */ type?: pulumi.Input<string>; /** * Yaml of the freeze */ yaml?: pulumi.Input<string>; } /** * The set of arguments for constructing a ManualFreeze resource. */ export interface ManualFreezeArgs { /** * Account Identifier of the freeze */ accountId: pulumi.Input<string>; /** * Identifier of the freeze */ identifier: pulumi.Input<string>; /** * Organization identifier of the freeze */ orgId?: pulumi.Input<string>; /** * Project identifier of the freeze */ projectId?: pulumi.Input<string>; /** * Yaml of the freeze */ yaml: pulumi.Input<string>; }