@pulumi/snowflake 0.56.0-alpha.1721327760 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
- package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
- package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
- package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
- package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
- package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
- package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
- package/cortexSearchService.d.ts +159 -0
- package/cortexSearchService.js +92 -0
- package/cortexSearchService.js.map +1 -0
- package/database.d.ts +240 -77
- package/database.js +94 -45
- package/database.js.map +1 -1
- package/databaseOld.d.ts +187 -0
- package/databaseOld.js +110 -0
- package/databaseOld.js.map +1 -0
- package/externalOauthIntegration.d.ts +118 -116
- package/externalOauthIntegration.js +43 -55
- package/externalOauthIntegration.js.map +1 -1
- package/failoverGroup.d.ts +1 -1
- package/failoverGroup.js +1 -1
- package/getCortexSearchServices.d.ts +136 -0
- package/getCortexSearchServices.js +83 -0
- package/getCortexSearchServices.js.map +1 -0
- package/getDatabases.d.ts +41 -38
- package/getDatabases.js +8 -17
- package/getDatabases.js.map +1 -1
- package/getSecurityIntegrations.d.ts +61 -0
- package/getSecurityIntegrations.js +31 -0
- package/getSecurityIntegrations.js.map +1 -0
- package/getWarehouses.d.ts +53 -17
- package/getWarehouses.js +13 -18
- package/getWarehouses.js.map +1 -1
- package/grantPrivilegesToDatabaseRole.d.ts +0 -2
- package/grantPrivilegesToDatabaseRole.js +0 -2
- package/grantPrivilegesToDatabaseRole.js.map +1 -1
- package/index.d.ts +37 -82
- package/index.js +60 -139
- package/index.js.map +1 -1
- package/managedAccount.d.ts +3 -3
- package/oauthIntegration.d.ts +2 -0
- package/oauthIntegration.js +2 -0
- package/oauthIntegration.js.map +1 -1
- package/oauthIntegrationForCustomClients.d.ts +274 -0
- package/oauthIntegrationForCustomClients.js +148 -0
- package/oauthIntegrationForCustomClients.js.map +1 -0
- package/oauthIntegrationForPartnerApplications.d.ts +162 -0
- package/oauthIntegrationForPartnerApplications.js +84 -0
- package/oauthIntegrationForPartnerApplications.js.map +1 -0
- package/package.json +2 -2
- package/saml2Integration.d.ts +267 -0
- package/saml2Integration.js +106 -0
- package/saml2Integration.js.map +1 -0
- package/samlIntegration.d.ts +2 -0
- package/samlIntegration.js +2 -0
- package/samlIntegration.js.map +1 -1
- package/scimIntegration.d.ts +67 -33
- package/scimIntegration.js +19 -20
- package/scimIntegration.js.map +1 -1
- package/secondaryDatabase.d.ts +289 -0
- package/secondaryDatabase.js +103 -0
- package/secondaryDatabase.js.map +1 -0
- package/sequence.d.ts +3 -3
- package/sequence.js +3 -3
- package/sharedDatabase.d.ts +251 -0
- package/sharedDatabase.js +95 -0
- package/sharedDatabase.js.map +1 -0
- package/tagAssociation.d.ts +19 -19
- package/tagAssociation.js +19 -19
- package/types/input.d.ts +1015 -75
- package/types/output.d.ts +1835 -280
- package/userPasswordPolicyAttachment.d.ts +18 -0
- package/userPasswordPolicyAttachment.js +18 -0
- package/userPasswordPolicyAttachment.js.map +1 -1
- package/warehouse.d.ts +61 -48
- package/warehouse.js +8 -2
- package/warehouse.js.map +1 -1
- package/accountGrant.d.ts +0 -102
- package/accountGrant.js +0 -82
- package/accountGrant.js.map +0 -1
- package/databaseGrant.d.ts +0 -143
- package/databaseGrant.js +0 -96
- package/databaseGrant.js.map +0 -1
- package/externalTableGrant.d.ts +0 -194
- package/externalTableGrant.js +0 -110
- package/externalTableGrant.js.map +0 -1
- package/failoverGroupGrant.d.ts +0 -102
- package/failoverGroupGrant.js +0 -65
- package/failoverGroupGrant.js.map +0 -1
- package/fileFormatGrant.d.ts +0 -178
- package/fileFormatGrant.js +0 -104
- package/fileFormatGrant.js.map +0 -1
- package/functionGrant.d.ts +0 -210
- package/functionGrant.js +0 -116
- package/functionGrant.js.map +0 -1
- package/grantPrivilegesToRole.d.ts +0 -323
- package/grantPrivilegesToRole.js +0 -255
- package/grantPrivilegesToRole.js.map +0 -1
- package/integrationGrant.d.ts +0 -127
- package/integrationGrant.js +0 -90
- package/integrationGrant.js.map +0 -1
- package/maskingPolicyGrant.d.ts +0 -154
- package/maskingPolicyGrant.js +0 -103
- package/maskingPolicyGrant.js.map +0 -1
- package/materializedViewGrant.d.ts +0 -194
- package/materializedViewGrant.js +0 -107
- package/materializedViewGrant.js.map +0 -1
- package/pipeGrant.d.ts +0 -166
- package/pipeGrant.js +0 -99
- package/pipeGrant.js.map +0 -1
- package/procedureGrant.d.ts +0 -210
- package/procedureGrant.js +0 -116
- package/procedureGrant.js.map +0 -1
- package/resourceMonitorGrant.d.ts +0 -112
- package/resourceMonitorGrant.js +0 -85
- package/resourceMonitorGrant.js.map +0 -1
- package/roleGrants.d.ts +0 -115
- package/roleGrants.js +0 -98
- package/roleGrants.js.map +0 -1
- package/roleOwnershipGrant.d.ts +0 -108
- package/roleOwnershipGrant.js +0 -94
- package/roleOwnershipGrant.js.map +0 -1
- package/rowAccessPolicyGrant.d.ts +0 -153
- package/rowAccessPolicyGrant.js +0 -102
- package/rowAccessPolicyGrant.js.map +0 -1
- package/schemaGrant.d.ts +0 -172
- package/schemaGrant.js +0 -104
- package/schemaGrant.js.map +0 -1
- package/sequenceGrant.d.ts +0 -178
- package/sequenceGrant.js +0 -104
- package/sequenceGrant.js.map +0 -1
- package/stageGrant.d.ts +0 -178
- package/stageGrant.js +0 -104
- package/stageGrant.js.map +0 -1
- package/streamGrant.d.ts +0 -178
- package/streamGrant.js +0 -104
- package/streamGrant.js.map +0 -1
- package/tableGrant.d.ts +0 -188
- package/tableGrant.js +0 -101
- package/tableGrant.js.map +0 -1
- package/tagGrant.d.ts +0 -149
- package/tagGrant.js +0 -98
- package/tagGrant.js.map +0 -1
- package/taskGrant.d.ts +0 -178
- package/taskGrant.js +0 -104
- package/taskGrant.js.map +0 -1
- package/userGrant.d.ts +0 -115
- package/userGrant.js +0 -91
- package/userGrant.js.map +0 -1
- package/userOwnershipGrant.d.ts +0 -78
- package/userOwnershipGrant.js +0 -64
- package/userOwnershipGrant.js.map +0 -1
- package/viewGrant.d.ts +0 -205
- package/viewGrant.js +0 -118
- package/viewGrant.js.map +0 -1
- package/warehouseGrant.d.ts +0 -127
- package/warehouseGrant.js +0 -90
- package/warehouseGrant.js.map +0 -1
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
4
|
+
*
|
|
5
|
+
* A shared database creates a database from a share provided by another Snowflake account. For more information about shares, see [Introduction to Secure Data Sharing](https://docs.snowflake.com/en/user-guide/data-sharing-intro).
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import snowflake:index/sharedDatabase:SharedDatabase example 'shared_database_name'
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class SharedDatabase extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing SharedDatabase resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SharedDatabaseState, opts?: pulumi.CustomResourceOptions): SharedDatabase;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of SharedDatabase. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is SharedDatabase;
|
|
29
|
+
/**
|
|
30
|
+
* The database parameter that specifies the default catalog to use for Iceberg tables.
|
|
31
|
+
*/
|
|
32
|
+
readonly catalog: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies a comment for the database.
|
|
35
|
+
*/
|
|
36
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* 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](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
39
|
+
*/
|
|
40
|
+
readonly defaultDdlCollation: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
43
|
+
*/
|
|
44
|
+
readonly enableConsoleOutput: pulumi.Output<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* The database parameter that specifies the default external volume to use for Iceberg tables.
|
|
47
|
+
*/
|
|
48
|
+
readonly externalVolume: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`.
|
|
51
|
+
*/
|
|
52
|
+
readonly fromShare: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* 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](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
55
|
+
*/
|
|
56
|
+
readonly logLevel: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* If true, the case of quoted identifiers is ignored.
|
|
63
|
+
*/
|
|
64
|
+
readonly quotedIdentifiersIgnoreCase: pulumi.Output<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* 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.
|
|
67
|
+
*/
|
|
68
|
+
readonly replaceInvalidCharacters: pulumi.Output<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
*/
|
|
72
|
+
readonly storageSerializationPolicy: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
|
|
75
|
+
*/
|
|
76
|
+
readonly suspendTaskAfterNumFailures: pulumi.Output<number>;
|
|
77
|
+
/**
|
|
78
|
+
* Maximum automatic retries allowed for a user task.
|
|
79
|
+
*/
|
|
80
|
+
readonly taskAutoRetryAttempts: pulumi.Output<number>;
|
|
81
|
+
/**
|
|
82
|
+
* Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
83
|
+
*/
|
|
84
|
+
readonly traceLevel: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The initial size of warehouse to use for managed warehouses in the absence of history.
|
|
87
|
+
*/
|
|
88
|
+
readonly userTaskManagedInitialWarehouseSize: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Minimum amount of time between Triggered Task executions in seconds.
|
|
91
|
+
*/
|
|
92
|
+
readonly userTaskMinimumTriggerIntervalInSeconds: pulumi.Output<number>;
|
|
93
|
+
/**
|
|
94
|
+
* User task execution timeout in milliseconds.
|
|
95
|
+
*/
|
|
96
|
+
readonly userTaskTimeoutMs: pulumi.Output<number>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a SharedDatabase resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args: SharedDatabaseArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering SharedDatabase resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface SharedDatabaseState {
|
|
110
|
+
/**
|
|
111
|
+
* The database parameter that specifies the default catalog to use for Iceberg tables.
|
|
112
|
+
*/
|
|
113
|
+
catalog?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies a comment for the database.
|
|
116
|
+
*/
|
|
117
|
+
comment?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* 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](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
120
|
+
*/
|
|
121
|
+
defaultDdlCollation?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
124
|
+
*/
|
|
125
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* The database parameter that specifies the default external volume to use for Iceberg tables.
|
|
128
|
+
*/
|
|
129
|
+
externalVolume?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`.
|
|
132
|
+
*/
|
|
133
|
+
fromShare?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* 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](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
136
|
+
*/
|
|
137
|
+
logLevel?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
140
|
+
*/
|
|
141
|
+
name?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* If true, the case of quoted identifiers is ignored.
|
|
144
|
+
*/
|
|
145
|
+
quotedIdentifiersIgnoreCase?: pulumi.Input<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* 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.
|
|
148
|
+
*/
|
|
149
|
+
replaceInvalidCharacters?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* 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.
|
|
152
|
+
*/
|
|
153
|
+
storageSerializationPolicy?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
|
|
156
|
+
*/
|
|
157
|
+
suspendTaskAfterNumFailures?: pulumi.Input<number>;
|
|
158
|
+
/**
|
|
159
|
+
* Maximum automatic retries allowed for a user task.
|
|
160
|
+
*/
|
|
161
|
+
taskAutoRetryAttempts?: pulumi.Input<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
164
|
+
*/
|
|
165
|
+
traceLevel?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The initial size of warehouse to use for managed warehouses in the absence of history.
|
|
168
|
+
*/
|
|
169
|
+
userTaskManagedInitialWarehouseSize?: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Minimum amount of time between Triggered Task executions in seconds.
|
|
172
|
+
*/
|
|
173
|
+
userTaskMinimumTriggerIntervalInSeconds?: pulumi.Input<number>;
|
|
174
|
+
/**
|
|
175
|
+
* User task execution timeout in milliseconds.
|
|
176
|
+
*/
|
|
177
|
+
userTaskTimeoutMs?: pulumi.Input<number>;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The set of arguments for constructing a SharedDatabase resource.
|
|
181
|
+
*/
|
|
182
|
+
export interface SharedDatabaseArgs {
|
|
183
|
+
/**
|
|
184
|
+
* The database parameter that specifies the default catalog to use for Iceberg tables.
|
|
185
|
+
*/
|
|
186
|
+
catalog?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Specifies a comment for the database.
|
|
189
|
+
*/
|
|
190
|
+
comment?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* 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](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
|
|
193
|
+
*/
|
|
194
|
+
defaultDdlCollation?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* If true, enables stdout/stderr fast path logging for anonymous stored procedures.
|
|
197
|
+
*/
|
|
198
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
199
|
+
/**
|
|
200
|
+
* The database parameter that specifies the default external volume to use for Iceberg tables.
|
|
201
|
+
*/
|
|
202
|
+
externalVolume?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* A fully qualified path to a share from which the database will be created. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<share_name>"`.
|
|
205
|
+
*/
|
|
206
|
+
fromShare: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* 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](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
|
|
209
|
+
*/
|
|
210
|
+
logLevel?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
213
|
+
*/
|
|
214
|
+
name?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* If true, the case of quoted identifiers is ignored.
|
|
217
|
+
*/
|
|
218
|
+
quotedIdentifiersIgnoreCase?: pulumi.Input<boolean>;
|
|
219
|
+
/**
|
|
220
|
+
* 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.
|
|
221
|
+
*/
|
|
222
|
+
replaceInvalidCharacters?: pulumi.Input<boolean>;
|
|
223
|
+
/**
|
|
224
|
+
* 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.
|
|
225
|
+
*/
|
|
226
|
+
storageSerializationPolicy?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
|
|
229
|
+
*/
|
|
230
|
+
suspendTaskAfterNumFailures?: pulumi.Input<number>;
|
|
231
|
+
/**
|
|
232
|
+
* Maximum automatic retries allowed for a user task.
|
|
233
|
+
*/
|
|
234
|
+
taskAutoRetryAttempts?: pulumi.Input<number>;
|
|
235
|
+
/**
|
|
236
|
+
* Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
|
|
237
|
+
*/
|
|
238
|
+
traceLevel?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* The initial size of warehouse to use for managed warehouses in the absence of history.
|
|
241
|
+
*/
|
|
242
|
+
userTaskManagedInitialWarehouseSize?: pulumi.Input<string>;
|
|
243
|
+
/**
|
|
244
|
+
* Minimum amount of time between Triggered Task executions in seconds.
|
|
245
|
+
*/
|
|
246
|
+
userTaskMinimumTriggerIntervalInSeconds?: pulumi.Input<number>;
|
|
247
|
+
/**
|
|
248
|
+
* User task execution timeout in milliseconds.
|
|
249
|
+
*/
|
|
250
|
+
userTaskTimeoutMs?: pulumi.Input<number>;
|
|
251
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SharedDatabase = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
10
|
+
*
|
|
11
|
+
* A shared database creates a database from a share provided by another Snowflake account. For more information about shares, see [Introduction to Secure Data Sharing](https://docs.snowflake.com/en/user-guide/data-sharing-intro).
|
|
12
|
+
*
|
|
13
|
+
* ## Import
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import snowflake:index/sharedDatabase:SharedDatabase example 'shared_database_name'
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
class SharedDatabase extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing SharedDatabase resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name, id, state, opts) {
|
|
30
|
+
return new SharedDatabase(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of SharedDatabase. This is designed to work even
|
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
+
*/
|
|
36
|
+
static isInstance(obj) {
|
|
37
|
+
if (obj === undefined || obj === null) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
return obj['__pulumiType'] === SharedDatabase.__pulumiType;
|
|
41
|
+
}
|
|
42
|
+
constructor(name, argsOrState, opts) {
|
|
43
|
+
let resourceInputs = {};
|
|
44
|
+
opts = opts || {};
|
|
45
|
+
if (opts.id) {
|
|
46
|
+
const state = argsOrState;
|
|
47
|
+
resourceInputs["catalog"] = state ? state.catalog : undefined;
|
|
48
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
49
|
+
resourceInputs["defaultDdlCollation"] = state ? state.defaultDdlCollation : undefined;
|
|
50
|
+
resourceInputs["enableConsoleOutput"] = state ? state.enableConsoleOutput : undefined;
|
|
51
|
+
resourceInputs["externalVolume"] = state ? state.externalVolume : undefined;
|
|
52
|
+
resourceInputs["fromShare"] = state ? state.fromShare : undefined;
|
|
53
|
+
resourceInputs["logLevel"] = state ? state.logLevel : undefined;
|
|
54
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
55
|
+
resourceInputs["quotedIdentifiersIgnoreCase"] = state ? state.quotedIdentifiersIgnoreCase : undefined;
|
|
56
|
+
resourceInputs["replaceInvalidCharacters"] = state ? state.replaceInvalidCharacters : undefined;
|
|
57
|
+
resourceInputs["storageSerializationPolicy"] = state ? state.storageSerializationPolicy : undefined;
|
|
58
|
+
resourceInputs["suspendTaskAfterNumFailures"] = state ? state.suspendTaskAfterNumFailures : undefined;
|
|
59
|
+
resourceInputs["taskAutoRetryAttempts"] = state ? state.taskAutoRetryAttempts : undefined;
|
|
60
|
+
resourceInputs["traceLevel"] = state ? state.traceLevel : undefined;
|
|
61
|
+
resourceInputs["userTaskManagedInitialWarehouseSize"] = state ? state.userTaskManagedInitialWarehouseSize : undefined;
|
|
62
|
+
resourceInputs["userTaskMinimumTriggerIntervalInSeconds"] = state ? state.userTaskMinimumTriggerIntervalInSeconds : undefined;
|
|
63
|
+
resourceInputs["userTaskTimeoutMs"] = state ? state.userTaskTimeoutMs : undefined;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if ((!args || args.fromShare === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'fromShare'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["catalog"] = args ? args.catalog : undefined;
|
|
71
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
72
|
+
resourceInputs["defaultDdlCollation"] = args ? args.defaultDdlCollation : undefined;
|
|
73
|
+
resourceInputs["enableConsoleOutput"] = args ? args.enableConsoleOutput : undefined;
|
|
74
|
+
resourceInputs["externalVolume"] = args ? args.externalVolume : undefined;
|
|
75
|
+
resourceInputs["fromShare"] = args ? args.fromShare : undefined;
|
|
76
|
+
resourceInputs["logLevel"] = args ? args.logLevel : undefined;
|
|
77
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
+
resourceInputs["quotedIdentifiersIgnoreCase"] = args ? args.quotedIdentifiersIgnoreCase : undefined;
|
|
79
|
+
resourceInputs["replaceInvalidCharacters"] = args ? args.replaceInvalidCharacters : undefined;
|
|
80
|
+
resourceInputs["storageSerializationPolicy"] = args ? args.storageSerializationPolicy : undefined;
|
|
81
|
+
resourceInputs["suspendTaskAfterNumFailures"] = args ? args.suspendTaskAfterNumFailures : undefined;
|
|
82
|
+
resourceInputs["taskAutoRetryAttempts"] = args ? args.taskAutoRetryAttempts : undefined;
|
|
83
|
+
resourceInputs["traceLevel"] = args ? args.traceLevel : undefined;
|
|
84
|
+
resourceInputs["userTaskManagedInitialWarehouseSize"] = args ? args.userTaskManagedInitialWarehouseSize : undefined;
|
|
85
|
+
resourceInputs["userTaskMinimumTriggerIntervalInSeconds"] = args ? args.userTaskMinimumTriggerIntervalInSeconds : undefined;
|
|
86
|
+
resourceInputs["userTaskTimeoutMs"] = args ? args.userTaskTimeoutMs : undefined;
|
|
87
|
+
}
|
|
88
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
+
super(SharedDatabase.__pulumiType, name, resourceInputs, opts);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.SharedDatabase = SharedDatabase;
|
|
93
|
+
/** @internal */
|
|
94
|
+
SharedDatabase.__pulumiType = 'snowflake:index/sharedDatabase:SharedDatabase';
|
|
95
|
+
//# sourceMappingURL=sharedDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedDatabase.js","sourceRoot":"","sources":["../sharedDatabase.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,MA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.ts
CHANGED
|
@@ -8,15 +8,15 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as snowflake from "@pulumi/snowflake";
|
|
10
10
|
*
|
|
11
|
-
* const
|
|
12
|
-
* const
|
|
11
|
+
* const test = new snowflake.Database("test", {name: "database"});
|
|
12
|
+
* const testSchema = new snowflake.Schema("test", {
|
|
13
13
|
* name: "schema",
|
|
14
|
-
* database:
|
|
14
|
+
* database: test.name,
|
|
15
15
|
* });
|
|
16
|
-
* const
|
|
16
|
+
* const testTag = new snowflake.Tag("test", {
|
|
17
17
|
* name: "cost_center",
|
|
18
|
-
* database:
|
|
19
|
-
* schema:
|
|
18
|
+
* database: test.name,
|
|
19
|
+
* schema: testSchema.name,
|
|
20
20
|
* allowedValues: [
|
|
21
21
|
* "finance",
|
|
22
22
|
* "engineering",
|
|
@@ -24,15 +24,15 @@ import * as outputs from "./types/output";
|
|
|
24
24
|
* });
|
|
25
25
|
* const dbAssociation = new snowflake.TagAssociation("db_association", {
|
|
26
26
|
* objectIdentifiers: [{
|
|
27
|
-
* name:
|
|
27
|
+
* name: test.name,
|
|
28
28
|
* }],
|
|
29
29
|
* objectType: "DATABASE",
|
|
30
|
-
* tagId:
|
|
30
|
+
* tagId: testTag.id,
|
|
31
31
|
* tagValue: "finance",
|
|
32
32
|
* });
|
|
33
|
-
* const
|
|
34
|
-
* database:
|
|
35
|
-
* schema:
|
|
33
|
+
* const testTable = new snowflake.Table("test", {
|
|
34
|
+
* database: test.name,
|
|
35
|
+
* schema: testSchema.name,
|
|
36
36
|
* name: "TABLE_NAME",
|
|
37
37
|
* comment: "Terraform example table",
|
|
38
38
|
* columns: [
|
|
@@ -48,22 +48,22 @@ import * as outputs from "./types/output";
|
|
|
48
48
|
* });
|
|
49
49
|
* const tableAssociation = new snowflake.TagAssociation("table_association", {
|
|
50
50
|
* objectIdentifiers: [{
|
|
51
|
-
* name:
|
|
52
|
-
* database:
|
|
53
|
-
* schema:
|
|
51
|
+
* name: testTable.name,
|
|
52
|
+
* database: test.name,
|
|
53
|
+
* schema: testSchema.name,
|
|
54
54
|
* }],
|
|
55
55
|
* objectType: "TABLE",
|
|
56
|
-
* tagId:
|
|
56
|
+
* tagId: testTag.id,
|
|
57
57
|
* tagValue: "engineering",
|
|
58
58
|
* });
|
|
59
59
|
* const columnAssociation = new snowflake.TagAssociation("column_association", {
|
|
60
60
|
* objectIdentifiers: [{
|
|
61
|
-
* name: pulumi.interpolate`${
|
|
62
|
-
* database:
|
|
63
|
-
* schema:
|
|
61
|
+
* name: pulumi.interpolate`${testTable.name}.column_name`,
|
|
62
|
+
* database: test.name,
|
|
63
|
+
* schema: testSchema.name,
|
|
64
64
|
* }],
|
|
65
65
|
* objectType: "COLUMN",
|
|
66
|
-
* tagId:
|
|
66
|
+
* tagId: testTag.id,
|
|
67
67
|
* tagValue: "engineering",
|
|
68
68
|
* });
|
|
69
69
|
* ```
|
package/tagAssociation.js
CHANGED
|
@@ -12,15 +12,15 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
|
-
* const
|
|
16
|
-
* const
|
|
15
|
+
* const test = new snowflake.Database("test", {name: "database"});
|
|
16
|
+
* const testSchema = new snowflake.Schema("test", {
|
|
17
17
|
* name: "schema",
|
|
18
|
-
* database:
|
|
18
|
+
* database: test.name,
|
|
19
19
|
* });
|
|
20
|
-
* const
|
|
20
|
+
* const testTag = new snowflake.Tag("test", {
|
|
21
21
|
* name: "cost_center",
|
|
22
|
-
* database:
|
|
23
|
-
* schema:
|
|
22
|
+
* database: test.name,
|
|
23
|
+
* schema: testSchema.name,
|
|
24
24
|
* allowedValues: [
|
|
25
25
|
* "finance",
|
|
26
26
|
* "engineering",
|
|
@@ -28,15 +28,15 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* });
|
|
29
29
|
* const dbAssociation = new snowflake.TagAssociation("db_association", {
|
|
30
30
|
* objectIdentifiers: [{
|
|
31
|
-
* name:
|
|
31
|
+
* name: test.name,
|
|
32
32
|
* }],
|
|
33
33
|
* objectType: "DATABASE",
|
|
34
|
-
* tagId:
|
|
34
|
+
* tagId: testTag.id,
|
|
35
35
|
* tagValue: "finance",
|
|
36
36
|
* });
|
|
37
|
-
* const
|
|
38
|
-
* database:
|
|
39
|
-
* schema:
|
|
37
|
+
* const testTable = new snowflake.Table("test", {
|
|
38
|
+
* database: test.name,
|
|
39
|
+
* schema: testSchema.name,
|
|
40
40
|
* name: "TABLE_NAME",
|
|
41
41
|
* comment: "Terraform example table",
|
|
42
42
|
* columns: [
|
|
@@ -52,22 +52,22 @@ const utilities = require("./utilities");
|
|
|
52
52
|
* });
|
|
53
53
|
* const tableAssociation = new snowflake.TagAssociation("table_association", {
|
|
54
54
|
* objectIdentifiers: [{
|
|
55
|
-
* name:
|
|
56
|
-
* database:
|
|
57
|
-
* schema:
|
|
55
|
+
* name: testTable.name,
|
|
56
|
+
* database: test.name,
|
|
57
|
+
* schema: testSchema.name,
|
|
58
58
|
* }],
|
|
59
59
|
* objectType: "TABLE",
|
|
60
|
-
* tagId:
|
|
60
|
+
* tagId: testTag.id,
|
|
61
61
|
* tagValue: "engineering",
|
|
62
62
|
* });
|
|
63
63
|
* const columnAssociation = new snowflake.TagAssociation("column_association", {
|
|
64
64
|
* objectIdentifiers: [{
|
|
65
|
-
* name: pulumi.interpolate`${
|
|
66
|
-
* database:
|
|
67
|
-
* schema:
|
|
65
|
+
* name: pulumi.interpolate`${testTable.name}.column_name`,
|
|
66
|
+
* database: test.name,
|
|
67
|
+
* schema: testSchema.name,
|
|
68
68
|
* }],
|
|
69
69
|
* objectType: "COLUMN",
|
|
70
|
-
* tagId:
|
|
70
|
+
* tagId: testTag.id,
|
|
71
71
|
* tagValue: "engineering",
|
|
72
72
|
* });
|
|
73
73
|
* ```
|