@pulumi/snowflake 2.19.0-alpha.1785224124 → 2.19.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 (160) hide show
  1. package/accountAuthenticationPolicyAttachment.d.ts +11 -3
  2. package/accountAuthenticationPolicyAttachment.d.ts.map +1 -1
  3. package/accountAuthenticationPolicyAttachment.js +8 -0
  4. package/accountAuthenticationPolicyAttachment.js.map +1 -1
  5. package/accountParameter.d.ts +3 -3
  6. package/accountSessionPolicyAttachment.d.ts +2 -0
  7. package/accountSessionPolicyAttachment.d.ts.map +1 -1
  8. package/accountSessionPolicyAttachment.js +2 -0
  9. package/accountSessionPolicyAttachment.js.map +1 -1
  10. package/config/vars.d.ts +7 -3
  11. package/config/vars.d.ts.map +1 -1
  12. package/config/vars.js +6 -0
  13. package/config/vars.js.map +1 -1
  14. package/currentAccount.d.ts +12 -0
  15. package/currentAccount.d.ts.map +1 -1
  16. package/currentAccount.js +2 -0
  17. package/currentAccount.js.map +1 -1
  18. package/currentOrganizationAccount.d.ts +12 -0
  19. package/currentOrganizationAccount.d.ts.map +1 -1
  20. package/currentOrganizationAccount.js +2 -0
  21. package/currentOrganizationAccount.js.map +1 -1
  22. package/database.d.ts +24 -0
  23. package/database.d.ts.map +1 -1
  24. package/database.js +4 -0
  25. package/database.js.map +1 -1
  26. package/fileFormat.d.ts +2 -0
  27. package/fileFormat.d.ts.map +1 -1
  28. package/fileFormat.js +2 -0
  29. package/fileFormat.js.map +1 -1
  30. package/fileFormatAvro.d.ts +215 -0
  31. package/fileFormatAvro.d.ts.map +1 -0
  32. package/fileFormatAvro.js +148 -0
  33. package/fileFormatAvro.js.map +1 -0
  34. package/fileFormatCsv.d.ts +448 -0
  35. package/fileFormatCsv.d.ts.map +1 -0
  36. package/fileFormatCsv.js +201 -0
  37. package/fileFormatCsv.js.map +1 -0
  38. package/fileFormatJson.d.ts +371 -0
  39. package/fileFormatJson.d.ts.map +1 -0
  40. package/fileFormatJson.js +184 -0
  41. package/fileFormatJson.js.map +1 -0
  42. package/fileFormatOrc.d.ts +202 -0
  43. package/fileFormatOrc.d.ts.map +1 -0
  44. package/fileFormatOrc.js +145 -0
  45. package/fileFormatOrc.js.map +1 -0
  46. package/fileFormatParquet.d.ts +254 -0
  47. package/fileFormatParquet.d.ts.map +1 -0
  48. package/fileFormatParquet.js +157 -0
  49. package/fileFormatParquet.js.map +1 -0
  50. package/fileFormatXml.d.ts +248 -0
  51. package/fileFormatXml.d.ts.map +1 -0
  52. package/fileFormatXml.js +151 -0
  53. package/fileFormatXml.js.map +1 -0
  54. package/getFileFormats.d.ts +32 -43
  55. package/getFileFormats.d.ts.map +1 -1
  56. package/getFileFormats.js +10 -30
  57. package/getFileFormats.js.map +1 -1
  58. package/getGrants.d.ts +48 -0
  59. package/getGrants.d.ts.map +1 -1
  60. package/getGrants.js +38 -0
  61. package/getGrants.js.map +1 -1
  62. package/getIcebergTables.d.ts +111 -0
  63. package/getIcebergTables.d.ts.map +1 -0
  64. package/getIcebergTables.js +67 -0
  65. package/getIcebergTables.js.map +1 -0
  66. package/getMcpServers.d.ts +75 -0
  67. package/getMcpServers.d.ts.map +1 -0
  68. package/getMcpServers.js +61 -0
  69. package/getMcpServers.js.map +1 -0
  70. package/getNetworkRules.d.ts +0 -4
  71. package/getNetworkRules.d.ts.map +1 -1
  72. package/getNetworkRules.js +0 -4
  73. package/getNetworkRules.js.map +1 -1
  74. package/icebergTable.d.ts +615 -0
  75. package/icebergTable.d.ts.map +1 -0
  76. package/icebergTable.js +361 -0
  77. package/icebergTable.js.map +1 -0
  78. package/icebergTableFromAwsGlue.d.ts +237 -0
  79. package/icebergTableFromAwsGlue.d.ts.map +1 -0
  80. package/icebergTableFromAwsGlue.js +153 -0
  81. package/icebergTableFromAwsGlue.js.map +1 -0
  82. package/icebergTableFromDeltaFiles.d.ts +5 -3
  83. package/icebergTableFromDeltaFiles.d.ts.map +1 -1
  84. package/icebergTableFromDeltaFiles.js +5 -3
  85. package/icebergTableFromDeltaFiles.js.map +1 -1
  86. package/icebergTableFromFiles.d.ts +4 -2
  87. package/icebergTableFromFiles.d.ts.map +1 -1
  88. package/icebergTableFromFiles.js +4 -2
  89. package/icebergTableFromFiles.js.map +1 -1
  90. package/icebergTableFromRest.d.ts +304 -0
  91. package/icebergTableFromRest.d.ts.map +1 -0
  92. package/icebergTableFromRest.js +170 -0
  93. package/icebergTableFromRest.js.map +1 -0
  94. package/index.d.ts +39 -0
  95. package/index.d.ts.map +1 -1
  96. package/index.js +67 -6
  97. package/index.js.map +1 -1
  98. package/legacyServiceUser.d.ts +11 -1
  99. package/legacyServiceUser.d.ts.map +1 -1
  100. package/legacyServiceUser.js +11 -1
  101. package/legacyServiceUser.js.map +1 -1
  102. package/mcpServer.d.ts +134 -0
  103. package/mcpServer.d.ts.map +1 -0
  104. package/mcpServer.js +106 -0
  105. package/mcpServer.js.map +1 -0
  106. package/oauthIntegrationForCustomClients.d.ts +13 -1
  107. package/oauthIntegrationForCustomClients.d.ts.map +1 -1
  108. package/oauthIntegrationForCustomClients.js +3 -1
  109. package/oauthIntegrationForCustomClients.js.map +1 -1
  110. package/oauthIntegrationForPartnerApplications.d.ts +12 -0
  111. package/oauthIntegrationForPartnerApplications.d.ts.map +1 -1
  112. package/oauthIntegrationForPartnerApplications.js +2 -0
  113. package/oauthIntegrationForPartnerApplications.js.map +1 -1
  114. package/package.json +2 -2
  115. package/provider.d.ts +13 -3
  116. package/provider.d.ts.map +1 -1
  117. package/provider.js +1 -0
  118. package/provider.js.map +1 -1
  119. package/saml2Integration.d.ts +1 -4
  120. package/saml2Integration.d.ts.map +1 -1
  121. package/saml2Integration.js +1 -4
  122. package/saml2Integration.js.map +1 -1
  123. package/schema.d.ts +24 -0
  124. package/schema.d.ts.map +1 -1
  125. package/schema.js +4 -0
  126. package/schema.js.map +1 -1
  127. package/secondaryDatabase.d.ts +24 -0
  128. package/secondaryDatabase.d.ts.map +1 -1
  129. package/secondaryDatabase.js +4 -0
  130. package/secondaryDatabase.js.map +1 -1
  131. package/serviceUser.d.ts +11 -1
  132. package/serviceUser.d.ts.map +1 -1
  133. package/serviceUser.js +11 -1
  134. package/serviceUser.js.map +1 -1
  135. package/sharedDatabase.d.ts +24 -0
  136. package/sharedDatabase.d.ts.map +1 -1
  137. package/sharedDatabase.js +4 -0
  138. package/sharedDatabase.js.map +1 -1
  139. package/stageExternalS3.d.ts +1 -0
  140. package/stageExternalS3.d.ts.map +1 -1
  141. package/stageExternalS3.js +1 -0
  142. package/stageExternalS3.js.map +1 -1
  143. package/tag.d.ts +3 -3
  144. package/tagAssociation.d.ts +3 -3
  145. package/types/input.d.ts +1123 -49
  146. package/types/input.d.ts.map +1 -1
  147. package/types/output.d.ts +1367 -120
  148. package/types/output.d.ts.map +1 -1
  149. package/userAuthenticationPolicyAttachment.d.ts +13 -7
  150. package/userAuthenticationPolicyAttachment.d.ts.map +1 -1
  151. package/userAuthenticationPolicyAttachment.js +7 -1
  152. package/userAuthenticationPolicyAttachment.js.map +1 -1
  153. package/warehouseAdaptive.d.ts +13 -0
  154. package/warehouseAdaptive.d.ts.map +1 -1
  155. package/warehouseAdaptive.js +3 -0
  156. package/warehouseAdaptive.js.map +1 -1
  157. package/warehouseInteractive.d.ts +295 -0
  158. package/warehouseInteractive.d.ts.map +1 -0
  159. package/warehouseInteractive.js +162 -0
  160. package/warehouseInteractive.js.map +1 -0
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.FileFormatJson = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
33
+ *
34
+ * > **Note** A file format cannot be dropped successfully if it has dependent external tables. Before dropping the resource, first drop the dependent external tables manually.
35
+ *
36
+ * > **Note** Snowflake returns the same `DESCRIBE FILE FORMAT` output for `nullIf` set to an empty list and for `nullIf` set to a list with a single empty string. Because of that, the provider cannot detect an external change between these two values, and `describe_output.null_if` is empty in both cases.
37
+ *
38
+ * Resource used to manage JSON file formats. For more information, check [file format documentation](https://docs.snowflake.com/en/sql-reference/sql/create-file-format).
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
43
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as snowflake from "@pulumi/snowflake";
48
+ *
49
+ * //# Minimal
50
+ * const basic = new snowflake.FileFormatJson("basic", {
51
+ * database: "database_name",
52
+ * schema: "schema_name",
53
+ * name: "file_format_name",
54
+ * });
55
+ * //# Complete (with every optional set)
56
+ * const complete = new snowflake.FileFormatJson("complete", {
57
+ * database: "database_name",
58
+ * schema: "schema_name",
59
+ * name: "file_format_name",
60
+ * compression: "GZIP",
61
+ * dateFormat: "YYYY-MM-DD",
62
+ * timeFormat: "HH24:MI:SS",
63
+ * timestampFormat: "YYYY-MM-DD HH24:MI:SS.FF3",
64
+ * binaryFormat: "BASE64",
65
+ * trimSpace: "true",
66
+ * multiLine: "true",
67
+ * nullIfs: [
68
+ * "NULL",
69
+ * "",
70
+ * ],
71
+ * fileExtension: ".json",
72
+ * enableOctal: "false",
73
+ * allowDuplicate: "false",
74
+ * stripOuterArray: "true",
75
+ * stripNullValues: "false",
76
+ * replaceInvalidCharacters: "false",
77
+ * ignoreUtf8Errors: "false",
78
+ * skipByteOrderMark: "true",
79
+ * comment: "My JSON file format",
80
+ * });
81
+ * ```
82
+ *
83
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
84
+ *
85
+ * ## Import
86
+ *
87
+ * ```sh
88
+ * $ pulumi import snowflake:index/fileFormatJson:FileFormatJson example '"<database_name>"."<schema_name>"."<file_format_name>"'
89
+ * ```
90
+ */
91
+ class FileFormatJson extends pulumi.CustomResource {
92
+ /**
93
+ * Get an existing FileFormatJson resource's state with the given name, ID, and optional extra
94
+ * properties used to qualify the lookup.
95
+ *
96
+ * @param name The _unique_ name of the resulting resource.
97
+ * @param id The _unique_ provider ID of the resource to lookup.
98
+ * @param state Any extra arguments used during the lookup.
99
+ * @param opts Optional settings to control the behavior of the CustomResource.
100
+ */
101
+ static get(name, id, state, opts) {
102
+ return new FileFormatJson(name, state, { ...opts, id: id });
103
+ }
104
+ /** @internal */
105
+ static __pulumiType = 'snowflake:index/fileFormatJson:FileFormatJson';
106
+ /**
107
+ * Returns true if the given object is an instance of FileFormatJson. This is designed to work even
108
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
109
+ */
110
+ static isInstance(obj) {
111
+ if (obj === undefined || obj === null) {
112
+ return false;
113
+ }
114
+ return obj['__pulumiType'] === FileFormatJson.__pulumiType;
115
+ }
116
+ constructor(name, argsOrState, opts) {
117
+ let resourceInputs = {};
118
+ opts = opts || {};
119
+ if (opts.id) {
120
+ const state = argsOrState;
121
+ resourceInputs["allowDuplicate"] = state?.allowDuplicate;
122
+ resourceInputs["binaryFormat"] = state?.binaryFormat;
123
+ resourceInputs["comment"] = state?.comment;
124
+ resourceInputs["compression"] = state?.compression;
125
+ resourceInputs["database"] = state?.database;
126
+ resourceInputs["dateFormat"] = state?.dateFormat;
127
+ resourceInputs["describeOutputs"] = state?.describeOutputs;
128
+ resourceInputs["enableOctal"] = state?.enableOctal;
129
+ resourceInputs["fileExtension"] = state?.fileExtension;
130
+ resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
131
+ resourceInputs["ignoreUtf8Errors"] = state?.ignoreUtf8Errors;
132
+ resourceInputs["multiLine"] = state?.multiLine;
133
+ resourceInputs["name"] = state?.name;
134
+ resourceInputs["nullIfs"] = state?.nullIfs;
135
+ resourceInputs["replaceInvalidCharacters"] = state?.replaceInvalidCharacters;
136
+ resourceInputs["schema"] = state?.schema;
137
+ resourceInputs["showOutputs"] = state?.showOutputs;
138
+ resourceInputs["skipByteOrderMark"] = state?.skipByteOrderMark;
139
+ resourceInputs["stripNullValues"] = state?.stripNullValues;
140
+ resourceInputs["stripOuterArray"] = state?.stripOuterArray;
141
+ resourceInputs["timeFormat"] = state?.timeFormat;
142
+ resourceInputs["timestampFormat"] = state?.timestampFormat;
143
+ resourceInputs["trimSpace"] = state?.trimSpace;
144
+ resourceInputs["type"] = state?.type;
145
+ }
146
+ else {
147
+ const args = argsOrState;
148
+ if (args?.database === undefined && !opts.urn) {
149
+ throw new Error("Missing required property 'database'");
150
+ }
151
+ if (args?.schema === undefined && !opts.urn) {
152
+ throw new Error("Missing required property 'schema'");
153
+ }
154
+ resourceInputs["allowDuplicate"] = args?.allowDuplicate;
155
+ resourceInputs["binaryFormat"] = args?.binaryFormat;
156
+ resourceInputs["comment"] = args?.comment;
157
+ resourceInputs["compression"] = args?.compression;
158
+ resourceInputs["database"] = args?.database;
159
+ resourceInputs["dateFormat"] = args?.dateFormat;
160
+ resourceInputs["enableOctal"] = args?.enableOctal;
161
+ resourceInputs["fileExtension"] = args?.fileExtension;
162
+ resourceInputs["ignoreUtf8Errors"] = args?.ignoreUtf8Errors;
163
+ resourceInputs["multiLine"] = args?.multiLine;
164
+ resourceInputs["name"] = args?.name;
165
+ resourceInputs["nullIfs"] = args?.nullIfs;
166
+ resourceInputs["replaceInvalidCharacters"] = args?.replaceInvalidCharacters;
167
+ resourceInputs["schema"] = args?.schema;
168
+ resourceInputs["skipByteOrderMark"] = args?.skipByteOrderMark;
169
+ resourceInputs["stripNullValues"] = args?.stripNullValues;
170
+ resourceInputs["stripOuterArray"] = args?.stripOuterArray;
171
+ resourceInputs["timeFormat"] = args?.timeFormat;
172
+ resourceInputs["timestampFormat"] = args?.timestampFormat;
173
+ resourceInputs["trimSpace"] = args?.trimSpace;
174
+ resourceInputs["describeOutputs"] = undefined /*out*/;
175
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
176
+ resourceInputs["showOutputs"] = undefined /*out*/;
177
+ resourceInputs["type"] = undefined /*out*/;
178
+ }
179
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
180
+ super(FileFormatJson.__pulumiType, name, resourceInputs, opts);
181
+ }
182
+ }
183
+ exports.FileFormatJson = FileFormatJson;
184
+ //# sourceMappingURL=fileFormatJson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatJson.js","sourceRoot":"","sources":["../fileFormatJson.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDA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,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AArML,wCAsMC"}
@@ -0,0 +1,202 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
6
+ *
7
+ * > **Note** A file format cannot be dropped successfully if it has dependent external tables. Before dropping the resource, first drop the dependent external tables manually.
8
+ *
9
+ * > **Note** Snowflake returns the same `DESCRIBE FILE FORMAT` output for `nullIf` set to an empty list and for `nullIf` set to a list with a single empty string. Because of that, the provider cannot detect an external change between these two values, and `describe_output.null_if` is empty in both cases.
10
+ *
11
+ * Resource used to manage ORC file formats. For more information, check [file format documentation](https://docs.snowflake.com/en/sql-reference/sql/create-file-format).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
16
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as snowflake from "@pulumi/snowflake";
21
+ *
22
+ * //# Minimal
23
+ * const basic = new snowflake.FileFormatOrc("basic", {
24
+ * database: "database_name",
25
+ * schema: "schema_name",
26
+ * name: "file_format_name",
27
+ * });
28
+ * //# Complete (with every optional set)
29
+ * const complete = new snowflake.FileFormatOrc("complete", {
30
+ * database: "database_name",
31
+ * schema: "schema_name",
32
+ * name: "file_format_name",
33
+ * trimSpace: "true",
34
+ * nullIfs: [
35
+ * "NULL",
36
+ * "",
37
+ * ],
38
+ * replaceInvalidCharacters: "false",
39
+ * comment: "My ORC file format",
40
+ * });
41
+ * ```
42
+ *
43
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
44
+ *
45
+ * ## Import
46
+ *
47
+ * ```sh
48
+ * $ pulumi import snowflake:index/fileFormatOrc:FileFormatOrc example '"<database_name>"."<schema_name>"."<file_format_name>"'
49
+ * ```
50
+ */
51
+ export declare class FileFormatOrc extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing FileFormatOrc resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param state Any extra arguments used during the lookup.
59
+ * @param opts Optional settings to control the behavior of the CustomResource.
60
+ */
61
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileFormatOrcState, opts?: pulumi.CustomResourceOptions): FileFormatOrc;
62
+ /**
63
+ * Returns true if the given object is an instance of FileFormatOrc. This is designed to work even
64
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
65
+ */
66
+ static isInstance(obj: any): obj is FileFormatOrc;
67
+ /**
68
+ * Specifies a comment for the file format.
69
+ */
70
+ readonly comment: pulumi.Output<string | undefined>;
71
+ /**
72
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
73
+ */
74
+ readonly database: pulumi.Output<string>;
75
+ /**
76
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
77
+ */
78
+ readonly describeOutputs: pulumi.Output<outputs.FileFormatOrcDescribeOutput[]>;
79
+ /**
80
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
81
+ */
82
+ readonly fullyQualifiedName: pulumi.Output<string>;
83
+ /**
84
+ * Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
85
+ */
86
+ readonly name: pulumi.Output<string>;
87
+ /**
88
+ * String used to convert to and from SQL NULL.
89
+ */
90
+ readonly nullIfs: pulumi.Output<string[] | undefined>;
91
+ /**
92
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
93
+ */
94
+ readonly replaceInvalidCharacters: pulumi.Output<string | undefined>;
95
+ /**
96
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
97
+ */
98
+ readonly schema: pulumi.Output<string>;
99
+ /**
100
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
101
+ */
102
+ readonly showOutputs: pulumi.Output<outputs.FileFormatOrcShowOutput[]>;
103
+ /**
104
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to remove white space from fields. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
105
+ */
106
+ readonly trimSpace: pulumi.Output<string | undefined>;
107
+ /**
108
+ * Specifies the type of the file format. This field is used to detect when the file format type was changed outside of Terraform and to recreate the resource when that happens.
109
+ */
110
+ readonly type: pulumi.Output<string>;
111
+ /**
112
+ * Create a FileFormatOrc resource with the given unique name, arguments, and options.
113
+ *
114
+ * @param name The _unique_ name of the resource.
115
+ * @param args The arguments to use to populate this resource's properties.
116
+ * @param opts A bag of options that control this resource's behavior.
117
+ */
118
+ constructor(name: string, args: FileFormatOrcArgs, opts?: pulumi.CustomResourceOptions);
119
+ }
120
+ /**
121
+ * Input properties used for looking up and filtering FileFormatOrc resources.
122
+ */
123
+ export interface FileFormatOrcState {
124
+ /**
125
+ * Specifies a comment for the file format.
126
+ */
127
+ comment?: pulumi.Input<string | undefined>;
128
+ /**
129
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
130
+ */
131
+ database?: pulumi.Input<string | undefined>;
132
+ /**
133
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
134
+ */
135
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatOrcDescribeOutput>[] | undefined>;
136
+ /**
137
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
138
+ */
139
+ fullyQualifiedName?: pulumi.Input<string | undefined>;
140
+ /**
141
+ * Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
142
+ */
143
+ name?: pulumi.Input<string | undefined>;
144
+ /**
145
+ * String used to convert to and from SQL NULL.
146
+ */
147
+ nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
148
+ /**
149
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
150
+ */
151
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
152
+ /**
153
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
154
+ */
155
+ schema?: pulumi.Input<string | undefined>;
156
+ /**
157
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
158
+ */
159
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatOrcShowOutput>[] | undefined>;
160
+ /**
161
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to remove white space from fields. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
162
+ */
163
+ trimSpace?: pulumi.Input<string | undefined>;
164
+ /**
165
+ * Specifies the type of the file format. This field is used to detect when the file format type was changed outside of Terraform and to recreate the resource when that happens.
166
+ */
167
+ type?: pulumi.Input<string | undefined>;
168
+ }
169
+ /**
170
+ * The set of arguments for constructing a FileFormatOrc resource.
171
+ */
172
+ export interface FileFormatOrcArgs {
173
+ /**
174
+ * Specifies a comment for the file format.
175
+ */
176
+ comment?: pulumi.Input<string | undefined>;
177
+ /**
178
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
179
+ */
180
+ database: pulumi.Input<string>;
181
+ /**
182
+ * Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
183
+ */
184
+ name?: pulumi.Input<string | undefined>;
185
+ /**
186
+ * String used to convert to and from SQL NULL.
187
+ */
188
+ nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
189
+ /**
190
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to replace invalid UTF-8 characters with the Unicode replacement character. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
191
+ */
192
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
193
+ /**
194
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
195
+ */
196
+ schema: pulumi.Input<string>;
197
+ /**
198
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to remove white space from fields. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
199
+ */
200
+ trimSpace?: pulumi.Input<string | undefined>;
201
+ }
202
+ //# sourceMappingURL=fileFormatOrc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatOrc.d.ts","sourceRoot":"","sources":["../fileFormatOrc.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,aAAa;IAO5I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,aAAa;IAOxD;;OAEG;IACH,SAAwB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnE;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,SAAgC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACtG;;OAEG;IACH,SAAgC,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAA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D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD"}
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.FileFormatOrc = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
33
+ *
34
+ * > **Note** A file format cannot be dropped successfully if it has dependent external tables. Before dropping the resource, first drop the dependent external tables manually.
35
+ *
36
+ * > **Note** Snowflake returns the same `DESCRIBE FILE FORMAT` output for `nullIf` set to an empty list and for `nullIf` set to a list with a single empty string. Because of that, the provider cannot detect an external change between these two values, and `describe_output.null_if` is empty in both cases.
37
+ *
38
+ * Resource used to manage ORC file formats. For more information, check [file format documentation](https://docs.snowflake.com/en/sql-reference/sql/create-file-format).
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
43
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as snowflake from "@pulumi/snowflake";
48
+ *
49
+ * //# Minimal
50
+ * const basic = new snowflake.FileFormatOrc("basic", {
51
+ * database: "database_name",
52
+ * schema: "schema_name",
53
+ * name: "file_format_name",
54
+ * });
55
+ * //# Complete (with every optional set)
56
+ * const complete = new snowflake.FileFormatOrc("complete", {
57
+ * database: "database_name",
58
+ * schema: "schema_name",
59
+ * name: "file_format_name",
60
+ * trimSpace: "true",
61
+ * nullIfs: [
62
+ * "NULL",
63
+ * "",
64
+ * ],
65
+ * replaceInvalidCharacters: "false",
66
+ * comment: "My ORC file format",
67
+ * });
68
+ * ```
69
+ *
70
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
71
+ *
72
+ * ## Import
73
+ *
74
+ * ```sh
75
+ * $ pulumi import snowflake:index/fileFormatOrc:FileFormatOrc example '"<database_name>"."<schema_name>"."<file_format_name>"'
76
+ * ```
77
+ */
78
+ class FileFormatOrc extends pulumi.CustomResource {
79
+ /**
80
+ * Get an existing FileFormatOrc resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param state Any extra arguments used during the lookup.
86
+ * @param opts Optional settings to control the behavior of the CustomResource.
87
+ */
88
+ static get(name, id, state, opts) {
89
+ return new FileFormatOrc(name, state, { ...opts, id: id });
90
+ }
91
+ /** @internal */
92
+ static __pulumiType = 'snowflake:index/fileFormatOrc:FileFormatOrc';
93
+ /**
94
+ * Returns true if the given object is an instance of FileFormatOrc. This is designed to work even
95
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
96
+ */
97
+ static isInstance(obj) {
98
+ if (obj === undefined || obj === null) {
99
+ return false;
100
+ }
101
+ return obj['__pulumiType'] === FileFormatOrc.__pulumiType;
102
+ }
103
+ constructor(name, argsOrState, opts) {
104
+ let resourceInputs = {};
105
+ opts = opts || {};
106
+ if (opts.id) {
107
+ const state = argsOrState;
108
+ resourceInputs["comment"] = state?.comment;
109
+ resourceInputs["database"] = state?.database;
110
+ resourceInputs["describeOutputs"] = state?.describeOutputs;
111
+ resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
112
+ resourceInputs["name"] = state?.name;
113
+ resourceInputs["nullIfs"] = state?.nullIfs;
114
+ resourceInputs["replaceInvalidCharacters"] = state?.replaceInvalidCharacters;
115
+ resourceInputs["schema"] = state?.schema;
116
+ resourceInputs["showOutputs"] = state?.showOutputs;
117
+ resourceInputs["trimSpace"] = state?.trimSpace;
118
+ resourceInputs["type"] = state?.type;
119
+ }
120
+ else {
121
+ const args = argsOrState;
122
+ if (args?.database === undefined && !opts.urn) {
123
+ throw new Error("Missing required property 'database'");
124
+ }
125
+ if (args?.schema === undefined && !opts.urn) {
126
+ throw new Error("Missing required property 'schema'");
127
+ }
128
+ resourceInputs["comment"] = args?.comment;
129
+ resourceInputs["database"] = args?.database;
130
+ resourceInputs["name"] = args?.name;
131
+ resourceInputs["nullIfs"] = args?.nullIfs;
132
+ resourceInputs["replaceInvalidCharacters"] = args?.replaceInvalidCharacters;
133
+ resourceInputs["schema"] = args?.schema;
134
+ resourceInputs["trimSpace"] = args?.trimSpace;
135
+ resourceInputs["describeOutputs"] = undefined /*out*/;
136
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
137
+ resourceInputs["showOutputs"] = undefined /*out*/;
138
+ resourceInputs["type"] = undefined /*out*/;
139
+ }
140
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
141
+ super(FileFormatOrc.__pulumiType, name, resourceInputs, opts);
142
+ }
143
+ }
144
+ exports.FileFormatOrc = FileFormatOrc;
145
+ //# sourceMappingURL=fileFormatOrc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatOrc.js","sourceRoot":"","sources":["../fileFormatOrc.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6CAA6C,CAAC;IAEpF;;;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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAuDD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,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