github.com/databricks/cli@v0.203.0/bundle/internal/tf/schema/resource_cluster.go (about)

     1  // Generated from Databricks Terraform provider schema. DO NOT EDIT.
     2  
     3  package schema
     4  
     5  type ResourceClusterAutoscale struct {
     6  	MaxWorkers int `json:"max_workers,omitempty"`
     7  	MinWorkers int `json:"min_workers,omitempty"`
     8  }
     9  
    10  type ResourceClusterAwsAttributes struct {
    11  	Availability        string `json:"availability,omitempty"`
    12  	EbsVolumeCount      int    `json:"ebs_volume_count,omitempty"`
    13  	EbsVolumeSize       int    `json:"ebs_volume_size,omitempty"`
    14  	EbsVolumeType       string `json:"ebs_volume_type,omitempty"`
    15  	FirstOnDemand       int    `json:"first_on_demand,omitempty"`
    16  	InstanceProfileArn  string `json:"instance_profile_arn,omitempty"`
    17  	SpotBidPricePercent int    `json:"spot_bid_price_percent,omitempty"`
    18  	ZoneId              string `json:"zone_id,omitempty"`
    19  }
    20  
    21  type ResourceClusterAzureAttributes struct {
    22  	Availability    string `json:"availability,omitempty"`
    23  	FirstOnDemand   int    `json:"first_on_demand,omitempty"`
    24  	SpotBidMaxPrice int    `json:"spot_bid_max_price,omitempty"`
    25  }
    26  
    27  type ResourceClusterClusterLogConfDbfs struct {
    28  	Destination string `json:"destination"`
    29  }
    30  
    31  type ResourceClusterClusterLogConfS3 struct {
    32  	CannedAcl        string `json:"canned_acl,omitempty"`
    33  	Destination      string `json:"destination"`
    34  	EnableEncryption bool   `json:"enable_encryption,omitempty"`
    35  	EncryptionType   string `json:"encryption_type,omitempty"`
    36  	Endpoint         string `json:"endpoint,omitempty"`
    37  	KmsKey           string `json:"kms_key,omitempty"`
    38  	Region           string `json:"region,omitempty"`
    39  }
    40  
    41  type ResourceClusterClusterLogConf struct {
    42  	Dbfs *ResourceClusterClusterLogConfDbfs `json:"dbfs,omitempty"`
    43  	S3   *ResourceClusterClusterLogConfS3   `json:"s3,omitempty"`
    44  }
    45  
    46  type ResourceClusterClusterMountInfoNetworkFilesystemInfo struct {
    47  	MountOptions  string `json:"mount_options,omitempty"`
    48  	ServerAddress string `json:"server_address"`
    49  }
    50  
    51  type ResourceClusterClusterMountInfo struct {
    52  	LocalMountDirPath     string                                                `json:"local_mount_dir_path"`
    53  	RemoteMountDirPath    string                                                `json:"remote_mount_dir_path,omitempty"`
    54  	NetworkFilesystemInfo *ResourceClusterClusterMountInfoNetworkFilesystemInfo `json:"network_filesystem_info,omitempty"`
    55  }
    56  
    57  type ResourceClusterDockerImageBasicAuth struct {
    58  	Password string `json:"password"`
    59  	Username string `json:"username"`
    60  }
    61  
    62  type ResourceClusterDockerImage struct {
    63  	Url       string                               `json:"url"`
    64  	BasicAuth *ResourceClusterDockerImageBasicAuth `json:"basic_auth,omitempty"`
    65  }
    66  
    67  type ResourceClusterGcpAttributes struct {
    68  	Availability            string `json:"availability,omitempty"`
    69  	BootDiskSize            int    `json:"boot_disk_size,omitempty"`
    70  	GoogleServiceAccount    string `json:"google_service_account,omitempty"`
    71  	UsePreemptibleExecutors bool   `json:"use_preemptible_executors,omitempty"`
    72  	ZoneId                  string `json:"zone_id,omitempty"`
    73  }
    74  
    75  type ResourceClusterInitScriptsAbfss struct {
    76  	Destination string `json:"destination,omitempty"`
    77  }
    78  
    79  type ResourceClusterInitScriptsDbfs struct {
    80  	Destination string `json:"destination"`
    81  }
    82  
    83  type ResourceClusterInitScriptsFile struct {
    84  	Destination string `json:"destination,omitempty"`
    85  }
    86  
    87  type ResourceClusterInitScriptsGcs struct {
    88  	Destination string `json:"destination,omitempty"`
    89  }
    90  
    91  type ResourceClusterInitScriptsS3 struct {
    92  	CannedAcl        string `json:"canned_acl,omitempty"`
    93  	Destination      string `json:"destination"`
    94  	EnableEncryption bool   `json:"enable_encryption,omitempty"`
    95  	EncryptionType   string `json:"encryption_type,omitempty"`
    96  	Endpoint         string `json:"endpoint,omitempty"`
    97  	KmsKey           string `json:"kms_key,omitempty"`
    98  	Region           string `json:"region,omitempty"`
    99  }
   100  
   101  type ResourceClusterInitScriptsWorkspace struct {
   102  	Destination string `json:"destination,omitempty"`
   103  }
   104  
   105  type ResourceClusterInitScripts struct {
   106  	Abfss     *ResourceClusterInitScriptsAbfss     `json:"abfss,omitempty"`
   107  	Dbfs      *ResourceClusterInitScriptsDbfs      `json:"dbfs,omitempty"`
   108  	File      *ResourceClusterInitScriptsFile      `json:"file,omitempty"`
   109  	Gcs       *ResourceClusterInitScriptsGcs       `json:"gcs,omitempty"`
   110  	S3        *ResourceClusterInitScriptsS3        `json:"s3,omitempty"`
   111  	Workspace *ResourceClusterInitScriptsWorkspace `json:"workspace,omitempty"`
   112  }
   113  
   114  type ResourceClusterLibraryCran struct {
   115  	Package string `json:"package"`
   116  	Repo    string `json:"repo,omitempty"`
   117  }
   118  
   119  type ResourceClusterLibraryMaven struct {
   120  	Coordinates string   `json:"coordinates"`
   121  	Exclusions  []string `json:"exclusions,omitempty"`
   122  	Repo        string   `json:"repo,omitempty"`
   123  }
   124  
   125  type ResourceClusterLibraryPypi struct {
   126  	Package string `json:"package"`
   127  	Repo    string `json:"repo,omitempty"`
   128  }
   129  
   130  type ResourceClusterLibrary struct {
   131  	Egg   string                       `json:"egg,omitempty"`
   132  	Jar   string                       `json:"jar,omitempty"`
   133  	Whl   string                       `json:"whl,omitempty"`
   134  	Cran  *ResourceClusterLibraryCran  `json:"cran,omitempty"`
   135  	Maven *ResourceClusterLibraryMaven `json:"maven,omitempty"`
   136  	Pypi  *ResourceClusterLibraryPypi  `json:"pypi,omitempty"`
   137  }
   138  
   139  type ResourceClusterWorkloadTypeClients struct {
   140  	Jobs      bool `json:"jobs,omitempty"`
   141  	Notebooks bool `json:"notebooks,omitempty"`
   142  }
   143  
   144  type ResourceClusterWorkloadType struct {
   145  	Clients *ResourceClusterWorkloadTypeClients `json:"clients,omitempty"`
   146  }
   147  
   148  type ResourceCluster struct {
   149  	ApplyPolicyDefaultValues  bool                              `json:"apply_policy_default_values,omitempty"`
   150  	AutoterminationMinutes    int                               `json:"autotermination_minutes,omitempty"`
   151  	ClusterId                 string                            `json:"cluster_id,omitempty"`
   152  	ClusterName               string                            `json:"cluster_name,omitempty"`
   153  	CustomTags                map[string]string                 `json:"custom_tags,omitempty"`
   154  	DataSecurityMode          string                            `json:"data_security_mode,omitempty"`
   155  	DefaultTags               map[string]string                 `json:"default_tags,omitempty"`
   156  	DriverInstancePoolId      string                            `json:"driver_instance_pool_id,omitempty"`
   157  	DriverNodeTypeId          string                            `json:"driver_node_type_id,omitempty"`
   158  	EnableElasticDisk         bool                              `json:"enable_elastic_disk,omitempty"`
   159  	EnableLocalDiskEncryption bool                              `json:"enable_local_disk_encryption,omitempty"`
   160  	Id                        string                            `json:"id,omitempty"`
   161  	IdempotencyToken          string                            `json:"idempotency_token,omitempty"`
   162  	InstancePoolId            string                            `json:"instance_pool_id,omitempty"`
   163  	IsPinned                  bool                              `json:"is_pinned,omitempty"`
   164  	NodeTypeId                string                            `json:"node_type_id,omitempty"`
   165  	NumWorkers                int                               `json:"num_workers,omitempty"`
   166  	PolicyId                  string                            `json:"policy_id,omitempty"`
   167  	RuntimeEngine             string                            `json:"runtime_engine,omitempty"`
   168  	SingleUserName            string                            `json:"single_user_name,omitempty"`
   169  	SparkConf                 map[string]string                 `json:"spark_conf,omitempty"`
   170  	SparkEnvVars              map[string]string                 `json:"spark_env_vars,omitempty"`
   171  	SparkVersion              string                            `json:"spark_version"`
   172  	SshPublicKeys             []string                          `json:"ssh_public_keys,omitempty"`
   173  	State                     string                            `json:"state,omitempty"`
   174  	Url                       string                            `json:"url,omitempty"`
   175  	Autoscale                 *ResourceClusterAutoscale         `json:"autoscale,omitempty"`
   176  	AwsAttributes             *ResourceClusterAwsAttributes     `json:"aws_attributes,omitempty"`
   177  	AzureAttributes           *ResourceClusterAzureAttributes   `json:"azure_attributes,omitempty"`
   178  	ClusterLogConf            *ResourceClusterClusterLogConf    `json:"cluster_log_conf,omitempty"`
   179  	ClusterMountInfo          []ResourceClusterClusterMountInfo `json:"cluster_mount_info,omitempty"`
   180  	DockerImage               *ResourceClusterDockerImage       `json:"docker_image,omitempty"`
   181  	GcpAttributes             *ResourceClusterGcpAttributes     `json:"gcp_attributes,omitempty"`
   182  	InitScripts               []ResourceClusterInitScripts      `json:"init_scripts,omitempty"`
   183  	Library                   []ResourceClusterLibrary          `json:"library,omitempty"`
   184  	WorkloadType              *ResourceClusterWorkloadType      `json:"workload_type,omitempty"`
   185  }