UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,057 lines 248 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContainerAttachedCluster = exports.ContainerAttachedClusterTimeoutsOutputReference = exports.containerAttachedClusterTimeoutsToHclTerraform = exports.containerAttachedClusterTimeoutsToTerraform = exports.ContainerAttachedClusterSecurityPostureConfigOutputReference = exports.containerAttachedClusterSecurityPostureConfigToHclTerraform = exports.containerAttachedClusterSecurityPostureConfigToTerraform = exports.ContainerAttachedClusterProxyConfigOutputReference = exports.containerAttachedClusterProxyConfigToHclTerraform = exports.containerAttachedClusterProxyConfigToTerraform = exports.ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference = exports.containerAttachedClusterProxyConfigKubernetesSecretToHclTerraform = exports.containerAttachedClusterProxyConfigKubernetesSecretToTerraform = exports.ContainerAttachedClusterOidcConfigOutputReference = exports.containerAttachedClusterOidcConfigToHclTerraform = exports.containerAttachedClusterOidcConfigToTerraform = exports.ContainerAttachedClusterMonitoringConfigOutputReference = exports.containerAttachedClusterMonitoringConfigToHclTerraform = exports.containerAttachedClusterMonitoringConfigToTerraform = exports.ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference = exports.containerAttachedClusterMonitoringConfigManagedPrometheusConfigToHclTerraform = exports.containerAttachedClusterMonitoringConfigManagedPrometheusConfigToTerraform = exports.ContainerAttachedClusterLoggingConfigOutputReference = exports.containerAttachedClusterLoggingConfigToHclTerraform = exports.containerAttachedClusterLoggingConfigToTerraform = exports.ContainerAttachedClusterLoggingConfigComponentConfigOutputReference = exports.containerAttachedClusterLoggingConfigComponentConfigToHclTerraform = exports.containerAttachedClusterLoggingConfigComponentConfigToTerraform = exports.ContainerAttachedClusterFleetOutputReference = exports.containerAttachedClusterFleetToHclTerraform = exports.containerAttachedClusterFleetToTerraform = exports.ContainerAttachedClusterBinaryAuthorizationOutputReference = exports.containerAttachedClusterBinaryAuthorizationToHclTerraform = exports.containerAttachedClusterBinaryAuthorizationToTerraform = exports.ContainerAttachedClusterAuthorizationOutputReference = exports.containerAttachedClusterAuthorizationToHclTerraform = exports.containerAttachedClusterAuthorizationToTerraform = exports.ContainerAttachedClusterWorkloadIdentityConfigList = exports.ContainerAttachedClusterWorkloadIdentityConfigOutputReference = exports.containerAttachedClusterWorkloadIdentityConfigToHclTerraform = exports.containerAttachedClusterWorkloadIdentityConfigToTerraform = exports.ContainerAttachedClusterErrorsList = exports.ContainerAttachedClusterErrorsOutputReference = exports.containerAttachedClusterErrorsToHclTerraform = exports.containerAttachedClusterErrorsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerAttachedClusterErrorsToTerraform(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.containerAttachedClusterErrorsToTerraform = containerAttachedClusterErrorsToTerraform; function containerAttachedClusterErrorsToHclTerraform(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.containerAttachedClusterErrorsToHclTerraform = containerAttachedClusterErrorsToHclTerraform; class ContainerAttachedClusterErrorsOutputReference 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; } } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } } exports.ContainerAttachedClusterErrorsOutputReference = ContainerAttachedClusterErrorsOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterErrorsOutputReference[_a] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterErrorsOutputReference", version: "14.12.0" }; class ContainerAttachedClusterErrorsList 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 ContainerAttachedClusterErrorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAttachedClusterErrorsList = ContainerAttachedClusterErrorsList; _b = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterErrorsList[_b] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterErrorsList", version: "14.12.0" }; function containerAttachedClusterWorkloadIdentityConfigToTerraform(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.containerAttachedClusterWorkloadIdentityConfigToTerraform = containerAttachedClusterWorkloadIdentityConfigToTerraform; function containerAttachedClusterWorkloadIdentityConfigToHclTerraform(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.containerAttachedClusterWorkloadIdentityConfigToHclTerraform = containerAttachedClusterWorkloadIdentityConfigToHclTerraform; class ContainerAttachedClusterWorkloadIdentityConfigOutputReference 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.ContainerAttachedClusterWorkloadIdentityConfigOutputReference = ContainerAttachedClusterWorkloadIdentityConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterWorkloadIdentityConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterWorkloadIdentityConfigOutputReference", version: "14.12.0" }; class ContainerAttachedClusterWorkloadIdentityConfigList 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 ContainerAttachedClusterWorkloadIdentityConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAttachedClusterWorkloadIdentityConfigList = ContainerAttachedClusterWorkloadIdentityConfigList; _d = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterWorkloadIdentityConfigList[_d] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterWorkloadIdentityConfigList", version: "14.12.0" }; function containerAttachedClusterAuthorizationToTerraform(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(cdktf.stringToTerraform, false)(struct.adminGroups), admin_users: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.adminUsers), }; } exports.containerAttachedClusterAuthorizationToTerraform = containerAttachedClusterAuthorizationToTerraform; function containerAttachedClusterAuthorizationToHclTerraform(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(cdktf.stringToHclTerraform, false)(struct.adminGroups), isBlock: false, type: "list", storageClassType: "stringList", }, admin_users: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.adminUsers), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterAuthorizationToHclTerraform = containerAttachedClusterAuthorizationToHclTerraform; class ContainerAttachedClusterAuthorizationOutputReference 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._adminGroups !== undefined) { hasAnyValues = true; internalValueResult.adminGroups = this._adminGroups; } if (this._adminUsers !== undefined) { hasAnyValues = true; internalValueResult.adminUsers = this._adminUsers; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._adminGroups = undefined; this._adminUsers = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adminGroups = value.adminGroups; this._adminUsers = value.adminUsers; } } get adminGroups() { return this.getListAttribute('admin_groups'); } set adminGroups(value) { this._adminGroups = value; } resetAdminGroups() { this._adminGroups = undefined; } // Temporarily expose input value. Use with caution. get adminGroupsInput() { return this._adminGroups; } get adminUsers() { return this.getListAttribute('admin_users'); } set adminUsers(value) { this._adminUsers = value; } resetAdminUsers() { this._adminUsers = undefined; } // Temporarily expose input value. Use with caution. get adminUsersInput() { return this._adminUsers; } } exports.ContainerAttachedClusterAuthorizationOutputReference = ContainerAttachedClusterAuthorizationOutputReference; _e = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterAuthorizationOutputReference[_e] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterAuthorizationOutputReference", version: "14.12.0" }; function containerAttachedClusterBinaryAuthorizationToTerraform(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 { evaluation_mode: cdktf.stringToTerraform(struct.evaluationMode), }; } exports.containerAttachedClusterBinaryAuthorizationToTerraform = containerAttachedClusterBinaryAuthorizationToTerraform; function containerAttachedClusterBinaryAuthorizationToHclTerraform(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 = { evaluation_mode: { value: cdktf.stringToHclTerraform(struct.evaluationMode), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterBinaryAuthorizationToHclTerraform = containerAttachedClusterBinaryAuthorizationToHclTerraform; class ContainerAttachedClusterBinaryAuthorizationOutputReference 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._evaluationMode !== undefined) { hasAnyValues = true; internalValueResult.evaluationMode = this._evaluationMode; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._evaluationMode = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._evaluationMode = value.evaluationMode; } } get evaluationMode() { return this.getStringAttribute('evaluation_mode'); } set evaluationMode(value) { this._evaluationMode = value; } resetEvaluationMode() { this._evaluationMode = undefined; } // Temporarily expose input value. Use with caution. get evaluationModeInput() { return this._evaluationMode; } } exports.ContainerAttachedClusterBinaryAuthorizationOutputReference = ContainerAttachedClusterBinaryAuthorizationOutputReference; _f = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterBinaryAuthorizationOutputReference[_f] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterBinaryAuthorizationOutputReference", version: "14.12.0" }; function containerAttachedClusterFleetToTerraform(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), }; } exports.containerAttachedClusterFleetToTerraform = containerAttachedClusterFleetToTerraform; function containerAttachedClusterFleetToHclTerraform(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)); } exports.containerAttachedClusterFleetToHclTerraform = containerAttachedClusterFleetToHclTerraform; class ContainerAttachedClusterFleetOutputReference 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.ContainerAttachedClusterFleetOutputReference = ContainerAttachedClusterFleetOutputReference; _g = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterFleetOutputReference[_g] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterFleetOutputReference", version: "14.12.0" }; function containerAttachedClusterLoggingConfigComponentConfigToTerraform(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 { enable_components: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.enableComponents), }; } exports.containerAttachedClusterLoggingConfigComponentConfigToTerraform = containerAttachedClusterLoggingConfigComponentConfigToTerraform; function containerAttachedClusterLoggingConfigComponentConfigToHclTerraform(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 = { enable_components: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.enableComponents), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterLoggingConfigComponentConfigToHclTerraform = containerAttachedClusterLoggingConfigComponentConfigToHclTerraform; class ContainerAttachedClusterLoggingConfigComponentConfigOutputReference 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._enableComponents !== undefined) { hasAnyValues = true; internalValueResult.enableComponents = this._enableComponents; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enableComponents = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enableComponents = value.enableComponents; } } get enableComponents() { return this.getListAttribute('enable_components'); } set enableComponents(value) { this._enableComponents = value; } resetEnableComponents() { this._enableComponents = undefined; } // Temporarily expose input value. Use with caution. get enableComponentsInput() { return this._enableComponents; } } exports.ContainerAttachedClusterLoggingConfigComponentConfigOutputReference = ContainerAttachedClusterLoggingConfigComponentConfigOutputReference; _h = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterLoggingConfigComponentConfigOutputReference[_h] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterLoggingConfigComponentConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterLoggingConfigToTerraform(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 { component_config: containerAttachedClusterLoggingConfigComponentConfigToTerraform(struct.componentConfig), }; } exports.containerAttachedClusterLoggingConfigToTerraform = containerAttachedClusterLoggingConfigToTerraform; function containerAttachedClusterLoggingConfigToHclTerraform(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 = { component_config: { value: containerAttachedClusterLoggingConfigComponentConfigToHclTerraform(struct.componentConfig), isBlock: true, type: "list", storageClassType: "ContainerAttachedClusterLoggingConfigComponentConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterLoggingConfigToHclTerraform = containerAttachedClusterLoggingConfigToHclTerraform; class ContainerAttachedClusterLoggingConfigOutputReference 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; // component_config - computed: false, optional: true, required: false this._componentConfig = new ContainerAttachedClusterLoggingConfigComponentConfigOutputReference(this, "component_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._componentConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.componentConfig = this._componentConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._componentConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._componentConfig.internalValue = value.componentConfig; } } get componentConfig() { return this._componentConfig; } putComponentConfig(value) { this._componentConfig.internalValue = value; } resetComponentConfig() { this._componentConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get componentConfigInput() { return this._componentConfig.internalValue; } } exports.ContainerAttachedClusterLoggingConfigOutputReference = ContainerAttachedClusterLoggingConfigOutputReference; _j = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterLoggingConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterLoggingConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterMonitoringConfigManagedPrometheusConfigToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), }; } exports.containerAttachedClusterMonitoringConfigManagedPrometheusConfigToTerraform = containerAttachedClusterMonitoringConfigManagedPrometheusConfigToTerraform; function containerAttachedClusterMonitoringConfigManagedPrometheusConfigToHclTerraform(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 = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterMonitoringConfigManagedPrometheusConfigToHclTerraform = containerAttachedClusterMonitoringConfigManagedPrometheusConfigToHclTerraform; class ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } } exports.ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference = ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference; _k = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference[_k] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterMonitoringConfigToTerraform(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 { managed_prometheus_config: containerAttachedClusterMonitoringConfigManagedPrometheusConfigToTerraform(struct.managedPrometheusConfig), }; } exports.containerAttachedClusterMonitoringConfigToTerraform = containerAttachedClusterMonitoringConfigToTerraform; function containerAttachedClusterMonitoringConfigToHclTerraform(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 = { managed_prometheus_config: { value: containerAttachedClusterMonitoringConfigManagedPrometheusConfigToHclTerraform(struct.managedPrometheusConfig), isBlock: true, type: "list", storageClassType: "ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterMonitoringConfigToHclTerraform = containerAttachedClusterMonitoringConfigToHclTerraform; class ContainerAttachedClusterMonitoringConfigOutputReference 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; // managed_prometheus_config - computed: false, optional: true, required: false this._managedPrometheusConfig = new ContainerAttachedClusterMonitoringConfigManagedPrometheusConfigOutputReference(this, "managed_prometheus_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._managedPrometheusConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.managedPrometheusConfig = this._managedPrometheusConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._managedPrometheusConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._managedPrometheusConfig.internalValue = value.managedPrometheusConfig; } } get managedPrometheusConfig() { return this._managedPrometheusConfig; } putManagedPrometheusConfig(value) { this._managedPrometheusConfig.internalValue = value; } resetManagedPrometheusConfig() { this._managedPrometheusConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get managedPrometheusConfigInput() { return this._managedPrometheusConfig.internalValue; } } exports.ContainerAttachedClusterMonitoringConfigOutputReference = ContainerAttachedClusterMonitoringConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterMonitoringConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterMonitoringConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterOidcConfigToTerraform(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 { issuer_url: cdktf.stringToTerraform(struct.issuerUrl), jwks: cdktf.stringToTerraform(struct.jwks), }; } exports.containerAttachedClusterOidcConfigToTerraform = containerAttachedClusterOidcConfigToTerraform; function containerAttachedClusterOidcConfigToHclTerraform(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 = { issuer_url: { value: cdktf.stringToHclTerraform(struct.issuerUrl), isBlock: false, type: "simple", storageClassType: "string", }, jwks: { value: cdktf.stringToHclTerraform(struct.jwks), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterOidcConfigToHclTerraform = containerAttachedClusterOidcConfigToHclTerraform; class ContainerAttachedClusterOidcConfigOutputReference 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._issuerUrl !== undefined) { hasAnyValues = true; internalValueResult.issuerUrl = this._issuerUrl; } if (this._jwks !== undefined) { hasAnyValues = true; internalValueResult.jwks = this._jwks; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._issuerUrl = undefined; this._jwks = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._issuerUrl = value.issuerUrl; this._jwks = value.jwks; } } get issuerUrl() { return this.getStringAttribute('issuer_url'); } set issuerUrl(value) { this._issuerUrl = value; } // Temporarily expose input value. Use with caution. get issuerUrlInput() { return this._issuerUrl; } get jwks() { return this.getStringAttribute('jwks'); } set jwks(value) { this._jwks = value; } resetJwks() { this._jwks = undefined; } // Temporarily expose input value. Use with caution. get jwksInput() { return this._jwks; } } exports.ContainerAttachedClusterOidcConfigOutputReference = ContainerAttachedClusterOidcConfigOutputReference; _m = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterOidcConfigOutputReference[_m] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterOidcConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterProxyConfigKubernetesSecretToTerraform(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 { name: cdktf.stringToTerraform(struct.name), namespace: cdktf.stringToTerraform(struct.namespace), }; } exports.containerAttachedClusterProxyConfigKubernetesSecretToTerraform = containerAttachedClusterProxyConfigKubernetesSecretToTerraform; function containerAttachedClusterProxyConfigKubernetesSecretToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, namespace: { value: cdktf.stringToHclTerraform(struct.namespace), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterProxyConfigKubernetesSecretToHclTerraform = containerAttachedClusterProxyConfigKubernetesSecretToHclTerraform; class ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._namespace !== undefined) { hasAnyValues = true; internalValueResult.namespace = this._namespace; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; this._namespace = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; this._namespace = value.namespace; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get namespace() { return this.getStringAttribute('namespace'); } set namespace(value) { this._namespace = value; } // Temporarily expose input value. Use with caution. get namespaceInput() { return this._namespace; } } exports.ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference = ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference; _o = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference[_o] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference", version: "14.12.0" }; function containerAttachedClusterProxyConfigToTerraform(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 { kubernetes_secret: containerAttachedClusterProxyConfigKubernetesSecretToTerraform(struct.kubernetesSecret), }; } exports.containerAttachedClusterProxyConfigToTerraform = containerAttachedClusterProxyConfigToTerraform; function containerAttachedClusterProxyConfigToHclTerraform(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 = { kubernetes_secret: { value: containerAttachedClusterProxyConfigKubernetesSecretToHclTerraform(struct.kubernetesSecret), isBlock: true, type: "list", storageClassType: "ContainerAttachedClusterProxyConfigKubernetesSecretList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterProxyConfigToHclTerraform = containerAttachedClusterProxyConfigToHclTerraform; class ContainerAttachedClusterProxyConfigOutputReference 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; // kubernetes_secret - computed: false, optional: true, required: false this._kubernetesSecret = new ContainerAttachedClusterProxyConfigKubernetesSecretOutputReference(this, "kubernetes_secret"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._kubernetesSecret?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.kubernetesSecret = this._kubernetesSecret?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kubernetesSecret.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kubernetesSecret.internalValue = value.kubernetesSecret; } } get kubernetesSecret() { return this._kubernetesSecret; } putKubernetesSecret(value) { this._kubernetesSecret.internalValue = value; } resetKubernetesSecret() { this._kubernetesSecret.internalValue = undefined; } // Temporarily expose input value. Use with caution. get kubernetesSecretInput() { return this._kubernetesSecret.internalValue; } } exports.ContainerAttachedClusterProxyConfigOutputReference = ContainerAttachedClusterProxyConfigOutputReference; _p = JSII_RTTI_SYMBOL_1; ContainerAttachedClusterProxyConfigOutputReference[_p] = { fqn: "@cdktf/provider-google.containerAttachedCluster.ContainerAttachedClusterProxyConfigOutputReference", version: "14.12.0" }; function containerAttachedClusterSecurityPostureConfigToTerraform(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 { vulnerability_mode: cdktf.stringToTerraform(struct.vulnerabilityMode), }; } exports.containerAttachedClusterSecurityPostureConfigToTerraform = containerAttachedClusterSecurityPostureConfigToTerraform; function containerAttachedClusterSecurityPostureConfigToHclTerraform(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 = { vulnerability_mode: { value: cdktf.stringToHclTerraform(struct.vulnerabilityMode), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAttachedClusterSecurityPostureConfigToHclTerraform = containerAttachedClusterSecurityPostureConfigToHclTerraform; class ContainerAttachedClusterSecurityPostureConfigOutputReference 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._vulnerabilityMode !== undefined) { hasAnyValues = true; internalValueResult.vulnerabilityMode = this._vulnerabilityMode; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._vulnerabilityMode = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._vulnerabilityMode = value.vulnerability