UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

134 lines (133 loc) 7.05 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ComputeResourcePolicyAttachmentConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#id ComputeResourcePolicyAttachment#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * The name of the instance in which the resource policies are attached to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#instance ComputeResourcePolicyAttachment#instance} */ readonly instance: string; /** * The resource policy to be attached to the instance for scheduling start/stop * operations. Do not specify the self link. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#name ComputeResourcePolicyAttachment#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#project ComputeResourcePolicyAttachment#project} */ readonly project?: string; /** * A reference to the zone where the instance resides. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#zone ComputeResourcePolicyAttachment#zone} */ readonly zone?: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#timeouts ComputeResourcePolicyAttachment#timeouts} */ readonly timeouts?: ComputeResourcePolicyAttachmentTimeouts; } export interface ComputeResourcePolicyAttachmentTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#create ComputeResourcePolicyAttachment#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#delete ComputeResourcePolicyAttachment#delete} */ readonly delete?: string; } export declare function computeResourcePolicyAttachmentTimeoutsToTerraform(struct?: ComputeResourcePolicyAttachmentTimeouts | cdktf.IResolvable): any; export declare function computeResourcePolicyAttachmentTimeoutsToHclTerraform(struct?: ComputeResourcePolicyAttachmentTimeouts | cdktf.IResolvable): any; export declare class ComputeResourcePolicyAttachmentTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): ComputeResourcePolicyAttachmentTimeouts | cdktf.IResolvable | undefined; set internalValue(value: ComputeResourcePolicyAttachmentTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string | undefined; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment google_compute_resource_policy_attachment} */ export declare class ComputeResourcePolicyAttachment extends cdktf.TerraformResource { static readonly tfResourceType = "google_compute_resource_policy_attachment"; /** * Generates CDKTF code for importing a ComputeResourcePolicyAttachment resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the ComputeResourcePolicyAttachment to import * @param importFromId The id of the existing ComputeResourcePolicyAttachment that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ComputeResourcePolicyAttachment to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource; /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/resources/compute_resource_policy_attachment google_compute_resource_policy_attachment} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options ComputeResourcePolicyAttachmentConfig */ constructor(scope: Construct, id: string, config: ComputeResourcePolicyAttachmentConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _instance?; get instance(): string; set instance(value: string); get instanceInput(): string | undefined; private _name?; get name(): string; set name(value: string); get nameInput(): string | undefined; private _project?; get project(): string; set project(value: string); resetProject(): void; get projectInput(): string | undefined; private _zone?; get zone(): string; set zone(value: string); resetZone(): void; get zoneInput(): string | undefined; private _timeouts; get timeouts(): ComputeResourcePolicyAttachmentTimeoutsOutputReference; putTimeouts(value: ComputeResourcePolicyAttachmentTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | ComputeResourcePolicyAttachmentTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }