UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,018 lines (1,017 loc) 220 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; Object.defineProperty(exports, "__esModule", { value: true }); exports.VertexAiEndpoint = exports.VertexAiEndpointTimeoutsOutputReference = exports.VertexAiEndpointPrivateServiceConnectConfigOutputReference = exports.VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference = exports.VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference = exports.VertexAiEndpointEncryptionSpecOutputReference = exports.VertexAiEndpointDeployedModelsList = exports.VertexAiEndpointDeployedModelsOutputReference = exports.VertexAiEndpointDeployedModelsPrivateEndpointsList = exports.VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference = exports.VertexAiEndpointDeployedModelsDedicatedResourcesList = exports.VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference = exports.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList = exports.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference = exports.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList = exports.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference = exports.VertexAiEndpointDeployedModelsAutomaticResourcesList = exports.VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference = void 0; exports.vertexAiEndpointDeployedModelsAutomaticResourcesToTerraform = vertexAiEndpointDeployedModelsAutomaticResourcesToTerraform; exports.vertexAiEndpointDeployedModelsAutomaticResourcesToHclTerraform = vertexAiEndpointDeployedModelsAutomaticResourcesToHclTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToHclTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToHclTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToHclTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToHclTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesToTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesToTerraform; exports.vertexAiEndpointDeployedModelsDedicatedResourcesToHclTerraform = vertexAiEndpointDeployedModelsDedicatedResourcesToHclTerraform; exports.vertexAiEndpointDeployedModelsPrivateEndpointsToTerraform = vertexAiEndpointDeployedModelsPrivateEndpointsToTerraform; exports.vertexAiEndpointDeployedModelsPrivateEndpointsToHclTerraform = vertexAiEndpointDeployedModelsPrivateEndpointsToHclTerraform; exports.vertexAiEndpointDeployedModelsToTerraform = vertexAiEndpointDeployedModelsToTerraform; exports.vertexAiEndpointDeployedModelsToHclTerraform = vertexAiEndpointDeployedModelsToHclTerraform; exports.vertexAiEndpointEncryptionSpecToTerraform = vertexAiEndpointEncryptionSpecToTerraform; exports.vertexAiEndpointEncryptionSpecToHclTerraform = vertexAiEndpointEncryptionSpecToHclTerraform; exports.vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToTerraform = vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToTerraform; exports.vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToHclTerraform = vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToHclTerraform; exports.vertexAiEndpointPredictRequestResponseLoggingConfigToTerraform = vertexAiEndpointPredictRequestResponseLoggingConfigToTerraform; exports.vertexAiEndpointPredictRequestResponseLoggingConfigToHclTerraform = vertexAiEndpointPredictRequestResponseLoggingConfigToHclTerraform; exports.vertexAiEndpointPrivateServiceConnectConfigToTerraform = vertexAiEndpointPrivateServiceConnectConfigToTerraform; exports.vertexAiEndpointPrivateServiceConnectConfigToHclTerraform = vertexAiEndpointPrivateServiceConnectConfigToHclTerraform; exports.vertexAiEndpointTimeoutsToTerraform = vertexAiEndpointTimeoutsToTerraform; exports.vertexAiEndpointTimeoutsToHclTerraform = vertexAiEndpointTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function vertexAiEndpointDeployedModelsAutomaticResourcesToTerraform(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 vertexAiEndpointDeployedModelsAutomaticResourcesToHclTerraform(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 VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference 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; } } // max_replica_count - computed: true, optional: false, required: false get maxReplicaCount() { return this.getNumberAttribute('max_replica_count'); } // min_replica_count - computed: true, optional: false, required: false get minReplicaCount() { return this.getNumberAttribute('min_replica_count'); } } exports.VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference = VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference; _a = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference[_a] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsAutomaticResourcesList 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 VertexAiEndpointDeployedModelsAutomaticResourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsAutomaticResourcesList = VertexAiEndpointDeployedModelsAutomaticResourcesList; _b = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsAutomaticResourcesList[_b] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsAutomaticResourcesList", version: "14.35.1" }; function vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToTerraform(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 vertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsToHclTerraform(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 VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference 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; } } // metric_name - computed: true, optional: false, required: false get metricName() { return this.getStringAttribute('metric_name'); } // target - computed: true, optional: false, required: false get target() { return this.getNumberAttribute('target'); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference = VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference; _c = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference[_c] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList 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 VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList = VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList; _d = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList[_d] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList", version: "14.35.1" }; function vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToTerraform(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 vertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecToHclTerraform(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 VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference 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; } } // accelerator_count - computed: true, optional: false, required: false get acceleratorCount() { return this.getNumberAttribute('accelerator_count'); } // accelerator_type - computed: true, optional: false, required: false get acceleratorType() { return this.getStringAttribute('accelerator_type'); } // machine_type - computed: true, optional: false, required: false get machineType() { return this.getStringAttribute('machine_type'); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference = VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference; _e = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference[_e] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList 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 VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList = VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList; _f = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList[_f] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList", version: "14.35.1" }; function vertexAiEndpointDeployedModelsDedicatedResourcesToTerraform(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 vertexAiEndpointDeployedModelsDedicatedResourcesToHclTerraform(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 VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference 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; // autoscaling_metric_specs - computed: true, optional: false, required: false this._autoscalingMetricSpecs = new VertexAiEndpointDeployedModelsDedicatedResourcesAutoscalingMetricSpecsList(this, "autoscaling_metric_specs", false); // machine_spec - computed: true, optional: false, required: false this._machineSpec = new VertexAiEndpointDeployedModelsDedicatedResourcesMachineSpecList(this, "machine_spec", 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; } } get autoscalingMetricSpecs() { return this._autoscalingMetricSpecs; } get machineSpec() { return this._machineSpec; } // max_replica_count - computed: true, optional: false, required: false get maxReplicaCount() { return this.getNumberAttribute('max_replica_count'); } // min_replica_count - computed: true, optional: false, required: false get minReplicaCount() { return this.getNumberAttribute('min_replica_count'); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference = VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference; _g = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference[_g] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsDedicatedResourcesList 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 VertexAiEndpointDeployedModelsDedicatedResourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsDedicatedResourcesList = VertexAiEndpointDeployedModelsDedicatedResourcesList; _h = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsDedicatedResourcesList[_h] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsDedicatedResourcesList", version: "14.35.1" }; function vertexAiEndpointDeployedModelsPrivateEndpointsToTerraform(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 vertexAiEndpointDeployedModelsPrivateEndpointsToHclTerraform(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 VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference 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; } } // explain_http_uri - computed: true, optional: false, required: false get explainHttpUri() { return this.getStringAttribute('explain_http_uri'); } // health_http_uri - computed: true, optional: false, required: false get healthHttpUri() { return this.getStringAttribute('health_http_uri'); } // predict_http_uri - computed: true, optional: false, required: false get predictHttpUri() { return this.getStringAttribute('predict_http_uri'); } // service_attachment - computed: true, optional: false, required: false get serviceAttachment() { return this.getStringAttribute('service_attachment'); } } exports.VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference = VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference; _j = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference[_j] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsPrivateEndpointsList 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 VertexAiEndpointDeployedModelsPrivateEndpointsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsPrivateEndpointsList = VertexAiEndpointDeployedModelsPrivateEndpointsList; _k = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsPrivateEndpointsList[_k] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsPrivateEndpointsList", version: "14.35.1" }; function vertexAiEndpointDeployedModelsToTerraform(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 vertexAiEndpointDeployedModelsToHclTerraform(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 VertexAiEndpointDeployedModelsOutputReference 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; // automatic_resources - computed: true, optional: false, required: false this._automaticResources = new VertexAiEndpointDeployedModelsAutomaticResourcesList(this, "automatic_resources", false); // dedicated_resources - computed: true, optional: false, required: false this._dedicatedResources = new VertexAiEndpointDeployedModelsDedicatedResourcesList(this, "dedicated_resources", false); // private_endpoints - computed: true, optional: false, required: false this._privateEndpoints = new VertexAiEndpointDeployedModelsPrivateEndpointsList(this, "private_endpoints", 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; } } get automaticResources() { return this._automaticResources; } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } get dedicatedResources() { return this._dedicatedResources; } // display_name - computed: true, optional: false, required: false get displayName() { return this.getStringAttribute('display_name'); } // enable_access_logging - computed: true, optional: false, required: false get enableAccessLogging() { return this.getBooleanAttribute('enable_access_logging'); } // enable_container_logging - computed: true, optional: false, required: false get enableContainerLogging() { return this.getBooleanAttribute('enable_container_logging'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // model - computed: true, optional: false, required: false get model() { return this.getStringAttribute('model'); } // model_version_id - computed: true, optional: false, required: false get modelVersionId() { return this.getStringAttribute('model_version_id'); } get privateEndpoints() { return this._privateEndpoints; } // service_account - computed: true, optional: false, required: false get serviceAccount() { return this.getStringAttribute('service_account'); } // shared_resources - computed: true, optional: false, required: false get sharedResources() { return this.getStringAttribute('shared_resources'); } } exports.VertexAiEndpointDeployedModelsOutputReference = VertexAiEndpointDeployedModelsOutputReference; _l = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsOutputReference[_l] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsOutputReference", version: "14.35.1" }; class VertexAiEndpointDeployedModelsList 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 VertexAiEndpointDeployedModelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.VertexAiEndpointDeployedModelsList = VertexAiEndpointDeployedModelsList; _m = JSII_RTTI_SYMBOL_1; VertexAiEndpointDeployedModelsList[_m] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointDeployedModelsList", version: "14.35.1" }; function vertexAiEndpointEncryptionSpecToTerraform(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_name: cdktf.stringToTerraform(struct.kmsKeyName), }; } function vertexAiEndpointEncryptionSpecToHclTerraform(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_name: { value: cdktf.stringToHclTerraform(struct.kmsKeyName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class VertexAiEndpointEncryptionSpecOutputReference 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._kmsKeyName !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyName = this._kmsKeyName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyName = value.kmsKeyName; } } get kmsKeyName() { return this.getStringAttribute('kms_key_name'); } set kmsKeyName(value) { this._kmsKeyName = value; } // Temporarily expose input value. Use with caution. get kmsKeyNameInput() { return this._kmsKeyName; } } exports.VertexAiEndpointEncryptionSpecOutputReference = VertexAiEndpointEncryptionSpecOutputReference; _o = JSII_RTTI_SYMBOL_1; VertexAiEndpointEncryptionSpecOutputReference[_o] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointEncryptionSpecOutputReference", version: "14.35.1" }; function vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToTerraform(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 { output_uri: cdktf.stringToTerraform(struct.outputUri), }; } function vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToHclTerraform(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 = { output_uri: { value: cdktf.stringToHclTerraform(struct.outputUri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference 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._outputUri !== undefined) { hasAnyValues = true; internalValueResult.outputUri = this._outputUri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._outputUri = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._outputUri = value.outputUri; } } get outputUri() { return this.getStringAttribute('output_uri'); } set outputUri(value) { this._outputUri = value; } resetOutputUri() { this._outputUri = undefined; } // Temporarily expose input value. Use with caution. get outputUriInput() { return this._outputUri; } } exports.VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference = VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference; _p = JSII_RTTI_SYMBOL_1; VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference[_p] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference", version: "14.35.1" }; function vertexAiEndpointPredictRequestResponseLoggingConfigToTerraform(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), sampling_rate: cdktf.numberToTerraform(struct.samplingRate), bigquery_destination: vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToTerraform(struct.bigqueryDestination), }; } function vertexAiEndpointPredictRequestResponseLoggingConfigToHclTerraform(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", }, sampling_rate: { value: cdktf.numberToHclTerraform(struct.samplingRate), isBlock: false, type: "simple", storageClassType: "number", }, bigquery_destination: { value: vertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationToHclTerraform(struct.bigqueryDestination), isBlock: true, type: "list", storageClassType: "VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference 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; // bigquery_destination - computed: false, optional: true, required: false this._bigqueryDestination = new VertexAiEndpointPredictRequestResponseLoggingConfigBigqueryDestinationOutputReference(this, "bigquery_destination"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._samplingRate !== undefined) { hasAnyValues = true; internalValueResult.samplingRate = this._samplingRate; } if (this._bigqueryDestination?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.bigqueryDestination = this._bigqueryDestination?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._samplingRate = undefined; this._bigqueryDestination.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._samplingRate = value.samplingRate; this._bigqueryDestination.internalValue = value.bigqueryDestination; } } 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; } get samplingRate() { return this.getNumberAttribute('sampling_rate'); } set samplingRate(value) { this._samplingRate = value; } resetSamplingRate() { this._samplingRate = undefined; } // Temporarily expose input value. Use with caution. get samplingRateInput() { return this._samplingRate; } get bigqueryDestination() { return this._bigqueryDestination; } putBigqueryDestination(value) { this._bigqueryDestination.internalValue = value; } resetBigqueryDestination() { this._bigqueryDestination.internalValue = undefined; } // Temporarily expose input value. Use with caution. get bigqueryDestinationInput() { return this._bigqueryDestination.internalValue; } } exports.VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference = VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference; _q = JSII_RTTI_SYMBOL_1; VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference[_q] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointPredictRequestResponseLoggingConfigOutputReference", version: "14.35.1" }; function vertexAiEndpointPrivateServiceConnectConfigToTerraform(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_private_service_connect: cdktf.booleanToTerraform(struct.enablePrivateServiceConnect), enable_secure_private_service_connect: cdktf.booleanToTerraform(struct.enableSecurePrivateServiceConnect), project_allowlist: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.projectAllowlist), }; } function vertexAiEndpointPrivateServiceConnectConfigToHclTerraform(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_private_service_connect: { value: cdktf.booleanToHclTerraform(struct.enablePrivateServiceConnect), isBlock: false, type: "simple", storageClassType: "boolean", }, enable_secure_private_service_connect: { value: cdktf.booleanToHclTerraform(struct.enableSecurePrivateServiceConnect), isBlock: false, type: "simple", storageClassType: "boolean", }, project_allowlist: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.projectAllowlist), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class VertexAiEndpointPrivateServiceConnectConfigOutputReference 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._enablePrivateServiceConnect !== undefined) { hasAnyValues = true; internalValueResult.enablePrivateServiceConnect = this._enablePrivateServiceConnect; } if (this._enableSecurePrivateServiceConnect !== undefined) { hasAnyValues = true; internalValueResult.enableSecurePrivateServiceConnect = this._enableSecurePrivateServiceConnect; } if (this._projectAllowlist !== undefined) { hasAnyValues = true; internalValueResult.projectAllowlist = this._projectAllowlist; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enablePrivateServiceConnect = undefined; this._enableSecurePrivateServiceConnect = undefined; this._projectAllowlist = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enablePrivateServiceConnect = value.enablePrivateServiceConnect; this._enableSecurePrivateServiceConnect = value.enableSecurePrivateServiceConnect; this._projectAllowlist = value.projectAllowlist; } } get enablePrivateServiceConnect() { return this.getBooleanAttribute('enable_private_service_connect'); } set enablePrivateServiceConnect(value) { this._enablePrivateServiceConnect = value; } // Temporarily expose input value. Use with caution. get enablePrivateServiceConnectInput() { return this._enablePrivateServiceConnect; } get enableSecurePrivateServiceConnect() { return this.getBooleanAttribute('enable_secure_private_service_connect'); } set enableSecurePrivateServiceConnect(value) { this._enableSecurePrivateServiceConnect = value; } resetEnableSecurePrivateServiceConnect() { this._enableSecurePrivateServiceConnect = undefined; } // Temporarily expose input value. Use with caution. get enableSecurePrivateServiceConnectInput() { return this._enableSecurePrivateServiceConnect; } get projectAllowlist() { return this.getListAttribute('project_allowlist'); } set projectAllowlist(value) { this._projectAllowlist = value; } resetProjectAllowlist() { this._projectAllowlist = undefined; } // Temporarily expose input value. Use with caution. get projectAllowlistInput() { return this._projectAllowlist; } } exports.VertexAiEndpointPrivateServiceConnectConfigOutputReference = VertexAiEndpointPrivateServiceConnectConfigOutputReference; _r = JSII_RTTI_SYMBOL_1; VertexAiEndpointPrivateServiceConnectConfigOutputReference[_r] = { fqn: "@cdktf/provider-google.vertexAiEndpoint.VertexAiEndpointPrivateServiceConnectConfigOutputReference", version: "14.35.1" }; function vertexAiEndpointTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } function vertexAiEndpointTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class VertexAiEndpointTimeoutsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; }