UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

486 lines (485 loc) 25.4 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface GkeonpremBareMetalNodePoolConfig extends cdktf.TerraformMetaArguments { /** * Annotations on the Bare Metal Node Pool. * This field has the same restrictions as Kubernetes annotations. * The total size of all keys and values combined is limited to 256k. * Key can have 2 segments: prefix (optional) and name (required), * separated by a slash (/). * Prefix must be a DNS subdomain. * Name must be 63 characters or less, begin and end with alphanumerics, * with dashes (-), underscores (_), dots (.), and alphanumerics between. * * * **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. * Please refer to the field 'effective_annotations' for all of the annotations present on the resource. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#annotations GkeonpremBareMetalNodePool#annotations} */ readonly annotations?: { [key: string]: string; }; /** * The cluster this node pool belongs to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#bare_metal_cluster GkeonpremBareMetalNodePool#bare_metal_cluster} */ readonly bareMetalCluster: string; /** * The display name for the Bare Metal Node Pool. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#display_name GkeonpremBareMetalNodePool#display_name} */ readonly displayName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#id GkeonpremBareMetalNodePool#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 location of the resource. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#location GkeonpremBareMetalNodePool#location} */ readonly location: string; /** * The bare metal node pool name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#name GkeonpremBareMetalNodePool#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#project GkeonpremBareMetalNodePool#project} */ readonly project?: string; /** * node_pool_config block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#node_pool_config GkeonpremBareMetalNodePool#node_pool_config} */ readonly nodePoolConfig: GkeonpremBareMetalNodePoolNodePoolConfig; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#timeouts GkeonpremBareMetalNodePool#timeouts} */ readonly timeouts?: GkeonpremBareMetalNodePoolTimeouts; } export interface GkeonpremBareMetalNodePoolStatusConditions { } export declare function gkeonpremBareMetalNodePoolStatusConditionsToTerraform(struct?: GkeonpremBareMetalNodePoolStatusConditions): any; export declare function gkeonpremBareMetalNodePoolStatusConditionsToHclTerraform(struct?: GkeonpremBareMetalNodePoolStatusConditions): any; export declare class GkeonpremBareMetalNodePoolStatusConditionsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): GkeonpremBareMetalNodePoolStatusConditions | undefined; set internalValue(value: GkeonpremBareMetalNodePoolStatusConditions | undefined); get lastTransitionTime(): string; get message(): string; get reason(): string; get state(): string; get type(): string; } export declare class GkeonpremBareMetalNodePoolStatusConditionsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): GkeonpremBareMetalNodePoolStatusConditionsOutputReference; } export interface GkeonpremBareMetalNodePoolStatus { } export declare function gkeonpremBareMetalNodePoolStatusToTerraform(struct?: GkeonpremBareMetalNodePoolStatus): any; export declare function gkeonpremBareMetalNodePoolStatusToHclTerraform(struct?: GkeonpremBareMetalNodePoolStatus): any; export declare class GkeonpremBareMetalNodePoolStatusOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): GkeonpremBareMetalNodePoolStatus | undefined; set internalValue(value: GkeonpremBareMetalNodePoolStatus | undefined); private _conditions; get conditions(): GkeonpremBareMetalNodePoolStatusConditionsList; get errorMessage(): string; } export declare class GkeonpremBareMetalNodePoolStatusList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): GkeonpremBareMetalNodePoolStatusOutputReference; } export interface GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs { /** * The map of Kubernetes labels (key/value pairs) to be applied to * each node. These will added in addition to any default label(s) * that Kubernetes may apply to the node. In case of conflict in * label keys, the applied set may differ depending on the Kubernetes * version -- it's best to assume the behavior is undefined and * conflicts should be avoided. For more information, including usage * and the valid values, see: * - http://kubernetes.io/v1.1/docs/user-guide/labels.html * An object containing a list of "key": value pairs. * For example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#labels GkeonpremBareMetalNodePool#labels} */ readonly labels?: { [key: string]: string; }; /** * The default IPv4 address for SSH access and Kubernetes node. * Example: 192.168.0.1 * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#node_ip GkeonpremBareMetalNodePool#node_ip} */ readonly nodeIp?: string; } export declare function gkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsToTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs | cdktf.IResolvable): any; export declare function gkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsToHclTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs | cdktf.IResolvable): any; export declare class GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs | cdktf.IResolvable | undefined; set internalValue(value: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs | cdktf.IResolvable | undefined); private _labels?; get labels(): { [key: string]: string; }; set labels(value: { [key: string]: string; }); resetLabels(): void; get labelsInput(): { [key: string]: string; } | undefined; private _nodeIp?; get nodeIp(): string; set nodeIp(value: string); resetNodeIp(): void; get nodeIpInput(): string | undefined; } export declare class GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsOutputReference; } export interface GkeonpremBareMetalNodePoolNodePoolConfigTaints { /** * Specifies the nodes operating system (default: LINUX). Possible values: ["EFFECT_UNSPECIFIED", "PREFER_NO_SCHEDULE", "NO_EXECUTE"] * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#effect GkeonpremBareMetalNodePool#effect} */ readonly effect?: string; /** * Key associated with the effect. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#key GkeonpremBareMetalNodePool#key} */ readonly key?: string; /** * Value associated with the effect. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#value GkeonpremBareMetalNodePool#value} */ readonly value?: string; } export declare function gkeonpremBareMetalNodePoolNodePoolConfigTaintsToTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigTaints | cdktf.IResolvable): any; export declare function gkeonpremBareMetalNodePoolNodePoolConfigTaintsToHclTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigTaints | cdktf.IResolvable): any; export declare class GkeonpremBareMetalNodePoolNodePoolConfigTaintsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): GkeonpremBareMetalNodePoolNodePoolConfigTaints | cdktf.IResolvable | undefined; set internalValue(value: GkeonpremBareMetalNodePoolNodePoolConfigTaints | cdktf.IResolvable | undefined); private _effect?; get effect(): string; set effect(value: string); resetEffect(): void; get effectInput(): string | undefined; private _key?; get key(): string; set key(value: string); resetKey(): void; get keyInput(): string | undefined; private _value?; get value(): string; set value(value: string); resetValue(): void; get valueInput(): string | undefined; } export declare class GkeonpremBareMetalNodePoolNodePoolConfigTaintsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: GkeonpremBareMetalNodePoolNodePoolConfigTaints[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): GkeonpremBareMetalNodePoolNodePoolConfigTaintsOutputReference; } export interface GkeonpremBareMetalNodePoolNodePoolConfig { /** * The map of Kubernetes labels (key/value pairs) to be applied to * each node. These will added in addition to any default label(s) * that Kubernetes may apply to the node. In case of conflict in * label keys, the applied set may differ depending on the Kubernetes * version -- it's best to assume the behavior is undefined and * conflicts should be avoided. For more information, including usage * and the valid values, see: * - http://kubernetes.io/v1.1/docs/user-guide/labels.html * An object containing a list of "key": value pairs. * For example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#labels GkeonpremBareMetalNodePool#labels} */ readonly labels?: { [key: string]: string; }; /** * Specifies the nodes operating system (default: LINUX). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#operating_system GkeonpremBareMetalNodePool#operating_system} */ readonly operatingSystem?: string; /** * node_configs block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#node_configs GkeonpremBareMetalNodePool#node_configs} */ readonly nodeConfigs: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs[] | cdktf.IResolvable; /** * taints block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#taints GkeonpremBareMetalNodePool#taints} */ readonly taints?: GkeonpremBareMetalNodePoolNodePoolConfigTaints[] | cdktf.IResolvable; } export declare function gkeonpremBareMetalNodePoolNodePoolConfigToTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigOutputReference | GkeonpremBareMetalNodePoolNodePoolConfig): any; export declare function gkeonpremBareMetalNodePoolNodePoolConfigToHclTerraform(struct?: GkeonpremBareMetalNodePoolNodePoolConfigOutputReference | GkeonpremBareMetalNodePoolNodePoolConfig): any; export declare class GkeonpremBareMetalNodePoolNodePoolConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): GkeonpremBareMetalNodePoolNodePoolConfig | undefined; set internalValue(value: GkeonpremBareMetalNodePoolNodePoolConfig | undefined); private _labels?; get labels(): { [key: string]: string; }; set labels(value: { [key: string]: string; }); resetLabels(): void; get labelsInput(): { [key: string]: string; } | undefined; private _operatingSystem?; get operatingSystem(): string; set operatingSystem(value: string); resetOperatingSystem(): void; get operatingSystemInput(): string | undefined; private _nodeConfigs; get nodeConfigs(): GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigsList; putNodeConfigs(value: GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs[] | cdktf.IResolvable): void; get nodeConfigsInput(): cdktf.IResolvable | GkeonpremBareMetalNodePoolNodePoolConfigNodeConfigs[] | undefined; private _taints; get taints(): GkeonpremBareMetalNodePoolNodePoolConfigTaintsList; putTaints(value: GkeonpremBareMetalNodePoolNodePoolConfigTaints[] | cdktf.IResolvable): void; resetTaints(): void; get taintsInput(): cdktf.IResolvable | GkeonpremBareMetalNodePoolNodePoolConfigTaints[] | undefined; } export interface GkeonpremBareMetalNodePoolTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#create GkeonpremBareMetalNodePool#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#delete GkeonpremBareMetalNodePool#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#update GkeonpremBareMetalNodePool#update} */ readonly update?: string; } export declare function gkeonpremBareMetalNodePoolTimeoutsToTerraform(struct?: GkeonpremBareMetalNodePoolTimeouts | cdktf.IResolvable): any; export declare function gkeonpremBareMetalNodePoolTimeoutsToHclTerraform(struct?: GkeonpremBareMetalNodePoolTimeouts | cdktf.IResolvable): any; export declare class GkeonpremBareMetalNodePoolTimeoutsOutputReference 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(): GkeonpremBareMetalNodePoolTimeouts | cdktf.IResolvable | undefined; set internalValue(value: GkeonpremBareMetalNodePoolTimeouts | 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; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string | undefined; } /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool google_gkeonprem_bare_metal_node_pool} */ export declare class GkeonpremBareMetalNodePool extends cdktf.TerraformResource { static readonly tfResourceType = "google_gkeonprem_bare_metal_node_pool"; /** * Generates CDKTF code for importing a GkeonpremBareMetalNodePool 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 GkeonpremBareMetalNodePool to import * @param importFromId The id of the existing GkeonpremBareMetalNodePool that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/gkeonprem_bare_metal_node_pool#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the GkeonpremBareMetalNodePool 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.13.0/docs/resources/gkeonprem_bare_metal_node_pool google_gkeonprem_bare_metal_node_pool} 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 GkeonpremBareMetalNodePoolConfig */ constructor(scope: Construct, id: string, config: GkeonpremBareMetalNodePoolConfig); private _annotations?; get annotations(): { [key: string]: string; }; set annotations(value: { [key: string]: string; }); resetAnnotations(): void; get annotationsInput(): { [key: string]: string; } | undefined; private _bareMetalCluster?; get bareMetalCluster(): string; set bareMetalCluster(value: string); get bareMetalClusterInput(): string | undefined; get createTime(): string; get deleteTime(): string; private _displayName?; get displayName(): string; set displayName(value: string); resetDisplayName(): void; get displayNameInput(): string | undefined; private _effectiveAnnotations; get effectiveAnnotations(): cdktf.StringMap; get etag(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string | undefined; private _location?; get location(): string; set location(value: string); get locationInput(): 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; get reconciling(): cdktf.IResolvable; get state(): string; private _status; get status(): GkeonpremBareMetalNodePoolStatusList; get uid(): string; get updateTime(): string; private _nodePoolConfig; get nodePoolConfig(): GkeonpremBareMetalNodePoolNodePoolConfigOutputReference; putNodePoolConfig(value: GkeonpremBareMetalNodePoolNodePoolConfig): void; get nodePoolConfigInput(): GkeonpremBareMetalNodePoolNodePoolConfig | undefined; private _timeouts; get timeouts(): GkeonpremBareMetalNodePoolTimeoutsOutputReference; putTimeouts(value: GkeonpremBareMetalNodePoolTimeouts): void; resetTimeouts(): void; get timeoutsInput(): cdktf.IResolvable | GkeonpremBareMetalNodePoolTimeouts | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }