warehouse

package
v10.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

README

snowflake_warehouse

Refer to the Terraform Registory for docs: snowflake_warehouse.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWarehouse_Override

func NewWarehouse_Override(w Warehouse, scope constructs.Construct, id *string, config *WarehouseConfig)

Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse snowflake_warehouse} Resource.

func Warehouse_GenerateConfigForImport

func Warehouse_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource

Generates CDKTF code for importing a Warehouse resource upon running "cdktf plan <stack-name>".

func Warehouse_IsConstruct

func Warehouse_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func Warehouse_IsTerraformElement

func Warehouse_IsTerraformElement(x interface{}) *bool

Experimental.

func Warehouse_IsTerraformResource

func Warehouse_IsTerraformResource(x interface{}) *bool

Experimental.

func Warehouse_TfResourceType

func Warehouse_TfResourceType() *string

Types

type Warehouse

type Warehouse interface {
	cdktf.TerraformResource
	AutoResume() interface{}
	SetAutoResume(val interface{})
	AutoResumeInput() interface{}
	AutoSuspend() *float64
	SetAutoSuspend(val *float64)
	AutoSuspendInput() *float64
	// Experimental.
	CdktfStack() cdktf.TerraformStack
	Comment() *string
	SetComment(val *string)
	CommentInput() *string
	// Experimental.
	Connection() interface{}
	// Experimental.
	SetConnection(val interface{})
	// Experimental.
	ConstructNodeMetadata() *map[string]interface{}
	// Experimental.
	Count() interface{}
	// Experimental.
	SetCount(val interface{})
	// Experimental.
	DependsOn() *[]*string
	// Experimental.
	SetDependsOn(val *[]*string)
	EnableQueryAcceleration() interface{}
	SetEnableQueryAcceleration(val interface{})
	EnableQueryAccelerationInput() interface{}
	// Experimental.
	ForEach() cdktf.ITerraformIterator
	// Experimental.
	SetForEach(val cdktf.ITerraformIterator)
	// Experimental.
	Fqn() *string
	// Experimental.
	FriendlyUniqueId() *string
	Id() *string
	SetId(val *string)
	IdInput() *string
	InitiallySuspended() interface{}
	SetInitiallySuspended(val interface{})
	InitiallySuspendedInput() interface{}
	// Experimental.
	Lifecycle() *cdktf.TerraformResourceLifecycle
	// Experimental.
	SetLifecycle(val *cdktf.TerraformResourceLifecycle)
	MaxClusterCount() *float64
	SetMaxClusterCount(val *float64)
	MaxClusterCountInput() *float64
	MaxConcurrencyLevel() *float64
	SetMaxConcurrencyLevel(val *float64)
	MaxConcurrencyLevelInput() *float64
	MinClusterCount() *float64
	SetMinClusterCount(val *float64)
	MinClusterCountInput() *float64
	Name() *string
	SetName(val *string)
	NameInput() *string
	// The tree node.
	Node() constructs.Node
	// Experimental.
	Provider() cdktf.TerraformProvider
	// Experimental.
	SetProvider(val cdktf.TerraformProvider)
	// Experimental.
	Provisioners() *[]interface{}
	// Experimental.
	SetProvisioners(val *[]interface{})
	QueryAccelerationMaxScaleFactor() *float64
	SetQueryAccelerationMaxScaleFactor(val *float64)
	QueryAccelerationMaxScaleFactorInput() *float64
	// Experimental.
	RawOverrides() interface{}
	ResourceMonitor() *string
	SetResourceMonitor(val *string)
	ResourceMonitorInput() *string
	ScalingPolicy() *string
	SetScalingPolicy(val *string)
	ScalingPolicyInput() *string
	StatementQueuedTimeoutInSeconds() *float64
	SetStatementQueuedTimeoutInSeconds(val *float64)
	StatementQueuedTimeoutInSecondsInput() *float64
	StatementTimeoutInSeconds() *float64
	SetStatementTimeoutInSeconds(val *float64)
	StatementTimeoutInSecondsInput() *float64
	// Experimental.
	TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata
	// Experimental.
	TerraformMetaArguments() *map[string]interface{}
	// Experimental.
	TerraformResourceType() *string
	WaitForProvisioning() interface{}
	SetWaitForProvisioning(val interface{})
	WaitForProvisioningInput() interface{}
	WarehouseSize() *string
	SetWarehouseSize(val *string)
	WarehouseSizeInput() *string
	WarehouseType() *string
	SetWarehouseType(val *string)
	WarehouseTypeInput() *string
	// Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
	// Experimental.
	AddMoveTarget(moveTarget *string)
	// Experimental.
	AddOverride(path *string, value interface{})
	// Experimental.
	GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
	// Experimental.
	GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable
	// Experimental.
	GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
	// Experimental.
	GetListAttribute(terraformAttribute *string) *[]*string
	// Experimental.
	GetNumberAttribute(terraformAttribute *string) *float64
	// Experimental.
	GetNumberListAttribute(terraformAttribute *string) *[]*float64
	// Experimental.
	GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64
	// Experimental.
	GetStringAttribute(terraformAttribute *string) *string
	// Experimental.
	GetStringMapAttribute(terraformAttribute *string) *map[string]*string
	// Experimental.
	ImportFrom(id *string, provider cdktf.TerraformProvider)
	// Experimental.
	InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable
	// Moves this resource to the target resource given by moveTarget.
	// Experimental.
	MoveTo(moveTarget *string, index interface{})
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	ResetAutoResume()
	ResetAutoSuspend()
	ResetComment()
	ResetEnableQueryAcceleration()
	ResetId()
	ResetInitiallySuspended()
	ResetMaxClusterCount()
	ResetMaxConcurrencyLevel()
	ResetMinClusterCount()
	// Resets a previously passed logical Id to use the auto-generated logical id again.
	// Experimental.
	ResetOverrideLogicalId()
	ResetQueryAccelerationMaxScaleFactor()
	ResetResourceMonitor()
	ResetScalingPolicy()
	ResetStatementQueuedTimeoutInSeconds()
	ResetStatementTimeoutInSeconds()
	ResetWaitForProvisioning()
	ResetWarehouseSize()
	ResetWarehouseType()
	SynthesizeAttributes() *map[string]interface{}
	// Experimental.
	ToMetadata() interface{}
	// Returns a string representation of this construct.
	ToString() *string
	// Adds this resource to the terraform JSON output.
	// Experimental.
	ToTerraform() interface{}
}

Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse snowflake_warehouse}.

