@pulumi/snowflake 0.15.0 → 0.15.1-alpha.1675107060
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/account.d.ts +215 -0
- package/account.js +117 -0
- package/account.js.map +1 -0
- package/accountParameter.d.ts +83 -0
- package/accountParameter.js +80 -0
- package/accountParameter.js.map +1 -0
- package/apiIntegration.d.ts +1 -1
- package/apiIntegration.js +1 -1
- package/database.d.ts +3 -3
- package/database.js +3 -3
- package/externalFunction.d.ts +1 -1
- package/externalFunction.js +1 -1
- package/externalTable.d.ts +1 -1
- package/externalTable.js +1 -1
- package/externalTableGrant.d.ts +2 -2
- package/externalTableGrant.js +3 -0
- package/externalTableGrant.js.map +1 -1
- package/failoverGroup.d.ts +2 -2
- package/failoverGroup.js +2 -2
- package/fileFormat.d.ts +1 -1
- package/fileFormat.js +1 -1
- package/fileFormatGrant.d.ts +4 -4
- package/fileFormatGrant.js +2 -2
- package/fileFormatGrant.js.map +1 -1
- package/functionGrant.d.ts +4 -4
- package/functionGrant.js +2 -2
- package/functionGrant.js.map +1 -1
- package/getCurrentAccount.js +1 -4
- package/getCurrentAccount.js.map +1 -1
- package/getCurrentRole.d.ts +15 -0
- package/getCurrentRole.js +13 -0
- package/getCurrentRole.js.map +1 -0
- package/getDatabase.d.ts +14 -2
- package/getDatabase.js +16 -7
- package/getDatabase.js.map +1 -1
- package/getDatabases.d.ts +1 -1
- package/getDatabases.js +2 -5
- package/getDatabases.js.map +1 -1
- package/getExternalFunctions.d.ts +15 -2
- package/getExternalFunctions.js +17 -7
- package/getExternalFunctions.js.map +1 -1
- package/getExternalTables.d.ts +15 -2
- package/getExternalTables.js +17 -7
- package/getExternalTables.js.map +1 -1
- package/getFileFormats.d.ts +15 -2
- package/getFileFormats.js +17 -7
- package/getFileFormats.js.map +1 -1
- package/getFunctions.d.ts +15 -2
- package/getFunctions.js +17 -7
- package/getFunctions.js.map +1 -1
- package/getGrants.d.ts +62 -21
- package/getGrants.js +64 -26
- package/getGrants.js.map +1 -1
- package/getMaskingPolicies.d.ts +15 -2
- package/getMaskingPolicies.js +17 -7
- package/getMaskingPolicies.js.map +1 -1
- package/getMaterializedViews.d.ts +15 -2
- package/getMaterializedViews.js +17 -7
- package/getMaterializedViews.js.map +1 -1
- package/getParameters.d.ts +121 -0
- package/getParameters.js +69 -0
- package/getParameters.js.map +1 -0
- package/getPipes.d.ts +15 -2
- package/getPipes.js +17 -7
- package/getPipes.js.map +1 -1
- package/getProcedures.d.ts +15 -2
- package/getProcedures.js +17 -7
- package/getProcedures.js.map +1 -1
- package/getResourceMonitors.d.ts +1 -1
- package/getResourceMonitors.js +2 -5
- package/getResourceMonitors.js.map +1 -1
- package/getRole.d.ts +14 -2
- package/getRole.js +16 -7
- package/getRole.js.map +1 -1
- package/getRoles.js +2 -5
- package/getRoles.js.map +1 -1
- package/getRowAccessPolicies.d.ts +15 -2
- package/getRowAccessPolicies.js +17 -7
- package/getRowAccessPolicies.js.map +1 -1
- package/getSchemas.d.ts +14 -2
- package/getSchemas.js +16 -7
- package/getSchemas.js.map +1 -1
- package/getSequences.d.ts +15 -2
- package/getSequences.js +17 -7
- package/getSequences.js.map +1 -1
- package/getStages.d.ts +15 -2
- package/getStages.js +17 -7
- package/getStages.js.map +1 -1
- package/getStorageIntegrations.d.ts +1 -1
- package/getStorageIntegrations.js +2 -5
- package/getStorageIntegrations.js.map +1 -1
- package/getStreams.d.ts +15 -2
- package/getStreams.js +17 -7
- package/getStreams.js.map +1 -1
- package/getSystemGenerateScimAccessToken.d.ts +14 -2
- package/getSystemGenerateScimAccessToken.js +16 -7
- package/getSystemGenerateScimAccessToken.js.map +1 -1
- package/getSystemGetAwsSnsIamPolicy.js +2 -5
- package/getSystemGetAwsSnsIamPolicy.js.map +1 -1
- package/getSystemGetPrivateLinkConfig.js +1 -4
- package/getSystemGetPrivateLinkConfig.js.map +1 -1
- package/getSystemGetSnowflakePlatformInfo.js +1 -4
- package/getSystemGetSnowflakePlatformInfo.js.map +1 -1
- package/getTables.d.ts +15 -2
- package/getTables.js +17 -7
- package/getTables.js.map +1 -1
- package/getTasks.d.ts +15 -2
- package/getTasks.js +17 -7
- package/getTasks.js.map +1 -1
- package/getUsers.d.ts +14 -2
- package/getUsers.js +16 -7
- package/getUsers.js.map +1 -1
- package/getViews.d.ts +15 -2
- package/getViews.js +17 -7
- package/getViews.js.map +1 -1
- package/getWarehouses.d.ts +1 -1
- package/getWarehouses.js +2 -5
- package/getWarehouses.js.map +1 -1
- package/index.d.ts +17 -0
- package/index.js +121 -96
- package/index.js.map +1 -1
- package/managedAccount.d.ts +0 -17
- package/managedAccount.js +0 -17
- package/managedAccount.js.map +1 -1
- package/maskingPolicy.d.ts +1 -1
- package/maskingPolicy.js +1 -1
- package/notificationIntegration.d.ts +0 -1
- package/notificationIntegration.js +0 -1
- package/notificationIntegration.js.map +1 -1
- package/oauthIntegration.d.ts +1 -1
- package/oauthIntegration.js +1 -1
- package/objectParameter.d.ts +138 -0
- package/objectParameter.js +119 -0
- package/objectParameter.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/pipe.d.ts +0 -17
- package/pipe.js +0 -17
- package/pipe.js.map +1 -1
- package/pipeGrant.d.ts +2 -2
- package/pipeGrant.js +0 -3
- package/pipeGrant.js.map +1 -1
- package/procedureGrant.d.ts +4 -4
- package/procedureGrant.js +2 -2
- package/procedureGrant.js.map +1 -1
- package/role.d.ts +1 -3
- package/role.js +1 -3
- package/role.js.map +1 -1
- package/rowAccessPolicy.d.ts +1 -1
- package/rowAccessPolicy.js +1 -1
- package/samlIntegration.d.ts +1 -1
- package/samlIntegration.js +1 -1
- package/sequenceGrant.d.ts +4 -4
- package/sequenceGrant.js +2 -2
- package/sequenceGrant.js.map +1 -1
- package/sessionParameter.d.ts +79 -0
- package/sessionParameter.js +76 -0
- package/sessionParameter.js.map +1 -0
- package/stageGrant.d.ts +4 -4
- package/stageGrant.js +2 -2
- package/stageGrant.js.map +1 -1
- package/storageIntegration.d.ts +0 -17
- package/storageIntegration.js +0 -17
- package/storageIntegration.js.map +1 -1
- package/stream.d.ts +0 -17
- package/stream.js +0 -17
- package/stream.js.map +1 -1
- package/streamGrant.d.ts +4 -4
- package/streamGrant.js +2 -2
- package/streamGrant.js.map +1 -1
- package/table.d.ts +6 -0
- package/table.js.map +1 -1
- package/taskGrant.d.ts +4 -4
- package/taskGrant.js +2 -2
- package/taskGrant.js.map +1 -1
- package/types/input.d.ts +28 -14
- package/types/output.d.ts +22 -0
- package/viewGrant.d.ts +10 -1
- package/viewGrant.js +10 -1
- package/viewGrant.js.map +1 -1
package/account.d.ts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The account resource allows you to create and manage Snowflake accounts.
|
|
4
|
+
*
|
|
5
|
+
* **WARNING** This resource cannot be destroyed!!! The only way to delete accounts is to go through [Snowflake Support](https://docs.snowflake.com/en/user-guide/organizations-manage-accounts.html#deleting-an-account)
|
|
6
|
+
*
|
|
7
|
+
* **NOTE** ORGADMIN priviliges are required for this resource
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const orgadmin = new snowflake.Provider("orgadmin", {role: "ORGADMIN"});
|
|
16
|
+
* const ac1 = new snowflake.Account("ac1", {
|
|
17
|
+
* adminName: "John Doe",
|
|
18
|
+
* adminPassword: "Abcd1234!",
|
|
19
|
+
* email: "john.doe@snowflake.com",
|
|
20
|
+
* firstName: "John",
|
|
21
|
+
* lastName: "Doe",
|
|
22
|
+
* mustChangePassword: true,
|
|
23
|
+
* edition: "STANDARD",
|
|
24
|
+
* comment: "Snowflake Test Account",
|
|
25
|
+
* region: "AWS_US_WEST_2",
|
|
26
|
+
* }, {
|
|
27
|
+
* provider: snowflake.orgadmin,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import snowflake:index/account:Account account <account_locator>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class Account extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing Account resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountState, opts?: pulumi.CustomResourceOptions): Account;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Account. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is Account;
|
|
53
|
+
/**
|
|
54
|
+
* Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
55
|
+
*/
|
|
56
|
+
readonly adminName: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
59
|
+
*/
|
|
60
|
+
readonly adminPassword: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
63
|
+
*/
|
|
64
|
+
readonly adminRsaPublicKey: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies a comment for the account.
|
|
67
|
+
*/
|
|
68
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
|
|
71
|
+
*/
|
|
72
|
+
readonly edition: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
75
|
+
*/
|
|
76
|
+
readonly email: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* First name of the initial administrative user of the account
|
|
79
|
+
*/
|
|
80
|
+
readonly firstName: pulumi.Output<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* Last name of the initial administrative user of the account
|
|
83
|
+
*/
|
|
84
|
+
readonly lastName: pulumi.Output<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
87
|
+
*/
|
|
88
|
+
readonly mustChangePassword: pulumi.Output<boolean | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
91
|
+
*/
|
|
92
|
+
readonly name: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
95
|
+
*/
|
|
96
|
+
readonly region: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
99
|
+
*/
|
|
100
|
+
readonly regionGroup: pulumi.Output<string | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Create a Account resource with the given unique name, arguments, and options.
|
|
103
|
+
*
|
|
104
|
+
* @param name The _unique_ name of the resource.
|
|
105
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
106
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
107
|
+
*/
|
|
108
|
+
constructor(name: string, args: AccountArgs, opts?: pulumi.CustomResourceOptions);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Input properties used for looking up and filtering Account resources.
|
|
112
|
+
*/
|
|
113
|
+
export interface AccountState {
|
|
114
|
+
/**
|
|
115
|
+
* Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
116
|
+
*/
|
|
117
|
+
adminName?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
120
|
+
*/
|
|
121
|
+
adminPassword?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
124
|
+
*/
|
|
125
|
+
adminRsaPublicKey?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies a comment for the account.
|
|
128
|
+
*/
|
|
129
|
+
comment?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
|
|
132
|
+
*/
|
|
133
|
+
edition?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
136
|
+
*/
|
|
137
|
+
email?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* First name of the initial administrative user of the account
|
|
140
|
+
*/
|
|
141
|
+
firstName?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Last name of the initial administrative user of the account
|
|
144
|
+
*/
|
|
145
|
+
lastName?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
148
|
+
*/
|
|
149
|
+
mustChangePassword?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
152
|
+
*/
|
|
153
|
+
name?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
156
|
+
*/
|
|
157
|
+
region?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
160
|
+
*/
|
|
161
|
+
regionGroup?: pulumi.Input<string>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The set of arguments for constructing a Account resource.
|
|
165
|
+
*/
|
|
166
|
+
export interface AccountArgs {
|
|
167
|
+
/**
|
|
168
|
+
* Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
169
|
+
*/
|
|
170
|
+
adminName: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
173
|
+
*/
|
|
174
|
+
adminPassword?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
177
|
+
*/
|
|
178
|
+
adminRsaPublicKey?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Specifies a comment for the account.
|
|
181
|
+
*/
|
|
182
|
+
comment?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* [Snowflake Edition](https://docs.snowflake.com/en/user-guide/intro-editions.html) of the account. Valid values are: STANDARD | ENTERPRISE | BUSINESS_CRITICAL
|
|
185
|
+
*/
|
|
186
|
+
edition: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
189
|
+
*/
|
|
190
|
+
email: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* First name of the initial administrative user of the account
|
|
193
|
+
*/
|
|
194
|
+
firstName?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* Last name of the initial administrative user of the account
|
|
197
|
+
*/
|
|
198
|
+
lastName?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
201
|
+
*/
|
|
202
|
+
mustChangePassword?: pulumi.Input<boolean>;
|
|
203
|
+
/**
|
|
204
|
+
* Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
205
|
+
*/
|
|
206
|
+
name?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
209
|
+
*/
|
|
210
|
+
region?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
213
|
+
*/
|
|
214
|
+
regionGroup?: pulumi.Input<string>;
|
|
215
|
+
}
|
package/account.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
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.Account = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The account resource allows you to create and manage Snowflake accounts.
|
|
10
|
+
*
|
|
11
|
+
* **WARNING** This resource cannot be destroyed!!! The only way to delete accounts is to go through [Snowflake Support](https://docs.snowflake.com/en/user-guide/organizations-manage-accounts.html#deleting-an-account)
|
|
12
|
+
*
|
|
13
|
+
* **NOTE** ORGADMIN priviliges are required for this resource
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
20
|
+
*
|
|
21
|
+
* const orgadmin = new snowflake.Provider("orgadmin", {role: "ORGADMIN"});
|
|
22
|
+
* const ac1 = new snowflake.Account("ac1", {
|
|
23
|
+
* adminName: "John Doe",
|
|
24
|
+
* adminPassword: "Abcd1234!",
|
|
25
|
+
* email: "john.doe@snowflake.com",
|
|
26
|
+
* firstName: "John",
|
|
27
|
+
* lastName: "Doe",
|
|
28
|
+
* mustChangePassword: true,
|
|
29
|
+
* edition: "STANDARD",
|
|
30
|
+
* comment: "Snowflake Test Account",
|
|
31
|
+
* region: "AWS_US_WEST_2",
|
|
32
|
+
* }, {
|
|
33
|
+
* provider: snowflake.orgadmin,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import snowflake:index/account:Account account <account_locator>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class Account extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing Account resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name, id, state, opts) {
|
|
54
|
+
return new Account(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of Account. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === Account.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["adminName"] = state ? state.adminName : undefined;
|
|
72
|
+
resourceInputs["adminPassword"] = state ? state.adminPassword : undefined;
|
|
73
|
+
resourceInputs["adminRsaPublicKey"] = state ? state.adminRsaPublicKey : undefined;
|
|
74
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
75
|
+
resourceInputs["edition"] = state ? state.edition : undefined;
|
|
76
|
+
resourceInputs["email"] = state ? state.email : undefined;
|
|
77
|
+
resourceInputs["firstName"] = state ? state.firstName : undefined;
|
|
78
|
+
resourceInputs["lastName"] = state ? state.lastName : undefined;
|
|
79
|
+
resourceInputs["mustChangePassword"] = state ? state.mustChangePassword : undefined;
|
|
80
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
81
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
82
|
+
resourceInputs["regionGroup"] = state ? state.regionGroup : undefined;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
const args = argsOrState;
|
|
86
|
+
if ((!args || args.adminName === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'adminName'");
|
|
88
|
+
}
|
|
89
|
+
if ((!args || args.edition === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'edition'");
|
|
91
|
+
}
|
|
92
|
+
if ((!args || args.email === undefined) && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'email'");
|
|
94
|
+
}
|
|
95
|
+
resourceInputs["adminName"] = args ? args.adminName : undefined;
|
|
96
|
+
resourceInputs["adminPassword"] = (args === null || args === void 0 ? void 0 : args.adminPassword) ? pulumi.secret(args.adminPassword) : undefined;
|
|
97
|
+
resourceInputs["adminRsaPublicKey"] = (args === null || args === void 0 ? void 0 : args.adminRsaPublicKey) ? pulumi.secret(args.adminRsaPublicKey) : undefined;
|
|
98
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
99
|
+
resourceInputs["edition"] = args ? args.edition : undefined;
|
|
100
|
+
resourceInputs["email"] = args ? args.email : undefined;
|
|
101
|
+
resourceInputs["firstName"] = args ? args.firstName : undefined;
|
|
102
|
+
resourceInputs["lastName"] = args ? args.lastName : undefined;
|
|
103
|
+
resourceInputs["mustChangePassword"] = args ? args.mustChangePassword : undefined;
|
|
104
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
105
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
106
|
+
resourceInputs["regionGroup"] = args ? args.regionGroup : undefined;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
const secretOpts = { additionalSecretOutputs: ["adminPassword", "adminRsaPublicKey"] };
|
|
110
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
111
|
+
super(Account.__pulumiType, name, resourceInputs, opts);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.Account = Account;
|
|
115
|
+
/** @internal */
|
|
116
|
+
Account.__pulumiType = 'snowflake:index/account:Account';
|
|
117
|
+
//# sourceMappingURL=account.js.map
|
package/account.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../account.ts"],"names":[],"mappings":";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AoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,eAAe,EAAE,mBAAmB,CAAC,EAAE,CAAC;QACvF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAlIL,0BAmIC;AArHG,gBAAgB;AACO,oBAAY,GAAG,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
8
|
+
*
|
|
9
|
+
* const accountParameter = new snowflake.AccountParameter("accountParameter", {
|
|
10
|
+
* key: "ALLOW_ID_TOKEN",
|
|
11
|
+
* value: "true",
|
|
12
|
+
* });
|
|
13
|
+
* const p2 = new snowflake.AccountParameter("p2", {
|
|
14
|
+
* key: "CLIENT_ENCRYPTION_KEY_SIZE",
|
|
15
|
+
* value: "256",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import snowflake:index/accountParameter:AccountParameter p <parameter_name>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class AccountParameter extends pulumi.CustomResource {
|
|
26
|
+
/**
|
|
27
|
+
* Get an existing AccountParameter resource's state with the given name, ID, and optional extra
|
|
28
|
+
* properties used to qualify the lookup.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resulting resource.
|
|
31
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
+
* @param state Any extra arguments used during the lookup.
|
|
33
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
+
*/
|
|
35
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountParameterState, opts?: pulumi.CustomResourceOptions): AccountParameter;
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of AccountParameter. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj: any): obj is AccountParameter;
|
|
41
|
+
/**
|
|
42
|
+
* Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
|
|
43
|
+
*/
|
|
44
|
+
readonly key: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
|
|
47
|
+
*/
|
|
48
|
+
readonly value: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a AccountParameter resource with the given unique name, arguments, and options.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resource.
|
|
53
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
54
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
55
|
+
*/
|
|
56
|
+
constructor(name: string, args: AccountParameterArgs, opts?: pulumi.CustomResourceOptions);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Input properties used for looking up and filtering AccountParameter resources.
|
|
60
|
+
*/
|
|
61
|
+
export interface AccountParameterState {
|
|
62
|
+
/**
|
|
63
|
+
* Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
|
|
64
|
+
*/
|
|
65
|
+
key?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
|
|
68
|
+
*/
|
|
69
|
+
value?: pulumi.Input<string>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The set of arguments for constructing a AccountParameter resource.
|
|
73
|
+
*/
|
|
74
|
+
export interface AccountParameterArgs {
|
|
75
|
+
/**
|
|
76
|
+
* Name of account parameter. Valid values are those in [account parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#account-parameters).
|
|
77
|
+
*/
|
|
78
|
+
key: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Value of account parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
|
|
81
|
+
*/
|
|
82
|
+
value: pulumi.Input<string>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.AccountParameter = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const accountParameter = new snowflake.AccountParameter("accountParameter", {
|
|
16
|
+
* key: "ALLOW_ID_TOKEN",
|
|
17
|
+
* value: "true",
|
|
18
|
+
* });
|
|
19
|
+
* const p2 = new snowflake.AccountParameter("p2", {
|
|
20
|
+
* key: "CLIENT_ENCRYPTION_KEY_SIZE",
|
|
21
|
+
* value: "256",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import snowflake:index/accountParameter:AccountParameter p <parameter_name>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class AccountParameter extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing AccountParameter resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name, id, state, opts) {
|
|
42
|
+
return new AccountParameter(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of AccountParameter. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj) {
|
|
49
|
+
if (obj === undefined || obj === null) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return obj['__pulumiType'] === AccountParameter.__pulumiType;
|
|
53
|
+
}
|
|
54
|
+
constructor(name, argsOrState, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (opts.id) {
|
|
58
|
+
const state = argsOrState;
|
|
59
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
60
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.key === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'key'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'value'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
71
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(AccountParameter.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.AccountParameter = AccountParameter;
|
|
78
|
+
/** @internal */
|
|
79
|
+
AccountParameter.__pulumiType = 'snowflake:index/accountParameter:AccountParameter';
|
|
80
|
+
//# sourceMappingURL=accountParameter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountParameter.js","sourceRoot":"","sources":["../accountParameter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG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IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAjEL,4CAkEC;AApDG,gBAAgB;AACO,6BAAY,GAAG,mDAAmD,CAAC"}
|
package/apiIntegration.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as snowflake from "@pulumi/snowflake";
|
|
8
8
|
*
|
|
9
|
-
* const apiIntegration = new snowflake.ApiIntegration("
|
|
9
|
+
* const apiIntegration = new snowflake.ApiIntegration("apiIntegration", {
|
|
10
10
|
* apiAllowedPrefixes: ["https://123456.execute-api.us-west-2.amazonaws.com/prod/"],
|
|
11
11
|
* apiAwsRoleArn: "arn:aws:iam::000000000001:/role/test",
|
|
12
12
|
* apiProvider: "aws_api_gateway",
|
package/apiIntegration.js
CHANGED
|
@@ -12,7 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
|
-
* const apiIntegration = new snowflake.ApiIntegration("
|
|
15
|
+
* const apiIntegration = new snowflake.ApiIntegration("apiIntegration", {
|
|
16
16
|
* apiAllowedPrefixes: ["https://123456.execute-api.us-west-2.amazonaws.com/prod/"],
|
|
17
17
|
* apiAwsRoleArn: "arn:aws:iam::000000000001:/role/test",
|
|
18
18
|
* apiProvider: "aws_api_gateway",
|
package/database.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
* comment: "test comment",
|
|
13
13
|
* dataRetentionTimeInDays: 3,
|
|
14
14
|
* });
|
|
15
|
-
* const withReplication = new snowflake.Database("
|
|
15
|
+
* const withReplication = new snowflake.Database("withReplication", {
|
|
16
16
|
* comment: "test comment 2",
|
|
17
17
|
* replicationConfiguration: {
|
|
18
18
|
* accounts: [
|
|
@@ -22,12 +22,12 @@ import * as outputs from "./types/output";
|
|
|
22
22
|
* ignoreEditionCheck: true,
|
|
23
23
|
* },
|
|
24
24
|
* });
|
|
25
|
-
* const fromReplica = new snowflake.Database("
|
|
25
|
+
* const fromReplica = new snowflake.Database("fromReplica", {
|
|
26
26
|
* comment: "test comment",
|
|
27
27
|
* dataRetentionTimeInDays: 3,
|
|
28
28
|
* fromReplica: "org1\".\"account1\".\"primary_db_name",
|
|
29
29
|
* });
|
|
30
|
-
* const fromShare = new snowflake.Database("
|
|
30
|
+
* const fromShare = new snowflake.Database("fromShare", {
|
|
31
31
|
* comment: "test comment",
|
|
32
32
|
* fromShare: {
|
|
33
33
|
* provider: "org1\".\"account1",
|
package/database.js
CHANGED
|
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* comment: "test comment",
|
|
17
17
|
* dataRetentionTimeInDays: 3,
|
|
18
18
|
* });
|
|
19
|
-
* const withReplication = new snowflake.Database("
|
|
19
|
+
* const withReplication = new snowflake.Database("withReplication", {
|
|
20
20
|
* comment: "test comment 2",
|
|
21
21
|
* replicationConfiguration: {
|
|
22
22
|
* accounts: [
|
|
@@ -26,12 +26,12 @@ const utilities = require("./utilities");
|
|
|
26
26
|
* ignoreEditionCheck: true,
|
|
27
27
|
* },
|
|
28
28
|
* });
|
|
29
|
-
* const fromReplica = new snowflake.Database("
|
|
29
|
+
* const fromReplica = new snowflake.Database("fromReplica", {
|
|
30
30
|
* comment: "test comment",
|
|
31
31
|
* dataRetentionTimeInDays: 3,
|
|
32
32
|
* fromReplica: "org1\".\"account1\".\"primary_db_name",
|
|
33
33
|
* });
|
|
34
|
-
* const fromShare = new snowflake.Database("
|
|
34
|
+
* const fromShare = new snowflake.Database("fromShare", {
|
|
35
35
|
* comment: "test comment",
|
|
36
36
|
* fromShare: {
|
|
37
37
|
* provider: "org1\".\"account1",
|
package/externalFunction.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ 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 testExtFunc = new snowflake.ExternalFunction("
|
|
11
|
+
* const testExtFunc = new snowflake.ExternalFunction("testExtFunc", {
|
|
12
12
|
* apiIntegration: "api_integration_name",
|
|
13
13
|
* args: [
|
|
14
14
|
* {
|
package/externalFunction.js
CHANGED
|
@@ -12,7 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
|
-
* const testExtFunc = new snowflake.ExternalFunction("
|
|
15
|
+
* const testExtFunc = new snowflake.ExternalFunction("testExtFunc", {
|
|
16
16
|
* apiIntegration: "api_integration_name",
|
|
17
17
|
* args: [
|
|
18
18
|
* {
|
package/externalTable.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ 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 externalTable = new snowflake.ExternalTable("
|
|
11
|
+
* const externalTable = new snowflake.ExternalTable("externalTable", {
|
|
12
12
|
* columns: [
|
|
13
13
|
* {
|
|
14
14
|
* name: "id",
|
package/externalTable.js
CHANGED
|
@@ -12,7 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
|
-
* const externalTable = new snowflake.ExternalTable("
|
|
15
|
+
* const externalTable = new snowflake.ExternalTable("externalTable", {
|
|
16
16
|
* columns: [
|
|
17
17
|
* {
|
|
18
18
|
* name: "id",
|
package/externalTableGrant.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare class ExternalTableGrant extends pulumi.CustomResource {
|
|
|
72
72
|
/**
|
|
73
73
|
* Grants privilege to these roles.
|
|
74
74
|
*/
|
|
75
|
-
readonly roles: pulumi.Output<string[]
|
|
75
|
+
readonly roles: pulumi.Output<string[]>;
|
|
76
76
|
/**
|
|
77
77
|
* The name of the schema containing the current or future external tables on which to grant privileges.
|
|
78
78
|
*/
|
|
@@ -164,7 +164,7 @@ export interface ExternalTableGrantArgs {
|
|
|
164
164
|
/**
|
|
165
165
|
* Grants privilege to these roles.
|
|
166
166
|
*/
|
|
167
|
-
roles
|
|
167
|
+
roles: pulumi.Input<pulumi.Input<string>[]>;
|
|
168
168
|
/**
|
|
169
169
|
* The name of the schema containing the current or future external tables on which to grant privileges.
|
|
170
170
|
*/
|
package/externalTableGrant.js
CHANGED
|
@@ -81,6 +81,9 @@ class ExternalTableGrant extends pulumi.CustomResource {
|
|
|
81
81
|
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
82
82
|
throw new Error("Missing required property 'databaseName'");
|
|
83
83
|
}
|
|
84
|
+
if ((!args || args.roles === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'roles'");
|
|
86
|
+
}
|
|
84
87
|
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
85
88
|
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
86
89
|
resourceInputs["externalTableName"] = args ? args.externalTableName : undefined;
|