Represents a {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database snowflake_database}.
import { database } from '@cdktf/provider-snowflake'
new database.Database(scope: Construct, id: string, config: DatabaseConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The scope in which to define this construct. |
id |
string |
The scoped construct ID. |
config |
DatabaseConfig |
No description. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: DatabaseConfig
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addOverride |
No description. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
toHclTerraform |
No description. |
toMetadata |
No description. |
toTerraform |
Adds this resource to the terraform JSON output. |
addMoveTarget |
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
hasResourceMove |
No description. |
importFrom |
No description. |
interpolationForAttribute |
No description. |
moveFromId |
Move the resource corresponding to "id" to this resource. |
moveTo |
Moves this resource to the target resource given by moveTarget. |
moveToId |
Moves this resource to the resource corresponding to "id". |
putReplication |
No description. |
resetCatalog |
No description. |
resetComment |
No description. |
resetDataRetentionTimeInDays |
No description. |
resetDefaultDdlCollation |
No description. |
resetDropPublicSchemaOnCreation |
No description. |
resetEnableConsoleOutput |
No description. |
resetExternalVolume |
No description. |
resetId |
No description. |
resetIsTransient |
No description. |
resetLogLevel |
No description. |
resetMaxDataExtensionTimeInDays |
No description. |
resetQuotedIdentifiersIgnoreCase |
No description. |
resetReplaceInvalidCharacters |
No description. |
resetReplication |
No description. |
resetStorageSerializationPolicy |
No description. |
resetSuspendTaskAfterNumFailures |
No description. |
resetTaskAutoRetryAttempts |
No description. |
resetTraceLevel |
No description. |
resetUserTaskManagedInitialWarehouseSize |
No description. |
resetUserTaskMinimumTriggerIntervalInSeconds |
No description. |
resetUserTaskTimeoutMs |
No description. |
public toString(): string
Returns a string representation of this construct.
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public overrideLogicalId(newLogicalId: string): void
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
public resetOverrideLogicalId(): void
Resets a previously passed logical Id to use the auto-generated logical id again.
public toHclTerraform(): any
public toMetadata(): any
public toTerraform(): any
Adds this resource to the terraform JSON output.
public addMoveTarget(moveTarget: string): void
Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
- Type: string
The string move target that will correspond to this resource.
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public hasResourceMove(): TerraformResourceMoveByTarget | TerraformResourceMoveById
public importFrom(id: string, provider?: TerraformProvider): void
- Type: string
- Type: cdktf.TerraformProvider
public interpolationForAttribute(terraformAttribute: string): IResolvable
- Type: string
public moveFromId(id: string): void
Move the resource corresponding to "id" to this resource.
Note that the resource being moved from must be marked as moved using it's instance function.
- Type: string
Full id of resource being moved from, e.g. "aws_s3_bucket.example".
public moveTo(moveTarget: string, index?: string | number): void
Moves this resource to the target resource given by moveTarget.
- Type: string
The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.
- Type: string | number
Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.
public moveToId(id: string): void
Moves this resource to the resource corresponding to "id".
- Type: string
Full id of resource to move to, e.g. "aws_s3_bucket.example".
public putReplication(value: DatabaseReplication): void
- Type: DatabaseReplication
public resetCatalog(): void
public resetComment(): void
public resetDataRetentionTimeInDays(): void
public resetDefaultDdlCollation(): void
public resetDropPublicSchemaOnCreation(): void
public resetEnableConsoleOutput(): void
public resetExternalVolume(): void
public resetId(): void
public resetIsTransient(): void
public resetLogLevel(): void
public resetMaxDataExtensionTimeInDays(): void
public resetQuotedIdentifiersIgnoreCase(): void
public resetReplaceInvalidCharacters(): void
public resetReplication(): void
public resetStorageSerializationPolicy(): void
public resetSuspendTaskAfterNumFailures(): void
public resetTaskAutoRetryAttempts(): void
public resetTraceLevel(): void
public resetUserTaskManagedInitialWarehouseSize(): void
public resetUserTaskMinimumTriggerIntervalInSeconds(): void
public resetUserTaskTimeoutMs(): void
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isTerraformElement |
No description. |
isTerraformResource |
No description. |
generateConfigForImport |
Generates CDKTF code for importing a Database resource upon running "cdktf plan ". |
import { database } from '@cdktf/provider-snowflake'
database.Database.isConstruct(x: any)
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.
- Type: any
Any object.
import { database } from '@cdktf/provider-snowflake'
database.Database.isTerraformElement(x: any)
- Type: any
import { database } from '@cdktf/provider-snowflake'
database.Database.isTerraformResource(x: any)
- Type: any
import { database } from '@cdktf/provider-snowflake'
database.Database.generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: TerraformProvider)
Generates CDKTF code for importing a Database resource upon running "cdktf plan ".
- Type: constructs.Construct
The scope in which to define this construct.
- Type: string
The construct id used in the generated config for the Database to import.
- Type: string
The id of the existing Database that should be imported.
Refer to the {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#import import section} in the documentation of this resource for the id to use
- Type: cdktf.TerraformProvider
? Optional instance of the provider where the Database to import is found.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktfStack |
cdktf.TerraformStack |
No description. |
fqn |
string |
No description. |
friendlyUniqueId |
string |
No description. |
terraformMetaArguments |
{[ key: string ]: any} |
No description. |
terraformResourceType |
string |
No description. |
terraformGeneratorMetadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection |
No description. |
count |
number | cdktf.TerraformCount |
No description. |
dependsOn |
string[] |
No description. |
forEach |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] |
No description. |
fullyQualifiedName |
string |
No description. |
replication |
DatabaseReplicationOutputReference |
No description. |
catalogInput |
string |
No description. |
commentInput |
string |
No description. |
dataRetentionTimeInDaysInput |
number |
No description. |
defaultDdlCollationInput |
string |
No description. |
dropPublicSchemaOnCreationInput |
boolean | cdktf.IResolvable |
No description. |
enableConsoleOutputInput |
boolean | cdktf.IResolvable |
No description. |
externalVolumeInput |
string |
No description. |
idInput |
string |
No description. |
isTransientInput |
boolean | cdktf.IResolvable |
No description. |
logLevelInput |
string |
No description. |
maxDataExtensionTimeInDaysInput |
number |
No description. |
nameInput |
string |
No description. |
quotedIdentifiersIgnoreCaseInput |
boolean | cdktf.IResolvable |
No description. |
replaceInvalidCharactersInput |
boolean | cdktf.IResolvable |
No description. |
replicationInput |
DatabaseReplication |
No description. |
storageSerializationPolicyInput |
string |
No description. |
suspendTaskAfterNumFailuresInput |
number |
No description. |
taskAutoRetryAttemptsInput |
number |
No description. |
traceLevelInput |
string |
No description. |
userTaskManagedInitialWarehouseSizeInput |
string |
No description. |
userTaskMinimumTriggerIntervalInSecondsInput |
number |
No description. |
userTaskTimeoutMsInput |
number |
No description. |
catalog |
string |
No description. |
comment |
string |
No description. |
dataRetentionTimeInDays |
number |
No description. |
defaultDdlCollation |
string |
No description. |
dropPublicSchemaOnCreation |
boolean | cdktf.IResolvable |
No description. |
enableConsoleOutput |
boolean | cdktf.IResolvable |
No description. |
externalVolume |
string |
No description. |
id |
string |
No description. |
isTransient |
boolean | cdktf.IResolvable |
No description. |
logLevel |
string |
No description. |
maxDataExtensionTimeInDays |
number |
No description. |
name |
string |
No description. |
quotedIdentifiersIgnoreCase |
boolean | cdktf.IResolvable |
No description. |
replaceInvalidCharacters |
boolean | cdktf.IResolvable |
No description. |
storageSerializationPolicy |
string |
No description. |
suspendTaskAfterNumFailures |
number |
No description. |
taskAutoRetryAttempts |
number |
No description. |
traceLevel |
string |
No description. |
userTaskManagedInitialWarehouseSize |
string |
No description. |
userTaskMinimumTriggerIntervalInSeconds |
number |
No description. |
userTaskTimeoutMs |
number |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cdktfStack: TerraformStack;
- Type: cdktf.TerraformStack
public readonly fqn: string;
- Type: string
public readonly friendlyUniqueId: string;
- Type: string
public readonly terraformMetaArguments: {[ key: string ]: any};
- Type: {[ key: string ]: any}
public readonly terraformResourceType: string;
- Type: string
public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata;
- Type: cdktf.TerraformProviderGeneratorMetadata
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: string[];
- Type: string[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly fullyQualifiedName: string;
- Type: string
public readonly replication: DatabaseReplicationOutputReference;
public readonly catalogInput: string;
- Type: string
public readonly commentInput: string;
- Type: string
public readonly dataRetentionTimeInDaysInput: number;
- Type: number
public readonly defaultDdlCollationInput: string;
- Type: string
public readonly dropPublicSchemaOnCreationInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly enableConsoleOutputInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly externalVolumeInput: string;
- Type: string
public readonly idInput: string;
- Type: string
public readonly isTransientInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly logLevelInput: string;
- Type: string
public readonly maxDataExtensionTimeInDaysInput: number;
- Type: number
public readonly nameInput: string;
- Type: string
public readonly quotedIdentifiersIgnoreCaseInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly replaceInvalidCharactersInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly replicationInput: DatabaseReplication;
- Type: DatabaseReplication
public readonly storageSerializationPolicyInput: string;
- Type: string
public readonly suspendTaskAfterNumFailuresInput: number;
- Type: number
public readonly taskAutoRetryAttemptsInput: number;
- Type: number
public readonly traceLevelInput: string;
- Type: string
public readonly userTaskManagedInitialWarehouseSizeInput: string;
- Type: string
public readonly userTaskMinimumTriggerIntervalInSecondsInput: number;
- Type: number
public readonly userTaskTimeoutMsInput: number;
- Type: number
public readonly catalog: string;
- Type: string
public readonly comment: string;
- Type: string
public readonly dataRetentionTimeInDays: number;
- Type: number
public readonly defaultDdlCollation: string;
- Type: string
public readonly dropPublicSchemaOnCreation: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly enableConsoleOutput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly externalVolume: string;
- Type: string
public readonly id: string;
- Type: string
public readonly isTransient: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly logLevel: string;
- Type: string
public readonly maxDataExtensionTimeInDays: number;
- Type: number
public readonly name: string;
- Type: string
public readonly quotedIdentifiersIgnoreCase: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly replaceInvalidCharacters: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly storageSerializationPolicy: string;
- Type: string
public readonly suspendTaskAfterNumFailures: number;
- Type: number
public readonly taskAutoRetryAttempts: number;
- Type: number
public readonly traceLevel: string;
- Type: string
public readonly userTaskManagedInitialWarehouseSize: string;
- Type: string
public readonly userTaskMinimumTriggerIntervalInSeconds: number;
- Type: number
public readonly userTaskTimeoutMs: number;
- Type: number
Name | Type | Description |
---|---|---|
tfResourceType |
string |
No description. |
public readonly tfResourceType: string;
- Type: string
import { database } from '@cdktf/provider-snowflake'
const databaseConfig: database.DatabaseConfig = { ... }
Name | Type | Description |
---|---|---|
connection |
cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection |
No description. |
count |
number | cdktf.TerraformCount |
No description. |
dependsOn |
cdktf.ITerraformDependable[] |
No description. |
forEach |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] |
No description. |
name |
string |
Specifies the identifier for the database; |
catalog |
string |
The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see CATALOG. |
comment |
string |
Specifies a comment for the database. |
dataRetentionTimeInDays |
number |
Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. |
defaultDdlCollation |
string |
Specifies a default collation specification for all schemas and tables added to the database. |
dropPublicSchemaOnCreation |
boolean | cdktf.IResolvable |
Specifies whether to drop public schema on creation or not. |
enableConsoleOutput |
boolean | cdktf.IResolvable |
If true, enables stdout/stderr fast path logging for anonymous stored procedures. |
externalVolume |
string |
The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see EXTERNAL_VOLUME. |
id |
string |
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#id Database#id}. |
isTransient |
boolean | cdktf.IResolvable |
Specifies the database as transient. |
logLevel |
string |
Specifies the severity level of messages that should be ingested and made available in the active event table. |
maxDataExtensionTimeInDays |
number |
Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. |
quotedIdentifiersIgnoreCase |
boolean | cdktf.IResolvable |
If true, the case of quoted identifiers is ignored. For more information, see QUOTED_IDENTIFIERS_IGNORE_CASE. |
replaceInvalidCharacters |
boolean | cdktf.IResolvable |
Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. |
replication |
DatabaseReplication |
replication block. |
storageSerializationPolicy |
string |
The storage serialization policy for Iceberg tables that use Snowflake as the catalog. |
suspendTaskAfterNumFailures |
number |
How many times a task must fail in a row before it is automatically suspended. |
taskAutoRetryAttempts |
number |
Maximum automatic retries allowed for a user task. For more information, see TASK_AUTO_RETRY_ATTEMPTS. |
traceLevel |
string |
Controls how trace events are ingested into the event table. |
userTaskManagedInitialWarehouseSize |
string |
The initial size of warehouse to use for managed warehouses in the absence of history. |
userTaskMinimumTriggerIntervalInSeconds |
number |
Minimum amount of time between Triggered Task executions in seconds. |
userTaskTimeoutMs |
number |
User task execution timeout in milliseconds. For more information, see USER_TASK_TIMEOUT_MS. |
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: ITerraformDependable[];
- Type: cdktf.ITerraformDependable[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly name: string;
- Type: string
Specifies the identifier for the database;
must be unique for your account. As a best practice for Database Replication and Failover, it is recommended to give each secondary database the same name as its primary database. This practice supports referencing fully-qualified objects (i.e. '..') by other objects in the same database, such as querying a fully-qualified table name in a view. If a secondary database has a different name from the primary database, then these object references would break in the secondary database. Due to technical limitations (read more here), avoid using the following characters: |
, .
, "
.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#name Database#name}
public readonly catalog: string;
- Type: string
The database parameter that specifies the default catalog to use for Iceberg tables. For more information, see CATALOG.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#catalog Database#catalog}
public readonly comment: string;
- Type: string
Specifies a comment for the database.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#comment Database#comment}
public readonly dataRetentionTimeInDays: number;
- Type: number
Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database.
For more details, see Understanding & Using Time Travel.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#data_retention_time_in_days Database#data_retention_time_in_days}
public readonly defaultDdlCollation: string;
- Type: string
Specifies a default collation specification for all schemas and tables added to the database.
It can be overridden on schema or table level. For more information, see collation specification.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#default_ddl_collation Database#default_ddl_collation}
public readonly dropPublicSchemaOnCreation: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Specifies whether to drop public schema on creation or not.
Modifying the parameter after database is already created won't have any effect.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#drop_public_schema_on_creation Database#drop_public_schema_on_creation}
public readonly enableConsoleOutput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
If true, enables stdout/stderr fast path logging for anonymous stored procedures.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#enable_console_output Database#enable_console_output}
public readonly externalVolume: string;
- Type: string
The database parameter that specifies the default external volume to use for Iceberg tables. For more information, see EXTERNAL_VOLUME.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#external_volume Database#external_volume}
public readonly id: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#id Database#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.
public readonly isTransient: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Specifies the database as transient.
Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#is_transient Database#is_transient}
public readonly logLevel: string;
- Type: string
Specifies the severity level of messages that should be ingested and made available in the active event table.
Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see LOG_LEVEL.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#log_level Database#log_level}
public readonly maxDataExtensionTimeInDays: number;
- Type: number
Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale.
For a detailed description of this parameter, see MAX_DATA_EXTENSION_TIME_IN_DAYS.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#max_data_extension_time_in_days Database#max_data_extension_time_in_days}
public readonly quotedIdentifiersIgnoreCase: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
If true, the case of quoted identifiers is ignored. For more information, see QUOTED_IDENTIFIERS_IGNORE_CASE.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#quoted_identifiers_ignore_case Database#quoted_identifiers_ignore_case}
public readonly replaceInvalidCharacters: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table.
You can only set this parameter for tables that use an external Iceberg catalog. For more information, see REPLACE_INVALID_CHARACTERS.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#replace_invalid_characters Database#replace_invalid_characters}
public readonly replication: DatabaseReplication;
- Type: DatabaseReplication
replication block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#replication Database#replication}
public readonly storageSerializationPolicy: string;
- Type: string
The storage serialization policy for Iceberg tables that use Snowflake as the catalog.
Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake. For more information, see STORAGE_SERIALIZATION_POLICY.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#storage_serialization_policy Database#storage_serialization_policy}
public readonly suspendTaskAfterNumFailures: number;
- Type: number
How many times a task must fail in a row before it is automatically suspended.
0 disables auto-suspending. For more information, see SUSPEND_TASK_AFTER_NUM_FAILURES.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#suspend_task_after_num_failures Database#suspend_task_after_num_failures}
public readonly taskAutoRetryAttempts: number;
- Type: number
Maximum automatic retries allowed for a user task. For more information, see TASK_AUTO_RETRY_ATTEMPTS.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#task_auto_retry_attempts Database#task_auto_retry_attempts}
public readonly traceLevel: string;
- Type: string
Controls how trace events are ingested into the event table.
Valid options are: [ALWAYS ON_EVENT OFF]. For information about levels, see TRACE_LEVEL.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#trace_level Database#trace_level}
public readonly userTaskManagedInitialWarehouseSize: string;
- Type: string
The initial size of warehouse to use for managed warehouses in the absence of history.
For more information, see USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#user_task_managed_initial_warehouse_size Database#user_task_managed_initial_warehouse_size}
public readonly userTaskMinimumTriggerIntervalInSeconds: number;
- Type: number
Minimum amount of time between Triggered Task executions in seconds.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#user_task_minimum_trigger_interval_in_seconds Database#user_task_minimum_trigger_interval_in_seconds}
public readonly userTaskTimeoutMs: number;
- Type: number
User task execution timeout in milliseconds. For more information, see USER_TASK_TIMEOUT_MS.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#user_task_timeout_ms Database#user_task_timeout_ms}
import { database } from '@cdktf/provider-snowflake'
const databaseReplication: database.DatabaseReplication = { ... }
Name | Type | Description |
---|---|---|
enableToAccount |
cdktf.IResolvable | DatabaseReplicationEnableToAccount[] |
enable_to_account block. |
ignoreEditionCheck |
boolean | cdktf.IResolvable |
Allows replicating data to accounts on lower editions in either of the following scenarios: 1. |
public readonly enableToAccount: IResolvable | DatabaseReplicationEnableToAccount[];
- Type: cdktf.IResolvable | DatabaseReplicationEnableToAccount[]
enable_to_account block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#enable_to_account Database#enable_to_account}
public readonly ignoreEditionCheck: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Allows replicating data to accounts on lower editions in either of the following scenarios: 1.
The primary database is in a Business Critical (or higher) account but one or more of the accounts approved for replication are on lower editions. Business Critical Edition is intended for Snowflake accounts with extremely sensitive data. 2. The primary database is in a Business Critical (or higher) account and a signed business associate agreement is in place to store PHI data in the account per HIPAA and HITRUST regulations, but no such agreement is in place for one or more of the accounts approved for replication, regardless if they are Business Critical (or higher) accounts. Both scenarios are prohibited by default in an effort to help prevent account administrators for Business Critical (or higher) accounts from inadvertently replicating sensitive data to accounts on lower editions.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#ignore_edition_check Database#ignore_edition_check}
import { database } from '@cdktf/provider-snowflake'
const databaseReplicationEnableToAccount: database.DatabaseReplicationEnableToAccount = { ... }
Name | Type | Description |
---|---|---|
accountIdentifier |
string |
Specifies account identifier for which replication should be enabled. |
withFailover |
boolean | cdktf.IResolvable |
Specifies if failover should be enabled for the specified account identifier. |
public readonly accountIdentifier: string;
- Type: string
Specifies account identifier for which replication should be enabled.
The account identifiers should be in the form of "<organization_name>"."<account_name>"
. For more information about this resource, see docs.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#account_identifier Database#account_identifier}
public readonly withFailover: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Specifies if failover should be enabled for the specified account identifier.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/1.0.1/docs/resources/database#with_failover Database#with_failover}
import { database } from '@cdktf/provider-snowflake'
new database.DatabaseReplicationEnableToAccountList(terraformResource: IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
wrapsSet |
boolean |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: boolean
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
allWithMapKey |
Creating an iterator for this complex list. |
computeFqn |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
get |
No description. |
public allWithMapKey(mapKeyAttributeName: string): DynamicListTerraformIterator
Creating an iterator for this complex list.
The list will be converted into a map with the mapKeyAttributeName as the key.
- Type: string
public computeFqn(): string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public get(index: number): DatabaseReplicationEnableToAccountOutputReference
- Type: number
the index of the item to return.
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
internalValue |
cdktf.IResolvable | DatabaseReplicationEnableToAccount[] |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly internalValue: IResolvable | DatabaseReplicationEnableToAccount[];
- Type: cdktf.IResolvable | DatabaseReplicationEnableToAccount[]
import { database } from '@cdktf/provider-snowflake'
new database.DatabaseReplicationEnableToAccountOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
complexObjectIndex |
number |
the index of this item in the list. |
complexObjectIsFromSet |
boolean |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: number
the index of this item in the list.
- Type: boolean
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
computeFqn |
No description. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
resetWithFailover |
No description. |
public computeFqn(): string
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(property: string): IResolvable
- Type: string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public resetWithFailover(): void
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
accountIdentifierInput |
string |
No description. |
withFailoverInput |
boolean | cdktf.IResolvable |
No description. |
accountIdentifier |
string |
No description. |
withFailover |
boolean | cdktf.IResolvable |
No description. |
internalValue |
cdktf.IResolvable | DatabaseReplicationEnableToAccount |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly accountIdentifierInput: string;
- Type: string
public readonly withFailoverInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly accountIdentifier: string;
- Type: string
public readonly withFailover: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly internalValue: IResolvable | DatabaseReplicationEnableToAccount;
- Type: cdktf.IResolvable | DatabaseReplicationEnableToAccount
import { database } from '@cdktf/provider-snowflake'
new database.DatabaseReplicationOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
computeFqn |
No description. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
putEnableToAccount |
No description. |
resetIgnoreEditionCheck |
No description. |
public computeFqn(): string
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(property: string): IResolvable
- Type: string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public putEnableToAccount(value: IResolvable | DatabaseReplicationEnableToAccount[]): void
- Type: cdktf.IResolvable | DatabaseReplicationEnableToAccount[]
public resetIgnoreEditionCheck(): void
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
enableToAccount |
DatabaseReplicationEnableToAccountList |
No description. |
enableToAccountInput |
cdktf.IResolvable | DatabaseReplicationEnableToAccount[] |
No description. |
ignoreEditionCheckInput |
boolean | cdktf.IResolvable |
No description. |
ignoreEditionCheck |
boolean | cdktf.IResolvable |
No description. |
internalValue |
DatabaseReplication |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly enableToAccount: DatabaseReplicationEnableToAccountList;
public readonly enableToAccountInput: IResolvable | DatabaseReplicationEnableToAccount[];
- Type: cdktf.IResolvable | DatabaseReplicationEnableToAccount[]
public readonly ignoreEditionCheckInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly ignoreEditionCheck: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly internalValue: DatabaseReplication;
- Type: DatabaseReplication