func NewWarehouse

func NewWarehouse(scope constructs.Construct, id *string, config *WarehouseConfig) Warehouse

Create a new {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse snowflake_warehouse} Resource.

type WarehouseConfig

type WarehouseConfig struct {
	// Experimental.
	Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
	// Experimental.
	Count interface{} `field:"optional" json:"count" yaml:"count"`
	// Experimental.
	DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
	// Experimental.
	ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"`
	// Experimental.
	Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"`
	// Experimental.
	Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"`
	// Experimental.
	Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
	// Identifier for the virtual warehouse; must be unique for your account.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#name Warehouse#name}
	Name *string `field:"required" json:"name" yaml:"name"`
	// Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#auto_resume Warehouse#auto_resume}
	AutoResume interface{} `field:"optional" json:"autoResume" yaml:"autoResume"`
	// Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#auto_suspend Warehouse#auto_suspend}
	AutoSuspend *float64 `field:"optional" json:"autoSuspend" yaml:"autoSuspend"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#comment Warehouse#comment}.
	Comment *string `field:"optional" json:"comment" yaml:"comment"`
	// Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#enable_query_acceleration Warehouse#enable_query_acceleration}
	EnableQueryAcceleration interface{} `field:"optional" json:"enableQueryAcceleration" yaml:"enableQueryAcceleration"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#id Warehouse#id}.
	//
	// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
	// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
	Id *string `field:"optional" json:"id" yaml:"id"`
	// Specifies whether the warehouse is created initially in the ‘Suspended’ state.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#initially_suspended Warehouse#initially_suspended}
	InitiallySuspended interface{} `field:"optional" json:"initiallySuspended" yaml:"initiallySuspended"`
	// Specifies the maximum number of server clusters for the warehouse.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#max_cluster_count Warehouse#max_cluster_count}
	MaxClusterCount *float64 `field:"optional" json:"maxClusterCount" yaml:"maxClusterCount"`
	// Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#max_concurrency_level Warehouse#max_concurrency_level}
	MaxConcurrencyLevel *float64 `field:"optional" json:"maxConcurrencyLevel" yaml:"maxConcurrencyLevel"`
	// Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#min_cluster_count Warehouse#min_cluster_count}
	MinClusterCount *float64 `field:"optional" json:"minClusterCount" yaml:"minClusterCount"`
	// Specifies the maximum scale factor for leasing compute resources for query acceleration.
	//
	// The scale factor is used as a multiplier based on warehouse size.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#query_acceleration_max_scale_factor Warehouse#query_acceleration_max_scale_factor}
	QueryAccelerationMaxScaleFactor *float64 `field:"optional" json:"queryAccelerationMaxScaleFactor" yaml:"queryAccelerationMaxScaleFactor"`
	// Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#resource_monitor Warehouse#resource_monitor}
	ResourceMonitor *string `field:"optional" json:"resourceMonitor" yaml:"resourceMonitor"`
	// Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#scaling_policy Warehouse#scaling_policy}
	ScalingPolicy *string `field:"optional" json:"scalingPolicy" yaml:"scalingPolicy"`
	// Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#statement_queued_timeout_in_seconds Warehouse#statement_queued_timeout_in_seconds}
	StatementQueuedTimeoutInSeconds *float64 `field:"optional" json:"statementQueuedTimeoutInSeconds" yaml:"statementQueuedTimeoutInSeconds"`
	// Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#statement_timeout_in_seconds Warehouse#statement_timeout_in_seconds}
	StatementTimeoutInSeconds *float64 `field:"optional" json:"statementTimeoutInSeconds" yaml:"statementTimeoutInSeconds"`
	// Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#wait_for_provisioning Warehouse#wait_for_provisioning}
	WaitForProvisioning interface{} `field:"optional" json:"waitForProvisioning" yaml:"waitForProvisioning"`
	// Specifies the size of the virtual warehouse.
	//
	// Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#warehouse_size Warehouse#warehouse_size}
	WarehouseSize *string `field:"optional" json:"warehouseSize" yaml:"warehouseSize"`
	// Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.75.0/docs/resources/warehouse#warehouse_type Warehouse#warehouse_type}
	WarehouseType *string `field:"optional" json:"warehouseType" yaml:"warehouseType"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL