UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,039 lines 305 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContainerAzureCluster = exports.ContainerAzureClusterTimeoutsOutputReference = exports.containerAzureClusterTimeoutsToHclTerraform = exports.containerAzureClusterTimeoutsToTerraform = exports.ContainerAzureClusterNetworkingOutputReference = exports.containerAzureClusterNetworkingToHclTerraform = exports.containerAzureClusterNetworkingToTerraform = exports.ContainerAzureClusterFleetOutputReference = exports.containerAzureClusterFleetToHclTerraform = exports.containerAzureClusterFleetToTerraform = exports.ContainerAzureClusterControlPlaneOutputReference = exports.containerAzureClusterControlPlaneToHclTerraform = exports.containerAzureClusterControlPlaneToTerraform = exports.ContainerAzureClusterControlPlaneSshConfigOutputReference = exports.containerAzureClusterControlPlaneSshConfigToHclTerraform = exports.containerAzureClusterControlPlaneSshConfigToTerraform = exports.ContainerAzureClusterControlPlaneRootVolumeOutputReference = exports.containerAzureClusterControlPlaneRootVolumeToHclTerraform = exports.containerAzureClusterControlPlaneRootVolumeToTerraform = exports.ContainerAzureClusterControlPlaneReplicaPlacementsList = exports.ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference = exports.containerAzureClusterControlPlaneReplicaPlacementsToHclTerraform = exports.containerAzureClusterControlPlaneReplicaPlacementsToTerraform = exports.ContainerAzureClusterControlPlaneProxyConfigOutputReference = exports.containerAzureClusterControlPlaneProxyConfigToHclTerraform = exports.containerAzureClusterControlPlaneProxyConfigToTerraform = exports.ContainerAzureClusterControlPlaneMainVolumeOutputReference = exports.containerAzureClusterControlPlaneMainVolumeToHclTerraform = exports.containerAzureClusterControlPlaneMainVolumeToTerraform = exports.ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference = exports.containerAzureClusterControlPlaneDatabaseEncryptionToHclTerraform = exports.containerAzureClusterControlPlaneDatabaseEncryptionToTerraform = exports.ContainerAzureClusterAzureServicesAuthenticationOutputReference = exports.containerAzureClusterAzureServicesAuthenticationToHclTerraform = exports.containerAzureClusterAzureServicesAuthenticationToTerraform = exports.ContainerAzureClusterAuthorizationOutputReference = exports.containerAzureClusterAuthorizationToHclTerraform = exports.containerAzureClusterAuthorizationToTerraform = exports.ContainerAzureClusterAuthorizationAdminUsersList = exports.ContainerAzureClusterAuthorizationAdminUsersOutputReference = exports.containerAzureClusterAuthorizationAdminUsersToHclTerraform = exports.containerAzureClusterAuthorizationAdminUsersToTerraform = exports.ContainerAzureClusterAuthorizationAdminGroupsList = exports.ContainerAzureClusterAuthorizationAdminGroupsOutputReference = exports.containerAzureClusterAuthorizationAdminGroupsToHclTerraform = exports.containerAzureClusterAuthorizationAdminGroupsToTerraform = exports.ContainerAzureClusterWorkloadIdentityConfigList = exports.ContainerAzureClusterWorkloadIdentityConfigOutputReference = exports.containerAzureClusterWorkloadIdentityConfigToHclTerraform = exports.containerAzureClusterWorkloadIdentityConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerAzureClusterWorkloadIdentityConfigToTerraform(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 {}; } exports.containerAzureClusterWorkloadIdentityConfigToTerraform = containerAzureClusterWorkloadIdentityConfigToTerraform; function containerAzureClusterWorkloadIdentityConfigToHclTerraform(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; } exports.containerAzureClusterWorkloadIdentityConfigToHclTerraform = containerAzureClusterWorkloadIdentityConfigToHclTerraform; class ContainerAzureClusterWorkloadIdentityConfigOutputReference 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; } } // identity_provider - computed: true, optional: false, required: false get identityProvider() { return this.getStringAttribute('identity_provider'); } // issuer_uri - computed: true, optional: false, required: false get issuerUri() { return this.getStringAttribute('issuer_uri'); } // workload_pool - computed: true, optional: false, required: false get workloadPool() { return this.getStringAttribute('workload_pool'); } } exports.ContainerAzureClusterWorkloadIdentityConfigOutputReference = ContainerAzureClusterWorkloadIdentityConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerAzureClusterWorkloadIdentityConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterWorkloadIdentityConfigOutputReference", version: "14.12.0" }; class ContainerAzureClusterWorkloadIdentityConfigList 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 ContainerAzureClusterWorkloadIdentityConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAzureClusterWorkloadIdentityConfigList = ContainerAzureClusterWorkloadIdentityConfigList; _b = JSII_RTTI_SYMBOL_1; ContainerAzureClusterWorkloadIdentityConfigList[_b] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterWorkloadIdentityConfigList", version: "14.12.0" }; function containerAzureClusterAuthorizationAdminGroupsToTerraform(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 { group: cdktf.stringToTerraform(struct.group), }; } exports.containerAzureClusterAuthorizationAdminGroupsToTerraform = containerAzureClusterAuthorizationAdminGroupsToTerraform; function containerAzureClusterAuthorizationAdminGroupsToHclTerraform(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 = { group: { value: cdktf.stringToHclTerraform(struct.group), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterAuthorizationAdminGroupsToHclTerraform = containerAzureClusterAuthorizationAdminGroupsToHclTerraform; class ContainerAzureClusterAuthorizationAdminGroupsOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._group !== undefined) { hasAnyValues = true; internalValueResult.group = this._group; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._group = 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._group = value.group; } } get group() { return this.getStringAttribute('group'); } set group(value) { this._group = value; } // Temporarily expose input value. Use with caution. get groupInput() { return this._group; } } exports.ContainerAzureClusterAuthorizationAdminGroupsOutputReference = ContainerAzureClusterAuthorizationAdminGroupsOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAuthorizationAdminGroupsOutputReference[_c] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAuthorizationAdminGroupsOutputReference", version: "14.12.0" }; class ContainerAzureClusterAuthorizationAdminGroupsList 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 ContainerAzureClusterAuthorizationAdminGroupsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAzureClusterAuthorizationAdminGroupsList = ContainerAzureClusterAuthorizationAdminGroupsList; _d = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAuthorizationAdminGroupsList[_d] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAuthorizationAdminGroupsList", version: "14.12.0" }; function containerAzureClusterAuthorizationAdminUsersToTerraform(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), }; } exports.containerAzureClusterAuthorizationAdminUsersToTerraform = containerAzureClusterAuthorizationAdminUsersToTerraform; function containerAzureClusterAuthorizationAdminUsersToHclTerraform(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)); } exports.containerAzureClusterAuthorizationAdminUsersToHclTerraform = containerAzureClusterAuthorizationAdminUsersToHclTerraform; class ContainerAzureClusterAuthorizationAdminUsersOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } 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.resolvableValue = undefined; this._username = 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._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.ContainerAzureClusterAuthorizationAdminUsersOutputReference = ContainerAzureClusterAuthorizationAdminUsersOutputReference; _e = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAuthorizationAdminUsersOutputReference[_e] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAuthorizationAdminUsersOutputReference", version: "14.12.0" }; class ContainerAzureClusterAuthorizationAdminUsersList 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 ContainerAzureClusterAuthorizationAdminUsersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAzureClusterAuthorizationAdminUsersList = ContainerAzureClusterAuthorizationAdminUsersList; _f = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAuthorizationAdminUsersList[_f] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAuthorizationAdminUsersList", version: "14.12.0" }; function containerAzureClusterAuthorizationToTerraform(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_groups: cdktf.listMapper(containerAzureClusterAuthorizationAdminGroupsToTerraform, true)(struct.adminGroups), admin_users: cdktf.listMapper(containerAzureClusterAuthorizationAdminUsersToTerraform, true)(struct.adminUsers), }; } exports.containerAzureClusterAuthorizationToTerraform = containerAzureClusterAuthorizationToTerraform; function containerAzureClusterAuthorizationToHclTerraform(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_groups: { value: cdktf.listMapperHcl(containerAzureClusterAuthorizationAdminGroupsToHclTerraform, true)(struct.adminGroups), isBlock: true, type: "list", storageClassType: "ContainerAzureClusterAuthorizationAdminGroupsList", }, admin_users: { value: cdktf.listMapperHcl(containerAzureClusterAuthorizationAdminUsersToHclTerraform, true)(struct.adminUsers), isBlock: true, type: "list", storageClassType: "ContainerAzureClusterAuthorizationAdminUsersList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterAuthorizationToHclTerraform = containerAzureClusterAuthorizationToHclTerraform; class ContainerAzureClusterAuthorizationOutputReference 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_groups - computed: false, optional: true, required: false this._adminGroups = new ContainerAzureClusterAuthorizationAdminGroupsList(this, "admin_groups", false); // admin_users - computed: false, optional: false, required: true this._adminUsers = new ContainerAzureClusterAuthorizationAdminUsersList(this, "admin_users", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._adminGroups?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.adminGroups = this._adminGroups?.internalValue; } 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._adminGroups.internalValue = undefined; this._adminUsers.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adminGroups.internalValue = value.adminGroups; this._adminUsers.internalValue = value.adminUsers; } } get adminGroups() { return this._adminGroups; } putAdminGroups(value) { this._adminGroups.internalValue = value; } resetAdminGroups() { this._adminGroups.internalValue = undefined; } // Temporarily expose input value. Use with caution. get adminGroupsInput() { return this._adminGroups.internalValue; } 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.ContainerAzureClusterAuthorizationOutputReference = ContainerAzureClusterAuthorizationOutputReference; _g = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAuthorizationOutputReference[_g] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAuthorizationOutputReference", version: "14.12.0" }; function containerAzureClusterAzureServicesAuthenticationToTerraform(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 { application_id: cdktf.stringToTerraform(struct.applicationId), tenant_id: cdktf.stringToTerraform(struct.tenantId), }; } exports.containerAzureClusterAzureServicesAuthenticationToTerraform = containerAzureClusterAzureServicesAuthenticationToTerraform; function containerAzureClusterAzureServicesAuthenticationToHclTerraform(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 = { application_id: { value: cdktf.stringToHclTerraform(struct.applicationId), isBlock: false, type: "simple", storageClassType: "string", }, tenant_id: { value: cdktf.stringToHclTerraform(struct.tenantId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterAzureServicesAuthenticationToHclTerraform = containerAzureClusterAzureServicesAuthenticationToHclTerraform; class ContainerAzureClusterAzureServicesAuthenticationOutputReference 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._applicationId !== undefined) { hasAnyValues = true; internalValueResult.applicationId = this._applicationId; } if (this._tenantId !== undefined) { hasAnyValues = true; internalValueResult.tenantId = this._tenantId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._applicationId = undefined; this._tenantId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._applicationId = value.applicationId; this._tenantId = value.tenantId; } } get applicationId() { return this.getStringAttribute('application_id'); } set applicationId(value) { this._applicationId = value; } // Temporarily expose input value. Use with caution. get applicationIdInput() { return this._applicationId; } get tenantId() { return this.getStringAttribute('tenant_id'); } set tenantId(value) { this._tenantId = value; } // Temporarily expose input value. Use with caution. get tenantIdInput() { return this._tenantId; } } exports.ContainerAzureClusterAzureServicesAuthenticationOutputReference = ContainerAzureClusterAzureServicesAuthenticationOutputReference; _h = JSII_RTTI_SYMBOL_1; ContainerAzureClusterAzureServicesAuthenticationOutputReference[_h] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterAzureServicesAuthenticationOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneDatabaseEncryptionToTerraform(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 { key_id: cdktf.stringToTerraform(struct.keyId), }; } exports.containerAzureClusterControlPlaneDatabaseEncryptionToTerraform = containerAzureClusterControlPlaneDatabaseEncryptionToTerraform; function containerAzureClusterControlPlaneDatabaseEncryptionToHclTerraform(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 = { key_id: { value: cdktf.stringToHclTerraform(struct.keyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneDatabaseEncryptionToHclTerraform = containerAzureClusterControlPlaneDatabaseEncryptionToHclTerraform; class ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference 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._keyId !== undefined) { hasAnyValues = true; internalValueResult.keyId = this._keyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._keyId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._keyId = value.keyId; } } get keyId() { return this.getStringAttribute('key_id'); } set keyId(value) { this._keyId = value; } // Temporarily expose input value. Use with caution. get keyIdInput() { return this._keyId; } } exports.ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference = ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference; _j = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference[_j] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneDatabaseEncryptionOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneMainVolumeToTerraform(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 { size_gib: cdktf.numberToTerraform(struct.sizeGib), }; } exports.containerAzureClusterControlPlaneMainVolumeToTerraform = containerAzureClusterControlPlaneMainVolumeToTerraform; function containerAzureClusterControlPlaneMainVolumeToHclTerraform(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 = { size_gib: { value: cdktf.numberToHclTerraform(struct.sizeGib), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneMainVolumeToHclTerraform = containerAzureClusterControlPlaneMainVolumeToHclTerraform; class ContainerAzureClusterControlPlaneMainVolumeOutputReference 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._sizeGib !== undefined) { hasAnyValues = true; internalValueResult.sizeGib = this._sizeGib; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._sizeGib = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._sizeGib = value.sizeGib; } } get sizeGib() { return this.getNumberAttribute('size_gib'); } set sizeGib(value) { this._sizeGib = value; } resetSizeGib() { this._sizeGib = undefined; } // Temporarily expose input value. Use with caution. get sizeGibInput() { return this._sizeGib; } } exports.ContainerAzureClusterControlPlaneMainVolumeOutputReference = ContainerAzureClusterControlPlaneMainVolumeOutputReference; _k = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneMainVolumeOutputReference[_k] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneMainVolumeOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneProxyConfigToTerraform(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 { resource_group_id: cdktf.stringToTerraform(struct.resourceGroupId), secret_id: cdktf.stringToTerraform(struct.secretId), }; } exports.containerAzureClusterControlPlaneProxyConfigToTerraform = containerAzureClusterControlPlaneProxyConfigToTerraform; function containerAzureClusterControlPlaneProxyConfigToHclTerraform(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 = { resource_group_id: { value: cdktf.stringToHclTerraform(struct.resourceGroupId), isBlock: false, type: "simple", storageClassType: "string", }, secret_id: { value: cdktf.stringToHclTerraform(struct.secretId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneProxyConfigToHclTerraform = containerAzureClusterControlPlaneProxyConfigToHclTerraform; class ContainerAzureClusterControlPlaneProxyConfigOutputReference 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._resourceGroupId !== undefined) { hasAnyValues = true; internalValueResult.resourceGroupId = this._resourceGroupId; } if (this._secretId !== undefined) { hasAnyValues = true; internalValueResult.secretId = this._secretId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._resourceGroupId = undefined; this._secretId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._resourceGroupId = value.resourceGroupId; this._secretId = value.secretId; } } get resourceGroupId() { return this.getStringAttribute('resource_group_id'); } set resourceGroupId(value) { this._resourceGroupId = value; } // Temporarily expose input value. Use with caution. get resourceGroupIdInput() { return this._resourceGroupId; } get secretId() { return this.getStringAttribute('secret_id'); } set secretId(value) { this._secretId = value; } // Temporarily expose input value. Use with caution. get secretIdInput() { return this._secretId; } } exports.ContainerAzureClusterControlPlaneProxyConfigOutputReference = ContainerAzureClusterControlPlaneProxyConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneProxyConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneProxyConfigOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneReplicaPlacementsToTerraform(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 { azure_availability_zone: cdktf.stringToTerraform(struct.azureAvailabilityZone), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.containerAzureClusterControlPlaneReplicaPlacementsToTerraform = containerAzureClusterControlPlaneReplicaPlacementsToTerraform; function containerAzureClusterControlPlaneReplicaPlacementsToHclTerraform(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 = { azure_availability_zone: { value: cdktf.stringToHclTerraform(struct.azureAvailabilityZone), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneReplicaPlacementsToHclTerraform = containerAzureClusterControlPlaneReplicaPlacementsToHclTerraform; class ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._azureAvailabilityZone !== undefined) { hasAnyValues = true; internalValueResult.azureAvailabilityZone = this._azureAvailabilityZone; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._azureAvailabilityZone = undefined; this._subnetId = 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._azureAvailabilityZone = value.azureAvailabilityZone; this._subnetId = value.subnetId; } } get azureAvailabilityZone() { return this.getStringAttribute('azure_availability_zone'); } set azureAvailabilityZone(value) { this._azureAvailabilityZone = value; } // Temporarily expose input value. Use with caution. get azureAvailabilityZoneInput() { return this._azureAvailabilityZone; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference = ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference; _m = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference[_m] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference", version: "14.12.0" }; class ContainerAzureClusterControlPlaneReplicaPlacementsList 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 ContainerAzureClusterControlPlaneReplicaPlacementsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAzureClusterControlPlaneReplicaPlacementsList = ContainerAzureClusterControlPlaneReplicaPlacementsList; _o = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneReplicaPlacementsList[_o] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneReplicaPlacementsList", version: "14.12.0" }; function containerAzureClusterControlPlaneRootVolumeToTerraform(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 { size_gib: cdktf.numberToTerraform(struct.sizeGib), }; } exports.containerAzureClusterControlPlaneRootVolumeToTerraform = containerAzureClusterControlPlaneRootVolumeToTerraform; function containerAzureClusterControlPlaneRootVolumeToHclTerraform(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 = { size_gib: { value: cdktf.numberToHclTerraform(struct.sizeGib), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneRootVolumeToHclTerraform = containerAzureClusterControlPlaneRootVolumeToHclTerraform; class ContainerAzureClusterControlPlaneRootVolumeOutputReference 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._sizeGib !== undefined) { hasAnyValues = true; internalValueResult.sizeGib = this._sizeGib; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._sizeGib = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._sizeGib = value.sizeGib; } } get sizeGib() { return this.getNumberAttribute('size_gib'); } set sizeGib(value) { this._sizeGib = value; } resetSizeGib() { this._sizeGib = undefined; } // Temporarily expose input value. Use with caution. get sizeGibInput() { return this._sizeGib; } } exports.ContainerAzureClusterControlPlaneRootVolumeOutputReference = ContainerAzureClusterControlPlaneRootVolumeOutputReference; _p = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneRootVolumeOutputReference[_p] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneRootVolumeOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneSshConfigToTerraform(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 { authorized_key: cdktf.stringToTerraform(struct.authorizedKey), }; } exports.containerAzureClusterControlPlaneSshConfigToTerraform = containerAzureClusterControlPlaneSshConfigToTerraform; function containerAzureClusterControlPlaneSshConfigToHclTerraform(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 = { authorized_key: { value: cdktf.stringToHclTerraform(struct.authorizedKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAzureClusterControlPlaneSshConfigToHclTerraform = containerAzureClusterControlPlaneSshConfigToHclTerraform; class ContainerAzureClusterControlPlaneSshConfigOutputReference 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._authorizedKey !== undefined) { hasAnyValues = true; internalValueResult.authorizedKey = this._authorizedKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._authorizedKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._authorizedKey = value.authorizedKey; } } get authorizedKey() { return this.getStringAttribute('authorized_key'); } set authorizedKey(value) { this._authorizedKey = value; } // Temporarily expose input value. Use with caution. get authorizedKeyInput() { return this._authorizedKey; } } exports.ContainerAzureClusterControlPlaneSshConfigOutputReference = ContainerAzureClusterControlPlaneSshConfigOutputReference; _q = JSII_RTTI_SYMBOL_1; ContainerAzureClusterControlPlaneSshConfigOutputReference[_q] = { fqn: "@cdktf/provider-google.containerAzureCluster.ContainerAzureClusterControlPlaneSshConfigOutputReference", version: "14.12.0" }; function containerAzureClusterControlPlaneToTerraform(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 { subnet_id: cdktf.stringToTerraform(struct.subnetId), tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.tags), version: cdktf.stringToTerraform(struct.version), vm_size: cdktf.stringToTerraform(struct.vmSize), database_encryption: containerAzureClusterControlPlaneDatabaseEncryptionToTerraform(struct.databaseEncryption), main_volume: containerAzureClusterControlPlaneMainVolumeToTerraform(struct.mainVolume), proxy_config: containerAzureClusterControlPlaneProxyConfigToTerraform(struct.proxyConfig), replica_placements: cdktf.listMapper(containerAzureClusterControlPlaneRep