@pulumi/snowflake 0.57.0-alpha.1722063098 → 0.57.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.
Files changed (66) hide show
  1. package/accountRole.d.ts +70 -0
  2. package/accountRole.js +71 -0
  3. package/accountRole.js.map +1 -0
  4. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +2 -0
  5. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +2 -0
  6. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -1
  7. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +2 -0
  8. package/apiAuthenticationIntegrationWithClientCredentials.js +2 -0
  9. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -1
  10. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +2 -0
  11. package/apiAuthenticationIntegrationWithJwtBearer.js +2 -0
  12. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -1
  13. package/database.d.ts +27 -27
  14. package/externalOauthIntegration.d.ts +1 -1
  15. package/externalOauthIntegration.js +1 -1
  16. package/getNetworkPolicies.d.ts +61 -0
  17. package/getNetworkPolicies.js +31 -0
  18. package/getNetworkPolicies.js.map +1 -0
  19. package/getRoles.d.ts +23 -27
  20. package/getRoles.js +6 -21
  21. package/getRoles.js.map +1 -1
  22. package/getSchemas.d.ts +74 -31
  23. package/getSchemas.js +9 -21
  24. package/getSchemas.js.map +1 -1
  25. package/getStreamlits.d.ts +86 -0
  26. package/getStreamlits.js +33 -0
  27. package/getStreamlits.js.map +1 -0
  28. package/index.d.ts +12 -0
  29. package/index.js +20 -4
  30. package/index.js.map +1 -1
  31. package/networkPolicy.d.ts +39 -8
  32. package/networkPolicy.js +22 -5
  33. package/networkPolicy.js.map +1 -1
  34. package/oauthIntegrationForCustomClients.d.ts +8 -6
  35. package/oauthIntegrationForCustomClients.js +2 -0
  36. package/oauthIntegrationForCustomClients.js.map +1 -1
  37. package/oauthIntegrationForPartnerApplications.d.ts +8 -6
  38. package/oauthIntegrationForPartnerApplications.js +2 -0
  39. package/oauthIntegrationForPartnerApplications.js.map +1 -1
  40. package/package.json +2 -2
  41. package/role.d.ts +16 -27
  42. package/role.js +14 -15
  43. package/role.js.map +1 -1
  44. package/saml2Integration.d.ts +14 -12
  45. package/saml2Integration.js +2 -0
  46. package/saml2Integration.js.map +1 -1
  47. package/schema.d.ts +229 -45
  48. package/schema.js +43 -21
  49. package/schema.js.map +1 -1
  50. package/scimIntegration.d.ts +11 -9
  51. package/scimIntegration.js +2 -0
  52. package/scimIntegration.js.map +1 -1
  53. package/secondaryDatabase.d.ts +27 -27
  54. package/sharedDatabase.d.ts +27 -27
  55. package/streamlit.d.ts +187 -0
  56. package/streamlit.js +96 -0
  57. package/streamlit.js.map +1 -0
  58. package/table.d.ts +0 -63
  59. package/table.js +0 -63
  60. package/table.js.map +1 -1
  61. package/tableConstraint.d.ts +1 -1
  62. package/tableConstraint.js +1 -1
  63. package/types/input.d.ts +329 -41
  64. package/types/output.d.ts +511 -46
  65. package/unsafeExecute.d.ts +4 -4
  66. package/unsafeExecute.js +4 -4
