UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,096 lines 348 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y; Object.defineProperty(exports, "__esModule", { value: true }); exports.EdgecontainerCluster = exports.EdgecontainerClusterTimeoutsOutputReference = exports.EdgecontainerClusterSystemAddonsConfigOutputReference = exports.EdgecontainerClusterSystemAddonsConfigIngressOutputReference = exports.EdgecontainerClusterNetworkingOutputReference = exports.EdgecontainerClusterMaintenancePolicyOutputReference = exports.EdgecontainerClusterMaintenancePolicyWindowOutputReference = exports.EdgecontainerClusterMaintenancePolicyWindowRecurringWindowOutputReference = exports.EdgecontainerClusterMaintenancePolicyWindowRecurringWindowWindowOutputReference = exports.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsList = exports.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference = exports.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference = exports.EdgecontainerClusterFleetOutputReference = exports.EdgecontainerClusterControlPlaneEncryptionOutputReference = exports.EdgecontainerClusterControlPlaneEncryptionKmsStatusList = exports.EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference = exports.EdgecontainerClusterControlPlaneOutputReference = exports.EdgecontainerClusterControlPlaneRemoteOutputReference = exports.EdgecontainerClusterControlPlaneLocalOutputReference = exports.EdgecontainerClusterAuthorizationOutputReference = exports.EdgecontainerClusterAuthorizationAdminUsersOutputReference = exports.EdgecontainerClusterMaintenanceEventsList = exports.EdgecontainerClusterMaintenanceEventsOutputReference = void 0; exports.edgecontainerClusterMaintenanceEventsToTerraform = edgecontainerClusterMaintenanceEventsToTerraform; exports.edgecontainerClusterMaintenanceEventsToHclTerraform = edgecontainerClusterMaintenanceEventsToHclTerraform; exports.edgecontainerClusterAuthorizationAdminUsersToTerraform = edgecontainerClusterAuthorizationAdminUsersToTerraform; exports.edgecontainerClusterAuthorizationAdminUsersToHclTerraform = edgecontainerClusterAuthorizationAdminUsersToHclTerraform; exports.edgecontainerClusterAuthorizationToTerraform = edgecontainerClusterAuthorizationToTerraform; exports.edgecontainerClusterAuthorizationToHclTerraform = edgecontainerClusterAuthorizationToHclTerraform; exports.edgecontainerClusterControlPlaneLocalToTerraform = edgecontainerClusterControlPlaneLocalToTerraform; exports.edgecontainerClusterControlPlaneLocalToHclTerraform = edgecontainerClusterControlPlaneLocalToHclTerraform; exports.edgecontainerClusterControlPlaneRemoteToTerraform = edgecontainerClusterControlPlaneRemoteToTerraform; exports.edgecontainerClusterControlPlaneRemoteToHclTerraform = edgecontainerClusterControlPlaneRemoteToHclTerraform; exports.edgecontainerClusterControlPlaneToTerraform = edgecontainerClusterControlPlaneToTerraform; exports.edgecontainerClusterControlPlaneToHclTerraform = edgecontainerClusterControlPlaneToHclTerraform; exports.edgecontainerClusterControlPlaneEncryptionKmsStatusToTerraform = edgecontainerClusterControlPlaneEncryptionKmsStatusToTerraform; exports.edgecontainerClusterControlPlaneEncryptionKmsStatusToHclTerraform = edgecontainerClusterControlPlaneEncryptionKmsStatusToHclTerraform; exports.edgecontainerClusterControlPlaneEncryptionToTerraform = edgecontainerClusterControlPlaneEncryptionToTerraform; exports.edgecontainerClusterControlPlaneEncryptionToHclTerraform = edgecontainerClusterControlPlaneEncryptionToHclTerraform; exports.edgecontainerClusterFleetToTerraform = edgecontainerClusterFleetToTerraform; exports.edgecontainerClusterFleetToHclTerraform = edgecontainerClusterFleetToHclTerraform; exports.edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToTerraform = edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToTerraform; exports.edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToHclTerraform = edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToHclTerraform; exports.edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToTerraform = edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToTerraform; exports.edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToHclTerraform = edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToHclTerraform; exports.edgecontainerClusterMaintenancePolicyWindowRecurringWindowWindowToTerraform = edgecontainerClusterMaintenancePolicyWindowRecurringWindowWindowToTerraform; exports.edgecontainerClusterMaintenancePolicyWindowRecurringWindowWindowToHclTerraform = edgecontainerClusterMaintenancePolicyWindowRecurringWindowWindowToHclTerraform; exports.edgecontainerClusterMaintenancePolicyWindowRecurringWindowToTerraform = edgecontainerClusterMaintenancePolicyWindowRecurringWindowToTerraform; exports.edgecontainerClusterMaintenancePolicyWindowRecurringWindowToHclTerraform = edgecontainerClusterMaintenancePolicyWindowRecurringWindowToHclTerraform; exports.edgecontainerClusterMaintenancePolicyWindowToTerraform = edgecontainerClusterMaintenancePolicyWindowToTerraform; exports.edgecontainerClusterMaintenancePolicyWindowToHclTerraform = edgecontainerClusterMaintenancePolicyWindowToHclTerraform; exports.edgecontainerClusterMaintenancePolicyToTerraform = edgecontainerClusterMaintenancePolicyToTerraform; exports.edgecontainerClusterMaintenancePolicyToHclTerraform = edgecontainerClusterMaintenancePolicyToHclTerraform; exports.edgecontainerClusterNetworkingToTerraform = edgecontainerClusterNetworkingToTerraform; exports.edgecontainerClusterNetworkingToHclTerraform = edgecontainerClusterNetworkingToHclTerraform; exports.edgecontainerClusterSystemAddonsConfigIngressToTerraform = edgecontainerClusterSystemAddonsConfigIngressToTerraform; exports.edgecontainerClusterSystemAddonsConfigIngressToHclTerraform = edgecontainerClusterSystemAddonsConfigIngressToHclTerraform; exports.edgecontainerClusterSystemAddonsConfigToTerraform = edgecontainerClusterSystemAddonsConfigToTerraform; exports.edgecontainerClusterSystemAddonsConfigToHclTerraform = edgecontainerClusterSystemAddonsConfigToHclTerraform; exports.edgecontainerClusterTimeoutsToTerraform = edgecontainerClusterTimeoutsToTerraform; exports.edgecontainerClusterTimeoutsToHclTerraform = edgecontainerClusterTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function edgecontainerClusterMaintenanceEventsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function edgecontainerClusterMaintenanceEventsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class EdgecontainerClusterMaintenanceEventsOutputReference extends cdktf.ComplexObject { /** * @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, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } // end_time - computed: true, optional: false, required: false get endTime() { return this.getStringAttribute('end_time'); } // operation - computed: true, optional: false, required: false get operation() { return this.getStringAttribute('operation'); } // schedule - computed: true, optional: false, required: false get schedule() { return this.getStringAttribute('schedule'); } // start_time - computed: true, optional: false, required: false get startTime() { return this.getStringAttribute('start_time'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // target_version - computed: true, optional: false, required: false get targetVersion() { return this.getStringAttribute('target_version'); } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } // update_time - computed: true, optional: false, required: false get updateTime() { return this.getStringAttribute('update_time'); } // uuid - computed: true, optional: false, required: false get uuid() { return this.getStringAttribute('uuid'); } } exports.EdgecontainerClusterMaintenanceEventsOutputReference = EdgecontainerClusterMaintenanceEventsOutputReference; _a = JSII_RTTI_SYMBOL_1; EdgecontainerClusterMaintenanceEventsOutputReference[_a] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterMaintenanceEventsOutputReference", version: "14.35.0" }; class EdgecontainerClusterMaintenanceEventsList extends cdktf.ComplexList { /** * @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, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EdgecontainerClusterMaintenanceEventsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EdgecontainerClusterMaintenanceEventsList = EdgecontainerClusterMaintenanceEventsList; _b = JSII_RTTI_SYMBOL_1; EdgecontainerClusterMaintenanceEventsList[_b] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterMaintenanceEventsList", version: "14.35.0" }; function edgecontainerClusterAuthorizationAdminUsersToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { username: cdktf.stringToTerraform(struct.username), }; } function edgecontainerClusterAuthorizationAdminUsersToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterAuthorizationAdminUsersOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._username = value.username; } } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.EdgecontainerClusterAuthorizationAdminUsersOutputReference = EdgecontainerClusterAuthorizationAdminUsersOutputReference; _c = JSII_RTTI_SYMBOL_1; EdgecontainerClusterAuthorizationAdminUsersOutputReference[_c] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterAuthorizationAdminUsersOutputReference", version: "14.35.0" }; function edgecontainerClusterAuthorizationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { admin_users: edgecontainerClusterAuthorizationAdminUsersToTerraform(struct.adminUsers), }; } function edgecontainerClusterAuthorizationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { admin_users: { value: edgecontainerClusterAuthorizationAdminUsersToHclTerraform(struct.adminUsers), isBlock: true, type: "list", storageClassType: "EdgecontainerClusterAuthorizationAdminUsersList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterAuthorizationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // admin_users - computed: false, optional: false, required: true this._adminUsers = new EdgecontainerClusterAuthorizationAdminUsersOutputReference(this, "admin_users"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._adminUsers?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.adminUsers = this._adminUsers?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._adminUsers.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adminUsers.internalValue = value.adminUsers; } } get adminUsers() { return this._adminUsers; } putAdminUsers(value) { this._adminUsers.internalValue = value; } // Temporarily expose input value. Use with caution. get adminUsersInput() { return this._adminUsers.internalValue; } } exports.EdgecontainerClusterAuthorizationOutputReference = EdgecontainerClusterAuthorizationOutputReference; _d = JSII_RTTI_SYMBOL_1; EdgecontainerClusterAuthorizationOutputReference[_d] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterAuthorizationOutputReference", version: "14.35.0" }; function edgecontainerClusterControlPlaneLocalToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { machine_filter: cdktf.stringToTerraform(struct.machineFilter), node_count: cdktf.numberToTerraform(struct.nodeCount), node_location: cdktf.stringToTerraform(struct.nodeLocation), shared_deployment_policy: cdktf.stringToTerraform(struct.sharedDeploymentPolicy), }; } function edgecontainerClusterControlPlaneLocalToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { machine_filter: { value: cdktf.stringToHclTerraform(struct.machineFilter), isBlock: false, type: "simple", storageClassType: "string", }, node_count: { value: cdktf.numberToHclTerraform(struct.nodeCount), isBlock: false, type: "simple", storageClassType: "number", }, node_location: { value: cdktf.stringToHclTerraform(struct.nodeLocation), isBlock: false, type: "simple", storageClassType: "string", }, shared_deployment_policy: { value: cdktf.stringToHclTerraform(struct.sharedDeploymentPolicy), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterControlPlaneLocalOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._machineFilter !== undefined) { hasAnyValues = true; internalValueResult.machineFilter = this._machineFilter; } if (this._nodeCount !== undefined) { hasAnyValues = true; internalValueResult.nodeCount = this._nodeCount; } if (this._nodeLocation !== undefined) { hasAnyValues = true; internalValueResult.nodeLocation = this._nodeLocation; } if (this._sharedDeploymentPolicy !== undefined) { hasAnyValues = true; internalValueResult.sharedDeploymentPolicy = this._sharedDeploymentPolicy; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._machineFilter = undefined; this._nodeCount = undefined; this._nodeLocation = undefined; this._sharedDeploymentPolicy = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._machineFilter = value.machineFilter; this._nodeCount = value.nodeCount; this._nodeLocation = value.nodeLocation; this._sharedDeploymentPolicy = value.sharedDeploymentPolicy; } } get machineFilter() { return this.getStringAttribute('machine_filter'); } set machineFilter(value) { this._machineFilter = value; } resetMachineFilter() { this._machineFilter = undefined; } // Temporarily expose input value. Use with caution. get machineFilterInput() { return this._machineFilter; } get nodeCount() { return this.getNumberAttribute('node_count'); } set nodeCount(value) { this._nodeCount = value; } resetNodeCount() { this._nodeCount = undefined; } // Temporarily expose input value. Use with caution. get nodeCountInput() { return this._nodeCount; } get nodeLocation() { return this.getStringAttribute('node_location'); } set nodeLocation(value) { this._nodeLocation = value; } resetNodeLocation() { this._nodeLocation = undefined; } // Temporarily expose input value. Use with caution. get nodeLocationInput() { return this._nodeLocation; } get sharedDeploymentPolicy() { return this.getStringAttribute('shared_deployment_policy'); } set sharedDeploymentPolicy(value) { this._sharedDeploymentPolicy = value; } resetSharedDeploymentPolicy() { this._sharedDeploymentPolicy = undefined; } // Temporarily expose input value. Use with caution. get sharedDeploymentPolicyInput() { return this._sharedDeploymentPolicy; } } exports.EdgecontainerClusterControlPlaneLocalOutputReference = EdgecontainerClusterControlPlaneLocalOutputReference; _e = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneLocalOutputReference[_e] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneLocalOutputReference", version: "14.35.0" }; function edgecontainerClusterControlPlaneRemoteToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { node_location: cdktf.stringToTerraform(struct.nodeLocation), }; } function edgecontainerClusterControlPlaneRemoteToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { node_location: { value: cdktf.stringToHclTerraform(struct.nodeLocation), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterControlPlaneRemoteOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._nodeLocation !== undefined) { hasAnyValues = true; internalValueResult.nodeLocation = this._nodeLocation; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._nodeLocation = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._nodeLocation = value.nodeLocation; } } get nodeLocation() { return this.getStringAttribute('node_location'); } set nodeLocation(value) { this._nodeLocation = value; } resetNodeLocation() { this._nodeLocation = undefined; } // Temporarily expose input value. Use with caution. get nodeLocationInput() { return this._nodeLocation; } } exports.EdgecontainerClusterControlPlaneRemoteOutputReference = EdgecontainerClusterControlPlaneRemoteOutputReference; _f = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneRemoteOutputReference[_f] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneRemoteOutputReference", version: "14.35.0" }; function edgecontainerClusterControlPlaneToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { local: edgecontainerClusterControlPlaneLocalToTerraform(struct.local), remote: edgecontainerClusterControlPlaneRemoteToTerraform(struct.remote), }; } function edgecontainerClusterControlPlaneToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { local: { value: edgecontainerClusterControlPlaneLocalToHclTerraform(struct.local), isBlock: true, type: "list", storageClassType: "EdgecontainerClusterControlPlaneLocalList", }, remote: { value: edgecontainerClusterControlPlaneRemoteToHclTerraform(struct.remote), isBlock: true, type: "list", storageClassType: "EdgecontainerClusterControlPlaneRemoteList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterControlPlaneOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // local - computed: false, optional: true, required: false this._local = new EdgecontainerClusterControlPlaneLocalOutputReference(this, "local"); // remote - computed: false, optional: true, required: false this._remote = new EdgecontainerClusterControlPlaneRemoteOutputReference(this, "remote"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._local?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.local = this._local?.internalValue; } if (this._remote?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.remote = this._remote?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._local.internalValue = undefined; this._remote.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._local.internalValue = value.local; this._remote.internalValue = value.remote; } } get local() { return this._local; } putLocal(value) { this._local.internalValue = value; } resetLocal() { this._local.internalValue = undefined; } // Temporarily expose input value. Use with caution. get localInput() { return this._local.internalValue; } get remote() { return this._remote; } putRemote(value) { this._remote.internalValue = value; } resetRemote() { this._remote.internalValue = undefined; } // Temporarily expose input value. Use with caution. get remoteInput() { return this._remote.internalValue; } } exports.EdgecontainerClusterControlPlaneOutputReference = EdgecontainerClusterControlPlaneOutputReference; _g = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneOutputReference[_g] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneOutputReference", version: "14.35.0" }; function edgecontainerClusterControlPlaneEncryptionKmsStatusToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function edgecontainerClusterControlPlaneEncryptionKmsStatusToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference extends cdktf.ComplexObject { /** * @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, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // code - computed: true, optional: false, required: false get code() { return this.getNumberAttribute('code'); } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } } exports.EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference = EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference; _h = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference[_h] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference", version: "14.35.0" }; class EdgecontainerClusterControlPlaneEncryptionKmsStatusList extends cdktf.ComplexList { /** * @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, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EdgecontainerClusterControlPlaneEncryptionKmsStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.EdgecontainerClusterControlPlaneEncryptionKmsStatusList = EdgecontainerClusterControlPlaneEncryptionKmsStatusList; _j = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneEncryptionKmsStatusList[_j] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneEncryptionKmsStatusList", version: "14.35.0" }; function edgecontainerClusterControlPlaneEncryptionToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { kms_key: cdktf.stringToTerraform(struct.kmsKey), }; } function edgecontainerClusterControlPlaneEncryptionToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { kms_key: { value: cdktf.stringToHclTerraform(struct.kmsKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterControlPlaneEncryptionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // kms_status - computed: true, optional: false, required: false this._kmsStatus = new EdgecontainerClusterControlPlaneEncryptionKmsStatusList(this, "kms_status", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._kmsKey !== undefined) { hasAnyValues = true; internalValueResult.kmsKey = this._kmsKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKey = value.kmsKey; } } get kmsKey() { return this.getStringAttribute('kms_key'); } set kmsKey(value) { this._kmsKey = value; } resetKmsKey() { this._kmsKey = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyInput() { return this._kmsKey; } // kms_key_active_version - computed: true, optional: false, required: false get kmsKeyActiveVersion() { return this.getStringAttribute('kms_key_active_version'); } // kms_key_state - computed: true, optional: false, required: false get kmsKeyState() { return this.getStringAttribute('kms_key_state'); } get kmsStatus() { return this._kmsStatus; } } exports.EdgecontainerClusterControlPlaneEncryptionOutputReference = EdgecontainerClusterControlPlaneEncryptionOutputReference; _k = JSII_RTTI_SYMBOL_1; EdgecontainerClusterControlPlaneEncryptionOutputReference[_k] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterControlPlaneEncryptionOutputReference", version: "14.35.0" }; function edgecontainerClusterFleetToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { project: cdktf.stringToTerraform(struct.project), }; } function edgecontainerClusterFleetToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { project: { value: cdktf.stringToHclTerraform(struct.project), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterFleetOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._project !== undefined) { hasAnyValues = true; internalValueResult.project = this._project; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._project = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._project = value.project; } } // membership - computed: true, optional: false, required: false get membership() { return this.getStringAttribute('membership'); } get project() { return this.getStringAttribute('project'); } set project(value) { this._project = value; } // Temporarily expose input value. Use with caution. get projectInput() { return this._project; } } exports.EdgecontainerClusterFleetOutputReference = EdgecontainerClusterFleetOutputReference; _l = JSII_RTTI_SYMBOL_1; EdgecontainerClusterFleetOutputReference[_l] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterFleetOutputReference", version: "14.35.0" }; function edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { end_time: cdktf.stringToTerraform(struct.endTime), start_time: cdktf.stringToTerraform(struct.startTime), }; } function edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { end_time: { value: cdktf.stringToHclTerraform(struct.endTime), isBlock: false, type: "simple", storageClassType: "string", }, start_time: { value: cdktf.stringToHclTerraform(struct.startTime), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._endTime !== undefined) { hasAnyValues = true; internalValueResult.endTime = this._endTime; } if (this._startTime !== undefined) { hasAnyValues = true; internalValueResult.startTime = this._startTime; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._endTime = undefined; this._startTime = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._endTime = value.endTime; this._startTime = value.startTime; } } get endTime() { return this.getStringAttribute('end_time'); } set endTime(value) { this._endTime = value; } resetEndTime() { this._endTime = undefined; } // Temporarily expose input value. Use with caution. get endTimeInput() { return this._endTime; } get startTime() { return this.getStringAttribute('start_time'); } set startTime(value) { this._startTime = value; } resetStartTime() { this._startTime = undefined; } // Temporarily expose input value. Use with caution. get startTimeInput() { return this._startTime; } } exports.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference = EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference; _m = JSII_RTTI_SYMBOL_1; EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference[_m] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference", version: "14.35.0" }; function edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { id: cdktf.stringToTerraform(struct.id), window: edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToTerraform(struct.window), }; } function edgecontainerClusterMaintenancePolicyMaintenanceExclusionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { id: { value: cdktf.stringToHclTerraform(struct.id), isBlock: false, type: "simple", storageClassType: "string", }, window: { value: edgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowToHclTerraform(struct.window), isBlock: true, type: "list", storageClassType: "EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference extends cdktf.ComplexObject { /** * @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, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // window - computed: false, optional: true, required: false this._window = new EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsWindowOutputReference(this, "window"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._id !== undefined) { hasAnyValues = true; internalValueResult.id = this._id; } if (this._window?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.window = this._window?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._id = undefined; this._window.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._id = value.id; this._window.internalValue = value.window; } } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get window() { return this._window; } putWindow(value) { this._window.internalValue = value; } resetWindow() { this._window.internalValue = undefined; } // Temporarily expose input value. Use with caution. get windowInput() { return this._window.internalValue; } } exports.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference = EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference; _o = JSII_RTTI_SYMBOL_1; EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference[_o] = { fqn: "@cdktf/provider-google.edgecontainerCluster.EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsOutputReference", version: "14.35.0" }; class EdgecontainerClusterMaintenancePolicyMaintenanceExclusionsList extends cdktf.ComplexList { /** * @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, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new EdgecontainerClusterMainten