@pulumi/snowflake 0.61.0-alpha.1731393894 → 0.61.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/accountAuthenticationPolicyAttachment.d.ts +48 -0
- package/accountAuthenticationPolicyAttachment.js +52 -0
- package/accountAuthenticationPolicyAttachment.js.map +1 -0
- package/authenticationPolicy.d.ts +177 -0
- package/authenticationPolicy.js +84 -0
- package/authenticationPolicy.js.map +1 -0
- package/config/vars.d.ts +79 -36
- package/config/vars.js +46 -4
- package/config/vars.js.map +1 -1
- package/externalVolume.d.ts +113 -0
- package/externalVolume.js +67 -0
- package/externalVolume.js.map +1 -0
- package/getConnections.d.ts +91 -0
- package/getConnections.js +76 -0
- package/getConnections.js.map +1 -0
- package/getGrants.d.ts +4 -0
- package/getGrants.js +4 -0
- package/getGrants.js.map +1 -1
- package/getSecrets.d.ts +140 -0
- package/getSecrets.js +104 -0
- package/getSecrets.js.map +1 -0
- package/getStreams.d.ts +58 -37
- package/getStreams.js +16 -24
- package/getStreams.js.map +1 -1
- package/grantAccountRole.d.ts +1 -1
- package/grantAccountRole.js +1 -1
- package/grantApplicationRole.d.ts +1 -1
- package/grantApplicationRole.js +1 -1
- package/grantDatabaseRole.d.ts +1 -1
- package/grantDatabaseRole.js +1 -1
- package/grantOwnership.d.ts +7 -7
- package/grantOwnership.js +7 -7
- package/grantPrivilegesToAccountRole.d.ts +4 -4
- package/grantPrivilegesToAccountRole.js +4 -4
- package/grantPrivilegesToDatabaseRole.d.ts +4 -4
- package/grantPrivilegesToDatabaseRole.js +4 -4
- package/grantPrivilegesToShare.d.ts +1 -1
- package/grantPrivilegesToShare.js +1 -1
- package/index.d.ts +42 -0
- package/index.js +70 -4
- package/index.js.map +1 -1
- package/legacyServiceUser.d.ts +2 -0
- package/legacyServiceUser.js +2 -0
- package/legacyServiceUser.js.map +1 -1
- package/package.json +2 -2
- package/primaryConnection.d.ts +99 -0
- package/primaryConnection.js +66 -0
- package/primaryConnection.js.map +1 -0
- package/provider.d.ts +158 -54
- package/provider.js +11 -4
- package/provider.js.map +1 -1
- package/secondaryConnection.d.ts +105 -0
- package/secondaryConnection.js +69 -0
- package/secondaryConnection.js.map +1 -0
- package/secretWithAuthorizationCodeGrant.d.ts +152 -0
- package/secretWithAuthorizationCodeGrant.js +93 -0
- package/secretWithAuthorizationCodeGrant.js.map +1 -0
- package/secretWithBasicAuthentication.d.ts +140 -0
- package/secretWithBasicAuthentication.js +88 -0
- package/secretWithBasicAuthentication.js.map +1 -0
- package/secretWithClientCredentials.d.ts +149 -0
- package/secretWithClientCredentials.js +86 -0
- package/secretWithClientCredentials.js.map +1 -0
- package/secretWithGenericString.d.ts +128 -0
- package/secretWithGenericString.js +83 -0
- package/secretWithGenericString.js.map +1 -0
- package/streamOnDirectoryTable.d.ts +151 -0
- package/streamOnDirectoryTable.js +85 -0
- package/streamOnDirectoryTable.js.map +1 -0
- package/streamOnExternalTable.d.ts +10 -0
- package/streamOnExternalTable.js +4 -0
- package/streamOnExternalTable.js.map +1 -1
- package/streamOnTable.d.ts +10 -0
- package/streamOnTable.js +4 -0
- package/streamOnTable.js.map +1 -1
- package/streamOnView.d.ts +172 -0
- package/streamOnView.js +93 -0
- package/streamOnView.js.map +1 -0
- package/tagAssociation.d.ts +3 -3
- package/types/input.d.ts +407 -4
- package/types/output.d.ts +448 -7
- package/user.d.ts +2 -0
- package/user.js +2 -0
- package/user.js.map +1 -1
- package/userAuthenticationPolicyAttachment.d.ts +60 -0
- package/userAuthenticationPolicyAttachment.js +57 -0
- package/userAuthenticationPolicyAttachment.js.map +1 -0
package/provider.d.ts
CHANGED
|
@@ -13,16 +13,27 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
13
13
|
*/
|
|
14
14
|
static isInstance(obj: any): obj is Provider;
|
|
15
15
|
/**
|
|
16
|
-
* Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
17
|
-
* [
|
|
18
|
-
*
|
|
16
|
+
* Use `accountName` and `organizationName` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
17
|
+
* The [account
|
|
18
|
+
* locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
19
|
+
* is not supported. For information about account identifiers, see the [Snowflake
|
|
20
|
+
* documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
21
|
+
* Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Use `accountName` and `organizationName` instead of `account`
|
|
19
24
|
*/
|
|
20
25
|
readonly account: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
28
|
+
* [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
29
|
+
* unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
30
|
+
*/
|
|
31
|
+
readonly accountName: pulumi.Output<string | undefined>;
|
|
21
32
|
/**
|
|
22
33
|
* Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
23
|
-
* connecting to Snowflake. Valid
|
|
24
|
-
*
|
|
25
|
-
*
|
|
34
|
+
* connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `JWT` | `SNOWFLAKE_JWT`
|
|
35
|
+
* | `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Value `JWT` is deprecated and will be removed in future releases. Can also be
|
|
36
|
+
* sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
26
37
|
*/
|
|
27
38
|
readonly authenticator: pulumi.Output<string | undefined>;
|
|
28
39
|
/**
|
|
@@ -30,10 +41,35 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
30
41
|
*/
|
|
31
42
|
readonly clientIp: pulumi.Output<string | undefined>;
|
|
32
43
|
/**
|
|
33
|
-
*
|
|
34
|
-
* the `
|
|
44
|
+
* When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
45
|
+
* be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
46
|
+
*/
|
|
47
|
+
readonly clientRequestMfaToken: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
50
|
+
* sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
51
|
+
*/
|
|
52
|
+
readonly clientStoreTemporaryCredential: pulumi.Output<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
55
|
+
* `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
56
|
+
*/
|
|
57
|
+
readonly disableConsoleLogin: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
60
|
+
* `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
61
|
+
*/
|
|
62
|
+
readonly driverTracing: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
|
|
65
|
+
* `SNOWFLAKE_HOST` environment variable.
|
|
35
66
|
*/
|
|
36
67
|
readonly host: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
70
|
+
* variable.
|
|
71
|
+
*/
|
|
72
|
+
readonly includeRetryReason: pulumi.Output<string | undefined>;
|
|
37
73
|
/**
|
|
38
74
|
* Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browserAuth`,
|
|
39
75
|
* `privateKeyPath`, `oauthRefreshToken` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment
|
|
@@ -77,28 +113,40 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
77
113
|
*/
|
|
78
114
|
readonly oauthRefreshToken: pulumi.Output<string | undefined>;
|
|
79
115
|
/**
|
|
80
|
-
*
|
|
81
|
-
* variable.
|
|
116
|
+
* True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
117
|
+
* sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
118
|
+
*/
|
|
119
|
+
readonly ocspFailOpen: pulumi.Output<string | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* The URL of the Okta server. e.g. https://example.okta.com. Okta URL host needs to to have a suffix `okta.com`. Read more
|
|
122
|
+
* in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
|
|
123
|
+
* `SNOWFLAKE_OKTA_URL` environment variable.
|
|
82
124
|
*/
|
|
83
125
|
readonly oktaUrl: pulumi.Output<string | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
128
|
+
* [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
129
|
+
* unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
130
|
+
*/
|
|
131
|
+
readonly organizationName: pulumi.Output<string | undefined>;
|
|
84
132
|
/**
|
|
85
133
|
* Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
|
|
86
134
|
* the `SNOWFLAKE_PASSCODE` environment variable.
|
|
87
135
|
*/
|
|
88
136
|
readonly passcode: pulumi.Output<string | undefined>;
|
|
89
137
|
/**
|
|
90
|
-
* Password for
|
|
138
|
+
* Password for user + password auth. Cannot be used with `browserAuth` or `privateKeyPath`. Can also be sourced from the
|
|
91
139
|
* `SNOWFLAKE_PASSWORD` environment variable.
|
|
92
140
|
*/
|
|
93
141
|
readonly password: pulumi.Output<string | undefined>;
|
|
94
142
|
/**
|
|
95
|
-
* Private Key for username+private-key auth. Cannot be used with `browserAuth` or `password`. Can also be sourced from
|
|
143
|
+
* Private Key for username+private-key auth. Cannot be used with `browserAuth` or `password`. Can also be sourced from the
|
|
96
144
|
* `SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
97
145
|
*/
|
|
98
146
|
readonly privateKey: pulumi.Output<string | undefined>;
|
|
99
147
|
/**
|
|
100
148
|
* Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
101
|
-
* des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
149
|
+
* des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
102
150
|
*/
|
|
103
151
|
readonly privateKeyPassphrase: pulumi.Output<string | undefined>;
|
|
104
152
|
/**
|
|
@@ -114,7 +162,8 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
114
162
|
*/
|
|
115
163
|
readonly profile: pulumi.Output<string | undefined>;
|
|
116
164
|
/**
|
|
117
|
-
*
|
|
165
|
+
* A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
|
|
166
|
+
* `SNOWFLAKE_PROTOCOL` environment variable.
|
|
118
167
|
*/
|
|
119
168
|
readonly protocol: pulumi.Output<string | undefined>;
|
|
120
169
|
/**
|
|
@@ -130,25 +179,35 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
130
179
|
readonly region: pulumi.Output<string | undefined>;
|
|
131
180
|
/**
|
|
132
181
|
* Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
133
|
-
* `SNOWFLAKE_ROLE` environment variable.
|
|
182
|
+
* `SNOWFLAKE_ROLE` environment variable.
|
|
134
183
|
*/
|
|
135
184
|
readonly role: pulumi.Output<string | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
187
|
+
* the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
188
|
+
*/
|
|
189
|
+
readonly tmpDirectoryPath: pulumi.Output<string | undefined>;
|
|
136
190
|
/**
|
|
137
191
|
* Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
|
|
138
192
|
* variable.
|
|
139
193
|
*/
|
|
140
194
|
readonly token: pulumi.Output<string | undefined>;
|
|
141
195
|
/**
|
|
142
|
-
* Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
196
|
+
* Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
143
197
|
*/
|
|
144
198
|
readonly user: pulumi.Output<string | undefined>;
|
|
145
199
|
/**
|
|
146
|
-
* Username for
|
|
147
|
-
*
|
|
200
|
+
* Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
201
|
+
* `SNOWFLAKE_USERNAME` environment variable.
|
|
148
202
|
*
|
|
149
203
|
* @deprecated Use `user` instead of `username`
|
|
150
204
|
*/
|
|
151
205
|
readonly username: pulumi.Output<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
208
|
+
* connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
209
|
+
*/
|
|
210
|
+
readonly validateDefaultParameters: pulumi.Output<string | undefined>;
|
|
152
211
|
/**
|
|
153
212
|
* Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
|
|
154
213
|
* from the `SNOWFLAKE_WAREHOUSE` environment variable.
|
|
@@ -168,16 +227,27 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
168
227
|
*/
|
|
169
228
|
export interface ProviderArgs {
|
|
170
229
|
/**
|
|
171
|
-
* Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
172
|
-
* [
|
|
173
|
-
*
|
|
230
|
+
* Use `accountName` and `organizationName` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
231
|
+
* The [account
|
|
232
|
+
* locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
233
|
+
* is not supported. For information about account identifiers, see the [Snowflake
|
|
234
|
+
* documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
235
|
+
* Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
236
|
+
*
|
|
237
|
+
* @deprecated Use `accountName` and `organizationName` instead of `account`
|
|
174
238
|
*/
|
|
175
239
|
account?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
242
|
+
* [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
243
|
+
* unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
244
|
+
*/
|
|
245
|
+
accountName?: pulumi.Input<string>;
|
|
176
246
|
/**
|
|
177
247
|
* Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
178
|
-
* connecting to Snowflake. Valid
|
|
179
|
-
*
|
|
180
|
-
*
|
|
248
|
+
* connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `JWT` | `SNOWFLAKE_JWT`
|
|
249
|
+
* | `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Value `JWT` is deprecated and will be removed in future releases. Can also be
|
|
250
|
+
* sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
181
251
|
*/
|
|
182
252
|
authenticator?: pulumi.Input<string>;
|
|
183
253
|
/**
|
|
@@ -194,36 +264,51 @@ export interface ProviderArgs {
|
|
|
194
264
|
* When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
195
265
|
* be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
196
266
|
*/
|
|
197
|
-
clientRequestMfaToken?: pulumi.Input<
|
|
267
|
+
clientRequestMfaToken?: pulumi.Input<string>;
|
|
198
268
|
/**
|
|
199
269
|
* When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
200
270
|
* sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
201
271
|
*/
|
|
202
|
-
clientStoreTemporaryCredential?: pulumi.Input<
|
|
272
|
+
clientStoreTemporaryCredential?: pulumi.Input<string>;
|
|
203
273
|
/**
|
|
204
|
-
* The timeout in seconds for the client to complete the authentication.
|
|
205
|
-
*
|
|
274
|
+
* The timeout in seconds for the client to complete the authentication. Can also be sourced from the
|
|
275
|
+
* `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
206
276
|
*/
|
|
207
277
|
clientTimeout?: pulumi.Input<number>;
|
|
208
278
|
/**
|
|
209
|
-
*
|
|
279
|
+
* Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
280
|
+
* `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
281
|
+
*/
|
|
282
|
+
disableConsoleLogin?: pulumi.Input<string>;
|
|
283
|
+
/**
|
|
284
|
+
* Disables HTAP query context cache in the driver. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
|
|
210
285
|
* environment variable.
|
|
211
286
|
*/
|
|
212
287
|
disableQueryContextCache?: pulumi.Input<boolean>;
|
|
213
288
|
/**
|
|
214
|
-
*
|
|
289
|
+
* Disables telemetry in the driver. Can also be sourced from the `DISABLE_TELEMETRY` environment variable.
|
|
215
290
|
*/
|
|
216
291
|
disableTelemetry?: pulumi.Input<boolean>;
|
|
217
292
|
/**
|
|
218
|
-
*
|
|
219
|
-
* sourced from the `
|
|
293
|
+
* Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
294
|
+
* `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
295
|
+
*/
|
|
296
|
+
driverTracing?: pulumi.Input<string>;
|
|
297
|
+
/**
|
|
298
|
+
* The timeout in seconds for the external browser to complete the authentication. Can also be sourced from the
|
|
299
|
+
* `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
220
300
|
*/
|
|
221
301
|
externalBrowserTimeout?: pulumi.Input<number>;
|
|
222
302
|
/**
|
|
223
|
-
*
|
|
224
|
-
*
|
|
303
|
+
* Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
|
|
304
|
+
* `SNOWFLAKE_HOST` environment variable.
|
|
225
305
|
*/
|
|
226
306
|
host?: pulumi.Input<string>;
|
|
307
|
+
/**
|
|
308
|
+
* Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
309
|
+
* variable.
|
|
310
|
+
*/
|
|
311
|
+
includeRetryReason?: pulumi.Input<string>;
|
|
227
312
|
/**
|
|
228
313
|
* If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
|
|
229
314
|
* default value for testing or emergency situations only. Can also be sourced from the `SNOWFLAKE_INSECURE_MODE`
|
|
@@ -231,8 +316,8 @@ export interface ProviderArgs {
|
|
|
231
316
|
*/
|
|
232
317
|
insecureMode?: pulumi.Input<boolean>;
|
|
233
318
|
/**
|
|
234
|
-
* The timeout in seconds for the JWT client to complete the authentication.
|
|
235
|
-
*
|
|
319
|
+
* The timeout in seconds for the JWT client to complete the authentication. Can also be sourced from the
|
|
320
|
+
* `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
236
321
|
*/
|
|
237
322
|
jwtClientTimeout?: pulumi.Input<number>;
|
|
238
323
|
/**
|
|
@@ -245,10 +330,15 @@ export interface ProviderArgs {
|
|
|
245
330
|
*/
|
|
246
331
|
keepSessionAlive?: pulumi.Input<boolean>;
|
|
247
332
|
/**
|
|
248
|
-
* Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
333
|
+
* Login retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
249
334
|
* `SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
250
335
|
*/
|
|
251
336
|
loginTimeout?: pulumi.Input<number>;
|
|
337
|
+
/**
|
|
338
|
+
* Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
339
|
+
* `SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
340
|
+
*/
|
|
341
|
+
maxRetryCount?: pulumi.Input<number>;
|
|
252
342
|
/**
|
|
253
343
|
* Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browserAuth`,
|
|
254
344
|
* `privateKeyPath`, `oauthRefreshToken` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment
|
|
@@ -295,14 +385,22 @@ export interface ProviderArgs {
|
|
|
295
385
|
* True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
296
386
|
* sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
297
387
|
*/
|
|
298
|
-
ocspFailOpen?: pulumi.Input<
|
|
388
|
+
ocspFailOpen?: pulumi.Input<string>;
|
|
299
389
|
/**
|
|
300
|
-
* The URL of the Okta server. e.g. https://example.okta.com.
|
|
301
|
-
*
|
|
390
|
+
* The URL of the Okta server. e.g. https://example.okta.com. Okta URL host needs to to have a suffix `okta.com`. Read more
|
|
391
|
+
* in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
|
|
392
|
+
* `SNOWFLAKE_OKTA_URL` environment variable.
|
|
302
393
|
*/
|
|
303
394
|
oktaUrl?: pulumi.Input<string>;
|
|
304
395
|
/**
|
|
305
|
-
*
|
|
396
|
+
* Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
397
|
+
* [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
398
|
+
* unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
399
|
+
*/
|
|
400
|
+
organizationName?: pulumi.Input<string>;
|
|
401
|
+
/**
|
|
402
|
+
* Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters).
|
|
403
|
+
* This field can not be set with environmental variables.
|
|
306
404
|
*/
|
|
307
405
|
params?: pulumi.Input<{
|
|
308
406
|
[key: string]: pulumi.Input<string>;
|
|
@@ -313,28 +411,28 @@ export interface ProviderArgs {
|
|
|
313
411
|
*/
|
|
314
412
|
passcode?: pulumi.Input<string>;
|
|
315
413
|
/**
|
|
316
|
-
* False by default. Set to true if the MFA passcode is embedded
|
|
317
|
-
*
|
|
414
|
+
* False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
|
|
415
|
+
* `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
318
416
|
*/
|
|
319
417
|
passcodeInPassword?: pulumi.Input<boolean>;
|
|
320
418
|
/**
|
|
321
|
-
* Password for
|
|
419
|
+
* Password for user + password auth. Cannot be used with `browserAuth` or `privateKeyPath`. Can also be sourced from the
|
|
322
420
|
* `SNOWFLAKE_PASSWORD` environment variable.
|
|
323
421
|
*/
|
|
324
422
|
password?: pulumi.Input<string>;
|
|
325
423
|
/**
|
|
326
|
-
*
|
|
424
|
+
* Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
|
|
327
425
|
* `SNOWFLAKE_PORT` environment variable.
|
|
328
426
|
*/
|
|
329
427
|
port?: pulumi.Input<number>;
|
|
330
428
|
/**
|
|
331
|
-
* Private Key for username+private-key auth. Cannot be used with `browserAuth` or `password`. Can also be sourced from
|
|
429
|
+
* Private Key for username+private-key auth. Cannot be used with `browserAuth` or `password`. Can also be sourced from the
|
|
332
430
|
* `SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
333
431
|
*/
|
|
334
432
|
privateKey?: pulumi.Input<string>;
|
|
335
433
|
/**
|
|
336
434
|
* Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
337
|
-
* des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
435
|
+
* des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
338
436
|
*/
|
|
339
437
|
privateKeyPassphrase?: pulumi.Input<string>;
|
|
340
438
|
/**
|
|
@@ -350,7 +448,8 @@ export interface ProviderArgs {
|
|
|
350
448
|
*/
|
|
351
449
|
profile?: pulumi.Input<string>;
|
|
352
450
|
/**
|
|
353
|
-
*
|
|
451
|
+
* A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
|
|
452
|
+
* `SNOWFLAKE_PROTOCOL` environment variable.
|
|
354
453
|
*/
|
|
355
454
|
protocol?: pulumi.Input<string>;
|
|
356
455
|
/**
|
|
@@ -365,13 +464,13 @@ export interface ProviderArgs {
|
|
|
365
464
|
*/
|
|
366
465
|
region?: pulumi.Input<string>;
|
|
367
466
|
/**
|
|
368
|
-
* request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
467
|
+
* request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
369
468
|
* `SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
370
469
|
*/
|
|
371
470
|
requestTimeout?: pulumi.Input<number>;
|
|
372
471
|
/**
|
|
373
472
|
* Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
374
|
-
* `SNOWFLAKE_ROLE` environment variable.
|
|
473
|
+
* `SNOWFLAKE_ROLE` environment variable.
|
|
375
474
|
*/
|
|
376
475
|
role?: pulumi.Input<string>;
|
|
377
476
|
/**
|
|
@@ -382,6 +481,11 @@ export interface ProviderArgs {
|
|
|
382
481
|
sessionParams?: pulumi.Input<{
|
|
383
482
|
[key: string]: pulumi.Input<string>;
|
|
384
483
|
}>;
|
|
484
|
+
/**
|
|
485
|
+
* Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
486
|
+
* the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
487
|
+
*/
|
|
488
|
+
tmpDirectoryPath?: pulumi.Input<string>;
|
|
385
489
|
/**
|
|
386
490
|
* Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
|
|
387
491
|
* variable.
|
|
@@ -389,12 +493,12 @@ export interface ProviderArgs {
|
|
|
389
493
|
token?: pulumi.Input<string>;
|
|
390
494
|
tokenAccessor?: pulumi.Input<inputs.ProviderTokenAccessor>;
|
|
391
495
|
/**
|
|
392
|
-
* Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
496
|
+
* Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
393
497
|
*/
|
|
394
498
|
user?: pulumi.Input<string>;
|
|
395
499
|
/**
|
|
396
|
-
* Username for
|
|
397
|
-
*
|
|
500
|
+
* Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
501
|
+
* `SNOWFLAKE_USERNAME` environment variable.
|
|
398
502
|
*
|
|
399
503
|
* @deprecated Use `user` instead of `username`
|
|
400
504
|
*/
|
|
@@ -403,7 +507,7 @@ export interface ProviderArgs {
|
|
|
403
507
|
* True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
404
508
|
* connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
405
509
|
*/
|
|
406
|
-
validateDefaultParameters?: pulumi.Input<
|
|
510
|
+
validateDefaultParameters?: pulumi.Input<string>;
|
|
407
511
|
/**
|
|
408
512
|
* Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
|
|
409
513
|
* from the `SNOWFLAKE_WAREHOUSE` environment variable.
|
package/provider.js
CHANGED
|
@@ -35,29 +35,35 @@ class Provider extends pulumi.ProviderResource {
|
|
|
35
35
|
opts = opts || {};
|
|
36
36
|
{
|
|
37
37
|
resourceInputs["account"] = (_a = (args ? args.account : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnv("SNOWFLAKE_ACCOUNT");
|
|
38
|
+
resourceInputs["accountName"] = args ? args.accountName : undefined;
|
|
38
39
|
resourceInputs["authenticator"] = args ? args.authenticator : undefined;
|
|
39
40
|
resourceInputs["browserAuth"] = pulumi.output((_b = (args ? args.browserAuth : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnvBoolean("SNOWFLAKE_USE_BROWSER_AUTH")).apply(JSON.stringify);
|
|
40
41
|
resourceInputs["clientIp"] = args ? args.clientIp : undefined;
|
|
41
|
-
resourceInputs["clientRequestMfaToken"] =
|
|
42
|
-
resourceInputs["clientStoreTemporaryCredential"] =
|
|
42
|
+
resourceInputs["clientRequestMfaToken"] = args ? args.clientRequestMfaToken : undefined;
|
|
43
|
+
resourceInputs["clientStoreTemporaryCredential"] = args ? args.clientStoreTemporaryCredential : undefined;
|
|
43
44
|
resourceInputs["clientTimeout"] = pulumi.output(args ? args.clientTimeout : undefined).apply(JSON.stringify);
|
|
45
|
+
resourceInputs["disableConsoleLogin"] = args ? args.disableConsoleLogin : undefined;
|
|
44
46
|
resourceInputs["disableQueryContextCache"] = pulumi.output(args ? args.disableQueryContextCache : undefined).apply(JSON.stringify);
|
|
45
47
|
resourceInputs["disableTelemetry"] = pulumi.output(args ? args.disableTelemetry : undefined).apply(JSON.stringify);
|
|
48
|
+
resourceInputs["driverTracing"] = args ? args.driverTracing : undefined;
|
|
46
49
|
resourceInputs["externalBrowserTimeout"] = pulumi.output(args ? args.externalBrowserTimeout : undefined).apply(JSON.stringify);
|
|
47
50
|
resourceInputs["host"] = (_c = (args ? args.host : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnv("SNOWFLAKE_HOST");
|
|
51
|
+
resourceInputs["includeRetryReason"] = args ? args.includeRetryReason : undefined;
|
|
48
52
|
resourceInputs["insecureMode"] = pulumi.output(args ? args.insecureMode : undefined).apply(JSON.stringify);
|
|
49
53
|
resourceInputs["jwtClientTimeout"] = pulumi.output(args ? args.jwtClientTimeout : undefined).apply(JSON.stringify);
|
|
50
54
|
resourceInputs["jwtExpireTimeout"] = pulumi.output(args ? args.jwtExpireTimeout : undefined).apply(JSON.stringify);
|
|
51
55
|
resourceInputs["keepSessionAlive"] = pulumi.output(args ? args.keepSessionAlive : undefined).apply(JSON.stringify);
|
|
52
56
|
resourceInputs["loginTimeout"] = pulumi.output(args ? args.loginTimeout : undefined).apply(JSON.stringify);
|
|
57
|
+
resourceInputs["maxRetryCount"] = pulumi.output(args ? args.maxRetryCount : undefined).apply(JSON.stringify);
|
|
53
58
|
resourceInputs["oauthAccessToken"] = (_d = ((args === null || args === void 0 ? void 0 : args.oauthAccessToken) ? pulumi.secret(args.oauthAccessToken) : undefined)) !== null && _d !== void 0 ? _d : utilities.getEnv("SNOWFLAKE_OAUTH_ACCESS_TOKEN");
|
|
54
59
|
resourceInputs["oauthClientId"] = (_e = ((args === null || args === void 0 ? void 0 : args.oauthClientId) ? pulumi.secret(args.oauthClientId) : undefined)) !== null && _e !== void 0 ? _e : utilities.getEnv("SNOWFLAKE_OAUTH_CLIENT_ID");
|
|
55
60
|
resourceInputs["oauthClientSecret"] = (_f = ((args === null || args === void 0 ? void 0 : args.oauthClientSecret) ? pulumi.secret(args.oauthClientSecret) : undefined)) !== null && _f !== void 0 ? _f : utilities.getEnv("SNOWFLAKE_OAUTH_CLIENT_SECRET");
|
|
56
61
|
resourceInputs["oauthEndpoint"] = (_g = ((args === null || args === void 0 ? void 0 : args.oauthEndpoint) ? pulumi.secret(args.oauthEndpoint) : undefined)) !== null && _g !== void 0 ? _g : utilities.getEnv("SNOWFLAKE_OAUTH_ENDPOINT");
|
|
57
62
|
resourceInputs["oauthRedirectUrl"] = (_h = ((args === null || args === void 0 ? void 0 : args.oauthRedirectUrl) ? pulumi.secret(args.oauthRedirectUrl) : undefined)) !== null && _h !== void 0 ? _h : utilities.getEnv("SNOWFLAKE_OAUTH_REDIRECT_URL");
|
|
58
63
|
resourceInputs["oauthRefreshToken"] = (_j = ((args === null || args === void 0 ? void 0 : args.oauthRefreshToken) ? pulumi.secret(args.oauthRefreshToken) : undefined)) !== null && _j !== void 0 ? _j : utilities.getEnv("SNOWFLAKE_OAUTH_REFRESH_TOKEN");
|
|
59
|
-
resourceInputs["ocspFailOpen"] =
|
|
64
|
+
resourceInputs["ocspFailOpen"] = args ? args.ocspFailOpen : undefined;
|
|
60
65
|
resourceInputs["oktaUrl"] = args ? args.oktaUrl : undefined;
|
|
66
|
+
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
|
|
61
67
|
resourceInputs["params"] = pulumi.output(args ? args.params : undefined).apply(JSON.stringify);
|
|
62
68
|
resourceInputs["passcode"] = args ? args.passcode : undefined;
|
|
63
69
|
resourceInputs["passcodeInPassword"] = pulumi.output(args ? args.passcodeInPassword : undefined).apply(JSON.stringify);
|
|
@@ -72,11 +78,12 @@ class Provider extends pulumi.ProviderResource {
|
|
|
72
78
|
resourceInputs["requestTimeout"] = pulumi.output(args ? args.requestTimeout : undefined).apply(JSON.stringify);
|
|
73
79
|
resourceInputs["role"] = (_r = (args ? args.role : undefined)) !== null && _r !== void 0 ? _r : utilities.getEnv("SNOWFLAKE_ROLE");
|
|
74
80
|
resourceInputs["sessionParams"] = pulumi.output(args ? args.sessionParams : undefined).apply(JSON.stringify);
|
|
81
|
+
resourceInputs["tmpDirectoryPath"] = args ? args.tmpDirectoryPath : undefined;
|
|
75
82
|
resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
|
|
76
83
|
resourceInputs["tokenAccessor"] = pulumi.output(args ? args.tokenAccessor : undefined).apply(JSON.stringify);
|
|
77
84
|
resourceInputs["user"] = args ? args.user : undefined;
|
|
78
85
|
resourceInputs["username"] = (_s = (args ? args.username : undefined)) !== null && _s !== void 0 ? _s : utilities.getEnv("SNOWFLAKE_USER");
|
|
79
|
-
resourceInputs["validateDefaultParameters"] =
|
|
86
|
+
resourceInputs["validateDefaultParameters"] = args ? args.validateDefaultParameters : undefined;
|
|
80
87
|
resourceInputs["warehouse"] = (_t = (args ? args.warehouse : undefined)) !== null && _t !== void 0 ? _t : utilities.getEnv("SNOWFLAKE_WAREHOUSE");
|
|
81
88
|
}
|
|
82
89
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAA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 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/secondaryConnection:SecondaryConnection example 'secondary_connection_name'
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class SecondaryConnection extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing SecondaryConnection resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecondaryConnectionState, opts?: pulumi.CustomResourceOptions): SecondaryConnection;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of SecondaryConnection. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is SecondaryConnection;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
29
|
+
*/
|
|
30
|
+
readonly asReplicaOf: pulumi.Output<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies a comment for the secondary connection.
|
|
33
|
+
*/
|
|
34
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
37
|
+
*/
|
|
38
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
41
|
+
*/
|
|
42
|
+
readonly isPrimary: pulumi.Output<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
49
|
+
*/
|
|
50
|
+
readonly showOutputs: pulumi.Output<outputs.SecondaryConnectionShowOutput[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a SecondaryConnection resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: SecondaryConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Input properties used for looking up and filtering SecondaryConnection resources.
|
|
62
|
+
*/
|
|
63
|
+
export interface SecondaryConnectionState {
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
66
|
+
*/
|
|
67
|
+
asReplicaOf?: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies a comment for the secondary connection.
|
|
70
|
+
*/
|
|
71
|
+
comment?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
74
|
+
*/
|
|
75
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Indicates if the connection primary status has been changed. If change is detected, resource will be recreated.
|
|
78
|
+
*/
|
|
79
|
+
isPrimary?: pulumi.Input<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
82
|
+
*/
|
|
83
|
+
name?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Outputs the result of `SHOW CONNECTIONS` for the given connection.
|
|
86
|
+
*/
|
|
87
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.SecondaryConnectionShowOutput>[]>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The set of arguments for constructing a SecondaryConnection resource.
|
|
91
|
+
*/
|
|
92
|
+
export interface SecondaryConnectionArgs {
|
|
93
|
+
/**
|
|
94
|
+
* Specifies the identifier for a primary connection from which to create a replica (i.e. a secondary connection).
|
|
95
|
+
*/
|
|
96
|
+
asReplicaOf: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies a comment for the secondary connection.
|
|
99
|
+
*/
|
|
100
|
+
comment?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a secondary connection, the name must match the name of its primary connection. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
103
|
+
*/
|
|
104
|
+
name?: pulumi.Input<string>;
|
|
105
|
+
}
|