package/streamlit.d.ts ADDED
@@ -0,0 +1,187 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * !> **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.
6
+ *
7
+ * Resource used to manage streamlits objects. For more information, check [streamlit documentation](https://docs.snowflake.com/en/sql-reference/commands-streamlit).
8
+ *
9
+ * ## Import
10
+ *
11
+ * format is database name | schema name | streamlit name
12
+ *
13
+ * ```sh
14
+ * $ pulumi import snowflake:index/streamlit:Streamlit example 'dbName|schemaName|streamlitName'
15
+ * ```
16
+ */
17
+ export declare class Streamlit extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing Streamlit resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param state Any extra arguments used during the lookup.
25
+ * @param opts Optional settings to control the behavior of the CustomResource.
26
+ */
27
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StreamlitState, opts?: pulumi.CustomResourceOptions): Streamlit;
28
+ /**
29
+ * Returns true if the given object is an instance of Streamlit. This is designed to work even
30
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
31
+ */
32
+ static isInstance(obj: any): obj is Streamlit;
33
+ /**
34
+ * Specifies a comment for the streamlit.
35
+ */
36
+ readonly comment: pulumi.Output<string | undefined>;
37
+ /**
38
+ * The database in which to create the streamlit
39
+ */
40
+ readonly database: pulumi.Output<string>;
41
+ /**
42
+ * Outputs the result of `DESCRIBE STREAMLIT` for the given streamlit.
43
+ */
44
+ readonly describeOutputs: pulumi.Output<outputs.StreamlitDescribeOutput[]>;
45
+ /**
46
+ * Specifies the full path to the named stage containing the Streamlit Python files, media files, and the environment.yml file.
47
+ */
48
+ readonly directoryLocation: pulumi.Output<string | undefined>;
49
+ /**
50
+ * External access integrations connected to the Streamlit.
51
+ */
52
+ readonly externalAccessIntegrations: pulumi.Output<string[] | undefined>;
53
+ /**
54
+ * Specifies the filename of the Streamlit Python application. This filename is relative to the value of `rootLocation`
55
+ */
56
+ readonly mainFile: pulumi.Output<string>;
57
+ /**
58
+ * String that specifies the identifier (i.e. name) for the streamlit; must be unique in your account.
59
+ */
60
+ readonly name: pulumi.Output<string>;
61
+ /**
62
+ * Specifies the warehouse where SQL queries issued by the Streamlit application are run.
63
+ */
64
+ readonly queryWarehouse: pulumi.Output<string | undefined>;
65
+ /**
66
+ * The schema in which to create the streamlit.
67
+ */
68
+ readonly schema: pulumi.Output<string>;
69
+ /**
70
+ * Outputs the result of `SHOW STREAMLIT` for the given streamli.
71
+ */
72
+ readonly showOutputs: pulumi.Output<outputs.StreamlitShowOutput[]>;
73
+ /**
74
+ * The stage in which streamlit files are located.
75
+ */
76
+ readonly stage: pulumi.Output<string>;
77
+ /**
78
+ * Specifies a title for the Streamlit app to display in Snowsight.
79
+ */
80
+ readonly title: pulumi.Output<string | undefined>;
81
+ /**
82
+ * Create a Streamlit resource with the given unique name, arguments, and options.
83
+ *
84
+ * @param name The _unique_ name of the resource.
85
+ * @param args The arguments to use to populate this resource's properties.
86
+ * @param opts A bag of options that control this resource's behavior.
87
+ */
88
+ constructor(name: string, args: StreamlitArgs, opts?: pulumi.CustomResourceOptions);
89
+ }
90
+ /**
91
+ * Input properties used for looking up and filtering Streamlit resources.
92
+ */
93
+ export interface StreamlitState {
94
+ /**
95
+ * Specifies a comment for the streamlit.
96
+ */
97
+ comment?: pulumi.Input<string>;
98
+ /**
99
+ * The database in which to create the streamlit
100
+ */
101
+ database?: pulumi.Input<string>;
102
+ /**
103
+ * Outputs the result of `DESCRIBE STREAMLIT` for the given streamlit.
104
+ */
105
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.StreamlitDescribeOutput>[]>;
106
+ /**
107
+ * Specifies the full path to the named stage containing the Streamlit Python files, media files, and the environment.yml file.
108
+ */
109
+ directoryLocation?: pulumi.Input<string>;
110
+ /**
111
+ * External access integrations connected to the Streamlit.
112
+ */
113
+ externalAccessIntegrations?: pulumi.Input<pulumi.Input<string>[]>;
114
+ /**
115
+ * Specifies the filename of the Streamlit Python application. This filename is relative to the value of `rootLocation`
116
+ */
117
+ mainFile?: pulumi.Input<string>;
118
+ /**
119
+ * String that specifies the identifier (i.e. name) for the streamlit; must be unique in your account.
120
+ */
121
+ name?: pulumi.Input<string>;
122
+ /**
123
+ * Specifies the warehouse where SQL queries issued by the Streamlit application are run.
124
+ */
125
+ queryWarehouse?: pulumi.Input<string>;
126
+ /**
127
+ * The schema in which to create the streamlit.
128
+ */
129
+ schema?: pulumi.Input<string>;
130
+ /**
131
+ * Outputs the result of `SHOW STREAMLIT` for the given streamli.
132
+ */
133
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.StreamlitShowOutput>[]>;
134
+ /**
135
+ * The stage in which streamlit files are located.
136
+ */
137
+ stage?: pulumi.Input<string>;
138
+ /**
139
+ * Specifies a title for the Streamlit app to display in Snowsight.
140
+ */
141
+ title?: pulumi.Input<string>;
142
+ }
143
+ /**
144
+ * The set of arguments for constructing a Streamlit resource.
145
+ */
146
+ export interface StreamlitArgs {
147
+ /**
148
+ * Specifies a comment for the streamlit.
149
+ */
150
+ comment?: pulumi.Input<string>;
151
+ /**
152
+ * The database in which to create the streamlit
153
+ */
154
+ database: pulumi.Input<string>;
155
+ /**
156
+ * Specifies the full path to the named stage containing the Streamlit Python files, media files, and the environment.yml file.
157
+ */
158
+ directoryLocation?: pulumi.Input<string>;
159
+ /**
160
+ * External access integrations connected to the Streamlit.
161
+ */
162
+ externalAccessIntegrations?: pulumi.Input<pulumi.Input<string>[]>;
163
+ /**
164
+ * Specifies the filename of the Streamlit Python application. This filename is relative to the value of `rootLocation`
165
+ */
166
+ mainFile: pulumi.Input<string>;
167
+ /**
168
+ * String that specifies the identifier (i.e. name) for the streamlit; must be unique in your account.
169
+ */
170
+ name?: pulumi.Input<string>;
171
+ /**
172
+ * Specifies the warehouse where SQL queries issued by the Streamlit application are run.
173
+ */
174
+ queryWarehouse?: pulumi.Input<string>;
175
+ /**
176
+ * The schema in which to create the streamlit.
177
+ */
178
+ schema: pulumi.Input<string>;
179
+ /**
180
+ * The stage in which streamlit files are located.
181
+ */
182
+ stage: pulumi.Input<string>;
183
+ /**
184
+ * Specifies a title for the Streamlit app to display in Snowsight.
185
+ */
186
+ title?: pulumi.Input<string>;
187
+ }
package/streamlit.js ADDED
@@ -0,0 +1,96 @@
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.Streamlit = 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
+ * Resource used to manage streamlits objects. For more information, check [streamlit documentation](https://docs.snowflake.com/en/sql-reference/commands-streamlit).
12
+ *
13
+ * ## Import
14
+ *
15
+ * format is database name | schema name | streamlit name
16
+ *
17
+ * ```sh
18
+ * $ pulumi import snowflake:index/streamlit:Streamlit example 'dbName|schemaName|streamlitName'
19
+ * ```
20
+ */
21
+ class Streamlit extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing Streamlit resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name, id, state, opts) {
32
+ return new Streamlit(name, state, Object.assign(Object.assign({}, opts), { id: id }));
33
+ }
34
+ /**
35
+ * Returns true if the given object is an instance of Streamlit. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj) {
39
+ if (obj === undefined || obj === null) {
40
+ return false;
41
+ }
42
+ return obj['__pulumiType'] === Streamlit.__pulumiType;
43
+ }
44
+ constructor(name, argsOrState, opts) {
45
+ let resourceInputs = {};
46
+ opts = opts || {};
47
+ if (opts.id) {
48
+ const state = argsOrState;
49
+ resourceInputs["comment"] = state ? state.comment : undefined;
50
+ resourceInputs["database"] = state ? state.database : undefined;
51
+ resourceInputs["describeOutputs"] = state ? state.describeOutputs : undefined;
52
+ resourceInputs["directoryLocation"] = state ? state.directoryLocation : undefined;
53
+ resourceInputs["externalAccessIntegrations"] = state ? state.externalAccessIntegrations : undefined;
54
+ resourceInputs["mainFile"] = state ? state.mainFile : undefined;
55
+ resourceInputs["name"] = state ? state.name : undefined;
56
+ resourceInputs["queryWarehouse"] = state ? state.queryWarehouse : undefined;
57
+ resourceInputs["schema"] = state ? state.schema : undefined;
58
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
59
+ resourceInputs["stage"] = state ? state.stage : undefined;
60
+ resourceInputs["title"] = state ? state.title : undefined;
61
+ }
62
+ else {
63
+ const args = argsOrState;
64
+ if ((!args || args.database === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'database'");
66
+ }
67
+ if ((!args || args.mainFile === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'mainFile'");
69
+ }
70
+ if ((!args || args.schema === undefined) && !opts.urn) {
71
+ throw new Error("Missing required property 'schema'");
72
+ }
73
+ if ((!args || args.stage === undefined) && !opts.urn) {
74
+ throw new Error("Missing required property 'stage'");
75
+ }
76
+ resourceInputs["comment"] = args ? args.comment : undefined;
77
+ resourceInputs["database"] = args ? args.database : undefined;
78
+ resourceInputs["directoryLocation"] = args ? args.directoryLocation : undefined;
79
+ resourceInputs["externalAccessIntegrations"] = args ? args.externalAccessIntegrations : undefined;
80
+ resourceInputs["mainFile"] = args ? args.mainFile : undefined;
81
+ resourceInputs["name"] = args ? args.name : undefined;
82
+ resourceInputs["queryWarehouse"] = args ? args.queryWarehouse : undefined;
83
+ resourceInputs["schema"] = args ? args.schema : undefined;
84
+ resourceInputs["stage"] = args ? args.stage : undefined;
85
+ resourceInputs["title"] = args ? args.title : undefined;
86
+ resourceInputs["describeOutputs"] = undefined /*out*/;
87
+ resourceInputs["showOutputs"] = undefined /*out*/;
88
+ }
89
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
90
+ super(Streamlit.__pulumiType, name, resourceInputs, opts);
91
+ }
92
+ }
93
+ exports.Streamlit = Streamlit;
94
+ /** @internal */
95
+ Streamlit.__pulumiType = 'snowflake:index/streamlit:Streamlit';
96
+ //# sourceMappingURL=streamlit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamlit.js","sourceRoot":"","sources":["../streamlit.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IA2DD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;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,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAnIL,8BAoIC;AAtHG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
package/table.d.ts CHANGED
@@ -4,69 +4,6 @@ import * as outputs from "./types/output";
4
4
  /**
5
5
  * ## Example Usage
6
6
  *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as snowflake from "@pulumi/snowflake";
10
- *
11
- * const schema = new snowflake.Schema("schema", {
12
- * database: "database",
13
- * name: "schema",
14
- * dataRetentionDays: 1,
15
- * });
16
- * const sequence = new snowflake.Sequence("sequence", {
17
- * database: schema.database,
18
- * schema: schema.name,
19
- * name: "sequence",
20
- * });
21
- * const table = new snowflake.Table("table", {
22
- * database: schema.database,
23
- * schema: schema.name,
24
- * name: "table",
25
- * comment: "A table.",
26
- * clusterBies: ["to_date(DATE)"],
27
- * dataRetentionTimeInDays: schema.dataRetentionTimeInDays,
28
- * changeTracking: false,
29
- * columns: [
30
- * {
31
- * name: "id",
32
- * type: "int",
33
- * nullable: true,
34
- * "default": {
35
- * sequence: sequence.fullyQualifiedName,
36
- * },
37
- * },
38
- * {
39
- * name: "identity",
40
- * type: "NUMBER(38,0)",
41
- * nullable: true,
42
- * identity: {
43
- * startNum: 1,
44
- * stepNum: 3,
45
- * },
46
- * },
47
- * {
48
- * name: "data",
49
- * type: "text",
50
- * nullable: false,
51
- * collate: "en-ci",
52
- * },
53
- * {
54
- * name: "DATE",
55
- * type: "TIMESTAMP_NTZ(9)",
56
- * },
57
- * {
58
- * name: "extra",
59
- * type: "VARIANT",
60
- * comment: "extra data",
61
- * },
62
- * ],
63
- * primaryKey: {
64
- * name: "my_key",
65
- * keys: ["data"],
66
- * },
67
- * });
68
- * ```
69
- *
70
7
  * ## Import
71
8
  *
72
9
  * format is database name | schema name | table name
package/table.js CHANGED
@@ -8,69 +8,6 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * ## Example Usage
10
10
  *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as snowflake from "@pulumi/snowflake";
14
- *
15
- * const schema = new snowflake.Schema("schema", {
16
- * database: "database",
17
- * name: "schema",
18
- * dataRetentionDays: 1,
19
- * });
20
- * const sequence = new snowflake.Sequence("sequence", {
21
- * database: schema.database,
22
- * schema: schema.name,
23
- * name: "sequence",
24
- * });
25
- * const table = new snowflake.Table("table", {
26
- * database: schema.database,
27
- * schema: schema.name,
28
- * name: "table",
29
- * comment: "A table.",
30
- * clusterBies: ["to_date(DATE)"],
31
- * dataRetentionTimeInDays: schema.dataRetentionTimeInDays,
32
- * changeTracking: false,
33
- * columns: [
34
- * {
35
- * name: "id",
36
- * type: "int",
37
- * nullable: true,
38
- * "default": {
39
- * sequence: sequence.fullyQualifiedName,
40
- * },
41
- * },
42
- * {
43
- * name: "identity",
44
- * type: "NUMBER(38,0)",
45
- * nullable: true,
46
- * identity: {
47
- * startNum: 1,
48
- * stepNum: 3,
49
- * },
50
- * },
51
- * {
52
- * name: "data",
53
- * type: "text",
54
- * nullable: false,
55
- * collate: "en-ci",
56
- * },
57
- * {
58
- * name: "DATE",
59
- * type: "TIMESTAMP_NTZ(9)",
60
- * },
61
- * {
62
- * name: "extra",
63
- * type: "VARIANT",
64
- * comment: "extra data",
65
- * },
66
- * ],
67
- * primaryKey: {
68
- * name: "my_key",
69
- * keys: ["data"],
70
- * },
71
- * });
72
- * ```
73
- *
74
11
  * ## Import
75
12
  *
76
13
  * format is database name | schema name | table name
package/table.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../table.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,CAAC;IAKD;;;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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA+DD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC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IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AApIL,sBAqIC;AAvHG,gBAAgB;AACO,kBAAY,GAAG,6BAA6B,CAAC"}
@@ -87,7 +87,7 @@ import * as outputs from "./types/output";
87
87
  * ## Import
88
88
  *
89
89
  * ```sh
90
- * $ pulumi import snowflake:index/tableConstraint:TableConstraint example 'myconstraintfk❄️FOREIGN KEY❄️test|test|table'
90
+ * $ pulumi import snowflake:index/tableConstraint:TableConstraint example 'myconstraintfk❄️FOREIGN KEY❄️databaseName|schemaName|tableName'
91
91
  * ```
92
92
  */
93
93
  export declare class TableConstraint extends pulumi.CustomResource {
@@ -91,7 +91,7 @@ const utilities = require("./utilities");
91
91
  * ## Import
92
92
  *
93
93
  * ```sh
94
- * $ pulumi import snowflake:index/tableConstraint:TableConstraint example 'myconstraintfk❄️FOREIGN KEY❄️test|test|table'
94
+ * $ pulumi import snowflake:index/tableConstraint:TableConstraint example 'myconstraintfk❄️FOREIGN KEY❄️databaseName|schemaName|tableName'
95
95
  * ```
96
96
  */
97
97
  class TableConstraint extends pulumi.CustomResource {