@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,201 @@
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.FileFormatCsv = 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 CSV 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.FileFormatCsv("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.FileFormatCsv("complete", {
57
+ * database: "database_name",
58
+ * schema: "schema_name",
59
+ * name: "file_format_name",
60
+ * compression: "GZIP",
61
+ * recordDelimiter: ";",
62
+ * fieldDelimiter: "|",
63
+ * multiLine: "true",
64
+ * fileExtension: ".csv",
65
+ * skipHeader: 1,
66
+ * skipBlankLines: "true",
67
+ * dateFormat: "YYYY-MM-DD",
68
+ * timeFormat: "HH24:MI:SS",
69
+ * timestampFormat: "YYYY-MM-DD HH24:MI:SS.FF3",
70
+ * binaryFormat: "BASE64",
71
+ * escape: "NONE",
72
+ * escapeUnenclosedField: "NONE",
73
+ * trimSpace: "true",
74
+ * fieldOptionallyEnclosedBy: "\"",
75
+ * nullIfs: [
76
+ * "NULL",
77
+ * "",
78
+ * ],
79
+ * errorOnColumnCountMismatch: "false",
80
+ * replaceInvalidCharacters: "false",
81
+ * emptyFieldAsNull: "true",
82
+ * skipByteOrderMark: "true",
83
+ * encoding: "UTF8",
84
+ * comment: "My CSV file format",
85
+ * });
86
+ * ```
87
+ *
88
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
89
+ *
90
+ * ## Import
91
+ *
92
+ * ```sh
93
+ * $ pulumi import snowflake:index/fileFormatCsv:FileFormatCsv example '"<database_name>"."<schema_name>"."<file_format_name>"'
94
+ * ```
95
+ */
96
+ class FileFormatCsv extends pulumi.CustomResource {
97
+ /**
98
+ * Get an existing FileFormatCsv resource's state with the given name, ID, and optional extra
99
+ * properties used to qualify the lookup.
100
+ *
101
+ * @param name The _unique_ name of the resulting resource.
102
+ * @param id The _unique_ provider ID of the resource to lookup.
103
+ * @param state Any extra arguments used during the lookup.
104
+ * @param opts Optional settings to control the behavior of the CustomResource.
105
+ */
106
+ static get(name, id, state, opts) {
107
+ return new FileFormatCsv(name, state, { ...opts, id: id });
108
+ }
109
+ /** @internal */
110
+ static __pulumiType = 'snowflake:index/fileFormatCsv:FileFormatCsv';
111
+ /**
112
+ * Returns true if the given object is an instance of FileFormatCsv. This is designed to work even
113
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
114
+ */
115
+ static isInstance(obj) {
116
+ if (obj === undefined || obj === null) {
117
+ return false;
118
+ }
119
+ return obj['__pulumiType'] === FileFormatCsv.__pulumiType;
120
+ }
121
+ constructor(name, argsOrState, opts) {
122
+ let resourceInputs = {};
123
+ opts = opts || {};
124
+ if (opts.id) {
125
+ const state = argsOrState;
126
+ resourceInputs["binaryFormat"] = state?.binaryFormat;
127
+ resourceInputs["comment"] = state?.comment;
128
+ resourceInputs["compression"] = state?.compression;
129
+ resourceInputs["database"] = state?.database;
130
+ resourceInputs["dateFormat"] = state?.dateFormat;
131
+ resourceInputs["describeOutputs"] = state?.describeOutputs;
132
+ resourceInputs["emptyFieldAsNull"] = state?.emptyFieldAsNull;
133
+ resourceInputs["encoding"] = state?.encoding;
134
+ resourceInputs["errorOnColumnCountMismatch"] = state?.errorOnColumnCountMismatch;
135
+ resourceInputs["escape"] = state?.escape;
136
+ resourceInputs["escapeUnenclosedField"] = state?.escapeUnenclosedField;
137
+ resourceInputs["fieldDelimiter"] = state?.fieldDelimiter;
138
+ resourceInputs["fieldOptionallyEnclosedBy"] = state?.fieldOptionallyEnclosedBy;
139
+ resourceInputs["fileExtension"] = state?.fileExtension;
140
+ resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
141
+ resourceInputs["multiLine"] = state?.multiLine;
142
+ resourceInputs["name"] = state?.name;
143
+ resourceInputs["nullIfs"] = state?.nullIfs;
144
+ resourceInputs["parseHeader"] = state?.parseHeader;
145
+ resourceInputs["recordDelimiter"] = state?.recordDelimiter;
146
+ resourceInputs["replaceInvalidCharacters"] = state?.replaceInvalidCharacters;
147
+ resourceInputs["schema"] = state?.schema;
148
+ resourceInputs["showOutputs"] = state?.showOutputs;
149
+ resourceInputs["skipBlankLines"] = state?.skipBlankLines;
150
+ resourceInputs["skipByteOrderMark"] = state?.skipByteOrderMark;
151
+ resourceInputs["skipHeader"] = state?.skipHeader;
152
+ resourceInputs["timeFormat"] = state?.timeFormat;
153
+ resourceInputs["timestampFormat"] = state?.timestampFormat;
154
+ resourceInputs["trimSpace"] = state?.trimSpace;
155
+ resourceInputs["type"] = state?.type;
156
+ }
157
+ else {
158
+ const args = argsOrState;
159
+ if (args?.database === undefined && !opts.urn) {
160
+ throw new Error("Missing required property 'database'");
161
+ }
162
+ if (args?.schema === undefined && !opts.urn) {
163
+ throw new Error("Missing required property 'schema'");
164
+ }
165
+ resourceInputs["binaryFormat"] = args?.binaryFormat;
166
+ resourceInputs["comment"] = args?.comment;
167
+ resourceInputs["compression"] = args?.compression;
168
+ resourceInputs["database"] = args?.database;
169
+ resourceInputs["dateFormat"] = args?.dateFormat;
170
+ resourceInputs["emptyFieldAsNull"] = args?.emptyFieldAsNull;
171
+ resourceInputs["encoding"] = args?.encoding;
172
+ resourceInputs["errorOnColumnCountMismatch"] = args?.errorOnColumnCountMismatch;
173
+ resourceInputs["escape"] = args?.escape;
174
+ resourceInputs["escapeUnenclosedField"] = args?.escapeUnenclosedField;
175
+ resourceInputs["fieldDelimiter"] = args?.fieldDelimiter;
176
+ resourceInputs["fieldOptionallyEnclosedBy"] = args?.fieldOptionallyEnclosedBy;
177
+ resourceInputs["fileExtension"] = args?.fileExtension;
178
+ resourceInputs["multiLine"] = args?.multiLine;
179
+ resourceInputs["name"] = args?.name;
180
+ resourceInputs["nullIfs"] = args?.nullIfs;
181
+ resourceInputs["parseHeader"] = args?.parseHeader;
182
+ resourceInputs["recordDelimiter"] = args?.recordDelimiter;
183
+ resourceInputs["replaceInvalidCharacters"] = args?.replaceInvalidCharacters;
184
+ resourceInputs["schema"] = args?.schema;
185
+ resourceInputs["skipBlankLines"] = args?.skipBlankLines;
186
+ resourceInputs["skipByteOrderMark"] = args?.skipByteOrderMark;
187
+ resourceInputs["skipHeader"] = args?.skipHeader;
188
+ resourceInputs["timeFormat"] = args?.timeFormat;
189
+ resourceInputs["timestampFormat"] = args?.timestampFormat;
190
+ resourceInputs["trimSpace"] = args?.trimSpace;
191
+ resourceInputs["describeOutputs"] = undefined /*out*/;
192
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
193
+ resourceInputs["showOutputs"] = undefined /*out*/;
194
+ resourceInputs["type"] = undefined /*out*/;
195
+ }
196
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
197
+ super(FileFormatCsv.__pulumiType, name, resourceInputs, opts);
198
+ }
199
+ }
200
+ exports.FileFormatCsv = FileFormatCsv;
201
+ //# sourceMappingURL=fileFormatCsv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatCsv.js","sourceRoot":"","sources":["../fileFormatCsv.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;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;QAC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,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAzOL,sCA0OC"}
@@ -0,0 +1,371 @@
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 JSON 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.FileFormatJson("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.FileFormatJson("complete", {
30
+ * database: "database_name",
31
+ * schema: "schema_name",
32
+ * name: "file_format_name",
33
+ * compression: "GZIP",
34
+ * dateFormat: "YYYY-MM-DD",
35
+ * timeFormat: "HH24:MI:SS",
36
+ * timestampFormat: "YYYY-MM-DD HH24:MI:SS.FF3",
37
+ * binaryFormat: "BASE64",
38
+ * trimSpace: "true",
39
+ * multiLine: "true",
40
+ * nullIfs: [
41
+ * "NULL",
42
+ * "",
43
+ * ],
44
+ * fileExtension: ".json",
45
+ * enableOctal: "false",
46
+ * allowDuplicate: "false",
47
+ * stripOuterArray: "true",
48
+ * stripNullValues: "false",
49
+ * replaceInvalidCharacters: "false",
50
+ * ignoreUtf8Errors: "false",
51
+ * skipByteOrderMark: "true",
52
+ * comment: "My JSON file format",
53
+ * });
54
+ * ```
55
+ *
56
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
57
+ *
58
+ * ## Import
59
+ *
60
+ * ```sh
61
+ * $ pulumi import snowflake:index/fileFormatJson:FileFormatJson example '"<database_name>"."<schema_name>"."<file_format_name>"'
62
+ * ```
63
+ */
64
+ export declare class FileFormatJson extends pulumi.CustomResource {
65
+ /**
66
+ * Get an existing FileFormatJson resource's state with the given name, ID, and optional extra
67
+ * properties used to qualify the lookup.
68
+ *
69
+ * @param name The _unique_ name of the resulting resource.
70
+ * @param id The _unique_ provider ID of the resource to lookup.
71
+ * @param state Any extra arguments used during the lookup.
72
+ * @param opts Optional settings to control the behavior of the CustomResource.
73
+ */
74
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileFormatJsonState, opts?: pulumi.CustomResourceOptions): FileFormatJson;
75
+ /**
76
+ * Returns true if the given object is an instance of FileFormatJson. This is designed to work even
77
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
78
+ */
79
+ static isInstance(obj: any): obj is FileFormatJson;
80
+ /**
81
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow duplicate object field names (only the last one will be preserved). 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.
82
+ */
83
+ readonly allowDuplicate: pulumi.Output<string | undefined>;
84
+ /**
85
+ * Defines the encoding format for binary input or output. Valid values: `HEX` | `BASE64` | `UTF8`.
86
+ */
87
+ readonly binaryFormat: pulumi.Output<string | undefined>;
88
+ /**
89
+ * Specifies a comment for the file format.
90
+ */
91
+ readonly comment: pulumi.Output<string | undefined>;
92
+ /**
93
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
94
+ */
95
+ readonly compression: pulumi.Output<string | undefined>;
96
+ /**
97
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
98
+ */
99
+ readonly database: pulumi.Output<string>;
100
+ /**
101
+ * Defines the format of date values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
102
+ */
103
+ readonly dateFormat: pulumi.Output<string | undefined>;
104
+ /**
105
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
106
+ */
107
+ readonly describeOutputs: pulumi.Output<outputs.FileFormatJsonDescribeOutput[]>;
108
+ /**
109
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that enables parsing of octal numbers. 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.
110
+ */
111
+ readonly enableOctal: pulumi.Output<string | undefined>;
112
+ /**
113
+ * Specifies the extension for files unloaded to a stage.
114
+ */
115
+ readonly fileExtension: pulumi.Output<string | undefined>;
116
+ /**
117
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
118
+ */
119
+ readonly fullyQualifiedName: pulumi.Output<string>;
120
+ /**
121
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether UTF-8 encoding errors produce error conditions. 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.
122
+ */
123
+ readonly ignoreUtf8Errors: pulumi.Output<string | undefined>;
124
+ /**
125
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow multiple records on a single line. 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.
126
+ */
127
+ readonly multiLine: pulumi.Output<string | undefined>;
128
+ /**
129
+ * 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: `|`, `.`, `"`.
130
+ */
131
+ readonly name: pulumi.Output<string>;
132
+ /**
133
+ * String used to convert to and from SQL NULL.
134
+ */
135
+ readonly nullIfs: pulumi.Output<string[] | undefined>;
136
+ /**
137
+ * (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.
138
+ */
139
+ readonly replaceInvalidCharacters: pulumi.Output<string | undefined>;
140
+ /**
141
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
142
+ */
143
+ readonly schema: pulumi.Output<string>;
144
+ /**
145
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
146
+ */
147
+ readonly showOutputs: pulumi.Output<outputs.FileFormatJsonShowOutput[]>;
148
+ /**
149
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to skip the BOM (byte order mark) if present in a data file. 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
+ readonly skipByteOrderMark: pulumi.Output<string | undefined>;
152
+ /**
153
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove object fields or array elements containing null values. 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.
154
+ */
155
+ readonly stripNullValues: pulumi.Output<string | undefined>;
156
+ /**
157
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove outer brackets. 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.
158
+ */
159
+ readonly stripOuterArray: pulumi.Output<string | undefined>;
160
+ /**
161
+ * Defines the format of time values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
162
+ */
163
+ readonly timeFormat: pulumi.Output<string | undefined>;
164
+ /**
165
+ * Defines the format of timestamp values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
166
+ */
167
+ readonly timestampFormat: pulumi.Output<string | undefined>;
168
+ /**
169
+ * (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.
170
+ */
171
+ readonly trimSpace: pulumi.Output<string | undefined>;
172
+ /**
173
+ * 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.
174
+ */
175
+ readonly type: pulumi.Output<string>;
176
+ /**
177
+ * Create a FileFormatJson resource with the given unique name, arguments, and options.
178
+ *
179
+ * @param name The _unique_ name of the resource.
180
+ * @param args The arguments to use to populate this resource's properties.
181
+ * @param opts A bag of options that control this resource's behavior.
182
+ */
183
+ constructor(name: string, args: FileFormatJsonArgs, opts?: pulumi.CustomResourceOptions);
184
+ }
185
+ /**
186
+ * Input properties used for looking up and filtering FileFormatJson resources.
187
+ */
188
+ export interface FileFormatJsonState {
189
+ /**
190
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow duplicate object field names (only the last one will be preserved). 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
+ allowDuplicate?: pulumi.Input<string | undefined>;
193
+ /**
194
+ * Defines the encoding format for binary input or output. Valid values: `HEX` | `BASE64` | `UTF8`.
195
+ */
196
+ binaryFormat?: pulumi.Input<string | undefined>;
197
+ /**
198
+ * Specifies a comment for the file format.
199
+ */
200
+ comment?: pulumi.Input<string | undefined>;
201
+ /**
202
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
203
+ */
204
+ compression?: pulumi.Input<string | undefined>;
205
+ /**
206
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
207
+ */
208
+ database?: pulumi.Input<string | undefined>;
209
+ /**
210
+ * Defines the format of date values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
211
+ */
212
+ dateFormat?: pulumi.Input<string | undefined>;
213
+ /**
214
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
215
+ */
216
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatJsonDescribeOutput>[] | undefined>;
217
+ /**
218
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that enables parsing of octal numbers. 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.
219
+ */
220
+ enableOctal?: pulumi.Input<string | undefined>;
221
+ /**
222
+ * Specifies the extension for files unloaded to a stage.
223
+ */
224
+ fileExtension?: pulumi.Input<string | undefined>;
225
+ /**
226
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
227
+ */
228
+ fullyQualifiedName?: pulumi.Input<string | undefined>;
229
+ /**
230
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether UTF-8 encoding errors produce error conditions. 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.
231
+ */
232
+ ignoreUtf8Errors?: pulumi.Input<string | undefined>;
233
+ /**
234
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow multiple records on a single line. 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.
235
+ */
236
+ multiLine?: pulumi.Input<string | undefined>;
237
+ /**
238
+ * 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: `|`, `.`, `"`.
239
+ */
240
+ name?: pulumi.Input<string | undefined>;
241
+ /**
242
+ * String used to convert to and from SQL NULL.
243
+ */
244
+ nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
245
+ /**
246
+ * (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.
247
+ */
248
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
249
+ /**
250
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
251
+ */
252
+ schema?: pulumi.Input<string | undefined>;
253
+ /**
254
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
255
+ */
256
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatJsonShowOutput>[] | undefined>;
257
+ /**
258
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to skip the BOM (byte order mark) if present in a data file. 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.
259
+ */
260
+ skipByteOrderMark?: pulumi.Input<string | undefined>;
261
+ /**
262
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove object fields or array elements containing null values. 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.
263
+ */
264
+ stripNullValues?: pulumi.Input<string | undefined>;
265
+ /**
266
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove outer brackets. 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.
267
+ */
268
+ stripOuterArray?: pulumi.Input<string | undefined>;
269
+ /**
270
+ * Defines the format of time values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
271
+ */
272
+ timeFormat?: pulumi.Input<string | undefined>;
273
+ /**
274
+ * Defines the format of timestamp values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
275
+ */
276
+ timestampFormat?: pulumi.Input<string | undefined>;
277
+ /**
278
+ * (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.
279
+ */
280
+ trimSpace?: pulumi.Input<string | undefined>;
281
+ /**
282
+ * 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.
283
+ */
284
+ type?: pulumi.Input<string | undefined>;
285
+ }
286
+ /**
287
+ * The set of arguments for constructing a FileFormatJson resource.
288
+ */
289
+ export interface FileFormatJsonArgs {
290
+ /**
291
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow duplicate object field names (only the last one will be preserved). 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.
292
+ */
293
+ allowDuplicate?: pulumi.Input<string | undefined>;
294
+ /**
295
+ * Defines the encoding format for binary input or output. Valid values: `HEX` | `BASE64` | `UTF8`.
296
+ */
297
+ binaryFormat?: pulumi.Input<string | undefined>;
298
+ /**
299
+ * Specifies a comment for the file format.
300
+ */
301
+ comment?: pulumi.Input<string | undefined>;
302
+ /**
303
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
304
+ */
305
+ compression?: pulumi.Input<string | undefined>;
306
+ /**
307
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
308
+ */
309
+ database: pulumi.Input<string>;
310
+ /**
311
+ * Defines the format of date values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
312
+ */
313
+ dateFormat?: pulumi.Input<string | undefined>;
314
+ /**
315
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that enables parsing of octal numbers. 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.
316
+ */
317
+ enableOctal?: pulumi.Input<string | undefined>;
318
+ /**
319
+ * Specifies the extension for files unloaded to a stage.
320
+ */
321
+ fileExtension?: pulumi.Input<string | undefined>;
322
+ /**
323
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether UTF-8 encoding errors produce error conditions. 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.
324
+ */
325
+ ignoreUtf8Errors?: pulumi.Input<string | undefined>;
326
+ /**
327
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to allow multiple records on a single line. 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.
328
+ */
329
+ multiLine?: pulumi.Input<string | undefined>;
330
+ /**
331
+ * 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: `|`, `.`, `"`.
332
+ */
333
+ name?: pulumi.Input<string | undefined>;
334
+ /**
335
+ * String used to convert to and from SQL NULL.
336
+ */
337
+ nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
338
+ /**
339
+ * (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.
340
+ */
341
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
342
+ /**
343
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
344
+ */
345
+ schema: pulumi.Input<string>;
346
+ /**
347
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether to skip the BOM (byte order mark) if present in a data file. 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.
348
+ */
349
+ skipByteOrderMark?: pulumi.Input<string | undefined>;
350
+ /**
351
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove object fields or array elements containing null values. 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.
352
+ */
353
+ stripNullValues?: pulumi.Input<string | undefined>;
354
+ /**
355
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that instructs the JSON parser to remove outer brackets. 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.
356
+ */
357
+ stripOuterArray?: pulumi.Input<string | undefined>;
358
+ /**
359
+ * Defines the format of time values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
360
+ */
361
+ timeFormat?: pulumi.Input<string | undefined>;
362
+ /**
363
+ * Defines the format of timestamp values in the data files. Use `AUTO` to have Snowflake auto-detect the format.
364
+ */
365
+ timestampFormat?: pulumi.Input<string | undefined>;
366
+ /**
367
+ * (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.
368
+ */
369
+ trimSpace?: pulumi.Input<string | undefined>;
370
+ }
371
+ //# sourceMappingURL=fileFormatJson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatJson.d.ts","sourceRoot":"","sources":["../fileFormatJson.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,cAAc;IAO9I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,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