2023-03-20 16:22:55 +00:00
|
|
|
// Generated from Databricks Terraform provider schema. DO NOT EDIT.
|
|
|
|
|
|
|
|
package schema
|
|
|
|
|
2024-02-16 07:05:45 +00:00
|
|
|
type ResourceModelServingConfigAutoCaptureConfig struct {
|
|
|
|
CatalogName string `json:"catalog_name,omitempty"`
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
SchemaName string `json:"schema_name,omitempty"`
|
|
|
|
TableNamePrefix string `json:"table_name_prefix,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-04-05 14:49:04 +00:00
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelAi21LabsConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
Ai21LabsApiKey string `json:"ai21labs_api_key,omitempty"`
|
|
|
|
Ai21LabsApiKeyPlaintext string `json:"ai21labs_api_key_plaintext,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelAmazonBedrockConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
AwsAccessKeyId string `json:"aws_access_key_id,omitempty"`
|
|
|
|
AwsAccessKeyIdPlaintext string `json:"aws_access_key_id_plaintext,omitempty"`
|
|
|
|
AwsRegion string `json:"aws_region"`
|
|
|
|
AwsSecretAccessKey string `json:"aws_secret_access_key,omitempty"`
|
|
|
|
AwsSecretAccessKeyPlaintext string `json:"aws_secret_access_key_plaintext,omitempty"`
|
|
|
|
BedrockProvider string `json:"bedrock_provider"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelAnthropicConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
AnthropicApiKey string `json:"anthropic_api_key,omitempty"`
|
|
|
|
AnthropicApiKeyPlaintext string `json:"anthropic_api_key_plaintext,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelCohereConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
CohereApiBase string `json:"cohere_api_base,omitempty"`
|
|
|
|
CohereApiKey string `json:"cohere_api_key,omitempty"`
|
|
|
|
CohereApiKeyPlaintext string `json:"cohere_api_key_plaintext,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelDatabricksModelServingConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
DatabricksApiToken string `json:"databricks_api_token,omitempty"`
|
|
|
|
DatabricksApiTokenPlaintext string `json:"databricks_api_token_plaintext,omitempty"`
|
|
|
|
DatabricksWorkspaceUrl string `json:"databricks_workspace_url"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelGoogleCloudVertexAiConfig struct {
|
|
|
|
PrivateKey string `json:"private_key,omitempty"`
|
|
|
|
PrivateKeyPlaintext string `json:"private_key_plaintext,omitempty"`
|
|
|
|
ProjectId string `json:"project_id,omitempty"`
|
|
|
|
Region string `json:"region,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelOpenaiConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
MicrosoftEntraClientId string `json:"microsoft_entra_client_id,omitempty"`
|
|
|
|
MicrosoftEntraClientSecret string `json:"microsoft_entra_client_secret,omitempty"`
|
|
|
|
MicrosoftEntraClientSecretPlaintext string `json:"microsoft_entra_client_secret_plaintext,omitempty"`
|
|
|
|
MicrosoftEntraTenantId string `json:"microsoft_entra_tenant_id,omitempty"`
|
|
|
|
OpenaiApiBase string `json:"openai_api_base,omitempty"`
|
|
|
|
OpenaiApiKey string `json:"openai_api_key,omitempty"`
|
|
|
|
OpenaiApiKeyPlaintext string `json:"openai_api_key_plaintext,omitempty"`
|
|
|
|
OpenaiApiType string `json:"openai_api_type,omitempty"`
|
|
|
|
OpenaiApiVersion string `json:"openai_api_version,omitempty"`
|
|
|
|
OpenaiDeploymentName string `json:"openai_deployment_name,omitempty"`
|
|
|
|
OpenaiOrganization string `json:"openai_organization,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModelPalmConfig struct {
|
2024-08-15 12:43:39 +00:00
|
|
|
PalmApiKey string `json:"palm_api_key,omitempty"`
|
|
|
|
PalmApiKeyPlaintext string `json:"palm_api_key_plaintext,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntitiesExternalModel struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Provider string `json:"provider"`
|
|
|
|
Task string `json:"task"`
|
|
|
|
Ai21LabsConfig *ResourceModelServingConfigServedEntitiesExternalModelAi21LabsConfig `json:"ai21labs_config,omitempty"`
|
|
|
|
AmazonBedrockConfig *ResourceModelServingConfigServedEntitiesExternalModelAmazonBedrockConfig `json:"amazon_bedrock_config,omitempty"`
|
|
|
|
AnthropicConfig *ResourceModelServingConfigServedEntitiesExternalModelAnthropicConfig `json:"anthropic_config,omitempty"`
|
|
|
|
CohereConfig *ResourceModelServingConfigServedEntitiesExternalModelCohereConfig `json:"cohere_config,omitempty"`
|
|
|
|
DatabricksModelServingConfig *ResourceModelServingConfigServedEntitiesExternalModelDatabricksModelServingConfig `json:"databricks_model_serving_config,omitempty"`
|
2024-08-15 12:43:39 +00:00
|
|
|
GoogleCloudVertexAiConfig *ResourceModelServingConfigServedEntitiesExternalModelGoogleCloudVertexAiConfig `json:"google_cloud_vertex_ai_config,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
OpenaiConfig *ResourceModelServingConfigServedEntitiesExternalModelOpenaiConfig `json:"openai_config,omitempty"`
|
|
|
|
PalmConfig *ResourceModelServingConfigServedEntitiesExternalModelPalmConfig `json:"palm_config,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigServedEntities struct {
|
|
|
|
EntityName string `json:"entity_name,omitempty"`
|
|
|
|
EntityVersion string `json:"entity_version,omitempty"`
|
|
|
|
EnvironmentVars map[string]string `json:"environment_vars,omitempty"`
|
|
|
|
InstanceProfileArn string `json:"instance_profile_arn,omitempty"`
|
|
|
|
MaxProvisionedThroughput int `json:"max_provisioned_throughput,omitempty"`
|
|
|
|
MinProvisionedThroughput int `json:"min_provisioned_throughput,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
ScaleToZeroEnabled bool `json:"scale_to_zero_enabled,omitempty"`
|
|
|
|
WorkloadSize string `json:"workload_size,omitempty"`
|
|
|
|
WorkloadType string `json:"workload_type,omitempty"`
|
|
|
|
ExternalModel *ResourceModelServingConfigServedEntitiesExternalModel `json:"external_model,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-03-20 16:22:55 +00:00
|
|
|
type ResourceModelServingConfigServedModels struct {
|
2023-07-07 12:52:41 +00:00
|
|
|
EnvironmentVars map[string]string `json:"environment_vars,omitempty"`
|
2023-08-30 13:58:28 +00:00
|
|
|
InstanceProfileArn string `json:"instance_profile_arn,omitempty"`
|
2023-07-07 12:52:41 +00:00
|
|
|
ModelName string `json:"model_name"`
|
|
|
|
ModelVersion string `json:"model_version"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
ScaleToZeroEnabled bool `json:"scale_to_zero_enabled,omitempty"`
|
|
|
|
WorkloadSize string `json:"workload_size"`
|
2023-10-16 12:52:16 +00:00
|
|
|
WorkloadType string `json:"workload_type,omitempty"`
|
2023-03-20 16:22:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigTrafficConfigRoutes struct {
|
|
|
|
ServedModelName string `json:"served_model_name"`
|
|
|
|
TrafficPercentage int `json:"traffic_percentage"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfigTrafficConfig struct {
|
|
|
|
Routes []ResourceModelServingConfigTrafficConfigRoutes `json:"routes,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingConfig struct {
|
2024-02-16 07:05:45 +00:00
|
|
|
AutoCaptureConfig *ResourceModelServingConfigAutoCaptureConfig `json:"auto_capture_config,omitempty"`
|
2024-04-05 14:49:04 +00:00
|
|
|
ServedEntities []ResourceModelServingConfigServedEntities `json:"served_entities,omitempty"`
|
2024-02-16 07:05:45 +00:00
|
|
|
ServedModels []ResourceModelServingConfigServedModels `json:"served_models,omitempty"`
|
|
|
|
TrafficConfig *ResourceModelServingConfigTrafficConfig `json:"traffic_config,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResourceModelServingRateLimits struct {
|
|
|
|
Calls int `json:"calls"`
|
|
|
|
Key string `json:"key,omitempty"`
|
|
|
|
RenewalPeriod string `json:"renewal_period"`
|
2023-03-20 16:22:55 +00:00
|
|
|
}
|
|
|
|
|
2023-10-16 12:52:16 +00:00
|
|
|
type ResourceModelServingTags struct {
|
|
|
|
Key string `json:"key"`
|
|
|
|
Value string `json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-03-20 16:22:55 +00:00
|
|
|
type ResourceModelServing struct {
|
2024-02-16 07:05:45 +00:00
|
|
|
Id string `json:"id,omitempty"`
|
|
|
|
Name string `json:"name"`
|
2024-05-31 07:13:43 +00:00
|
|
|
RouteOptimized bool `json:"route_optimized,omitempty"`
|
2024-02-16 07:05:45 +00:00
|
|
|
ServingEndpointId string `json:"serving_endpoint_id,omitempty"`
|
|
|
|
Config *ResourceModelServingConfig `json:"config,omitempty"`
|
|
|
|
RateLimits []ResourceModelServingRateLimits `json:"rate_limits,omitempty"`
|
|
|
|
Tags []ResourceModelServingTags `json:"tags,omitempty"`
|
2023-03-20 16:22:55 +00:00
|
|
|
}
|