@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,248 @@
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
+ * Resource used to manage XML file formats. For more information, check [file format documentation](https://docs.snowflake.com/en/sql-reference/sql/create-file-format).
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
14
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as snowflake from "@pulumi/snowflake";
19
+ *
20
+ * //# Minimal
21
+ * const basic = new snowflake.FileFormatXml("basic", {
22
+ * database: "database_name",
23
+ * schema: "schema_name",
24
+ * name: "file_format_name",
25
+ * });
26
+ * //# Complete (with every optional set)
27
+ * const complete = new snowflake.FileFormatXml("complete", {
28
+ * database: "database_name",
29
+ * schema: "schema_name",
30
+ * name: "file_format_name",
31
+ * compression: "GZIP",
32
+ * preserveSpace: "true",
33
+ * stripOuterElement: "true",
34
+ * disableAutoConvert: "false",
35
+ * replaceInvalidCharacters: "false",
36
+ * skipByteOrderMark: "true",
37
+ * comment: "My XML file format",
38
+ * });
39
+ * ```
40
+ *
41
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
42
+ *
43
+ * ## Import
44
+ *
45
+ * ```sh
46
+ * $ pulumi import snowflake:index/fileFormatXml:FileFormatXml example '"<database_name>"."<schema_name>"."<file_format_name>"'
47
+ * ```
48
+ */
49
+ export declare class FileFormatXml extends pulumi.CustomResource {
50
+ /**
51
+ * Get an existing FileFormatXml resource's state with the given name, ID, and optional extra
52
+ * properties used to qualify the lookup.
53
+ *
54
+ * @param name The _unique_ name of the resulting resource.
55
+ * @param id The _unique_ provider ID of the resource to lookup.
56
+ * @param state Any extra arguments used during the lookup.
57
+ * @param opts Optional settings to control the behavior of the CustomResource.
58
+ */
59
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileFormatXmlState, opts?: pulumi.CustomResourceOptions): FileFormatXml;
60
+ /**
61
+ * Returns true if the given object is an instance of FileFormatXml. This is designed to work even
62
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
+ */
64
+ static isInstance(obj: any): obj is FileFormatXml;
65
+ /**
66
+ * Specifies a comment for the file format.
67
+ */
68
+ readonly comment: pulumi.Output<string | undefined>;
69
+ /**
70
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
71
+ */
72
+ readonly compression: pulumi.Output<string | undefined>;
73
+ /**
74
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
75
+ */
76
+ readonly database: pulumi.Output<string>;
77
+ /**
78
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
79
+ */
80
+ readonly describeOutputs: pulumi.Output<outputs.FileFormatXmlDescribeOutput[]>;
81
+ /**
82
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation. 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.
83
+ */
84
+ readonly disableAutoConvert: pulumi.Output<string | undefined>;
85
+ /**
86
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
87
+ */
88
+ readonly fullyQualifiedName: pulumi.Output<string>;
89
+ /**
90
+ * (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.
91
+ */
92
+ readonly ignoreUtf8Errors: pulumi.Output<string | undefined>;
93
+ /**
94
+ * 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: `|`, `.`, `"`.
95
+ */
96
+ readonly name: pulumi.Output<string>;
97
+ /**
98
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content. 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.
99
+ */
100
+ readonly preserveSpace: pulumi.Output<string | undefined>;
101
+ /**
102
+ * (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.
103
+ */
104
+ readonly replaceInvalidCharacters: pulumi.Output<string | undefined>;
105
+ /**
106
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
107
+ */
108
+ readonly schema: pulumi.Output<string>;
109
+ /**
110
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
111
+ */
112
+ readonly showOutputs: pulumi.Output<outputs.FileFormatXmlShowOutput[]>;
113
+ /**
114
+ * (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.
115
+ */
116
+ readonly skipByteOrderMark: pulumi.Output<string | undefined>;
117
+ /**
118
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents. 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.
119
+ */
120
+ readonly stripOuterElement: pulumi.Output<string | undefined>;
121
+ /**
122
+ * 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.
123
+ */
124
+ readonly type: pulumi.Output<string>;
125
+ /**
126
+ * Create a FileFormatXml resource with the given unique name, arguments, and options.
127
+ *
128
+ * @param name The _unique_ name of the resource.
129
+ * @param args The arguments to use to populate this resource's properties.
130
+ * @param opts A bag of options that control this resource's behavior.
131
+ */
132
+ constructor(name: string, args: FileFormatXmlArgs, opts?: pulumi.CustomResourceOptions);
133
+ }
134
+ /**
135
+ * Input properties used for looking up and filtering FileFormatXml resources.
136
+ */
137
+ export interface FileFormatXmlState {
138
+ /**
139
+ * Specifies a comment for the file format.
140
+ */
141
+ comment?: pulumi.Input<string | undefined>;
142
+ /**
143
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
144
+ */
145
+ compression?: pulumi.Input<string | undefined>;
146
+ /**
147
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
148
+ */
149
+ database?: pulumi.Input<string | undefined>;
150
+ /**
151
+ * Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
152
+ */
153
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatXmlDescribeOutput>[] | undefined>;
154
+ /**
155
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation. 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.
156
+ */
157
+ disableAutoConvert?: pulumi.Input<string | undefined>;
158
+ /**
159
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
160
+ */
161
+ fullyQualifiedName?: pulumi.Input<string | undefined>;
162
+ /**
163
+ * (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.
164
+ */
165
+ ignoreUtf8Errors?: pulumi.Input<string | undefined>;
166
+ /**
167
+ * 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: `|`, `.`, `"`.
168
+ */
169
+ name?: pulumi.Input<string | undefined>;
170
+ /**
171
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content. 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.
172
+ */
173
+ preserveSpace?: pulumi.Input<string | undefined>;
174
+ /**
175
+ * (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.
176
+ */
177
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
178
+ /**
179
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
180
+ */
181
+ schema?: pulumi.Input<string | undefined>;
182
+ /**
183
+ * Outputs the result of `SHOW FILE FORMATS` for this file format.
184
+ */
185
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatXmlShowOutput>[] | undefined>;
186
+ /**
187
+ * (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.
188
+ */
189
+ skipByteOrderMark?: pulumi.Input<string | undefined>;
190
+ /**
191
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents. 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.
192
+ */
193
+ stripOuterElement?: pulumi.Input<string | undefined>;
194
+ /**
195
+ * 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.
196
+ */
197
+ type?: pulumi.Input<string | undefined>;
198
+ }
199
+ /**
200
+ * The set of arguments for constructing a FileFormatXml resource.
201
+ */
202
+ export interface FileFormatXmlArgs {
203
+ /**
204
+ * Specifies a comment for the file format.
205
+ */
206
+ comment?: pulumi.Input<string | undefined>;
207
+ /**
208
+ * Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BZ2` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
209
+ */
210
+ compression?: pulumi.Input<string | undefined>;
211
+ /**
212
+ * The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
213
+ */
214
+ database: pulumi.Input<string>;
215
+ /**
216
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser disables automatic conversion of numeric and Boolean values from text to native representation. 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.
217
+ */
218
+ disableAutoConvert?: pulumi.Input<string | undefined>;
219
+ /**
220
+ * (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.
221
+ */
222
+ ignoreUtf8Errors?: pulumi.Input<string | undefined>;
223
+ /**
224
+ * 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: `|`, `.`, `"`.
225
+ */
226
+ name?: pulumi.Input<string | undefined>;
227
+ /**
228
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser preserves leading and trailing spaces in element content. 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.
229
+ */
230
+ preserveSpace?: pulumi.Input<string | undefined>;
231
+ /**
232
+ * (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.
233
+ */
234
+ replaceInvalidCharacters?: pulumi.Input<string | undefined>;
235
+ /**
236
+ * The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
237
+ */
238
+ schema: pulumi.Input<string>;
239
+ /**
240
+ * (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.
241
+ */
242
+ skipByteOrderMark?: pulumi.Input<string | undefined>;
243
+ /**
244
+ * (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Boolean that specifies whether the XML parser strips out the outer XML element, exposing 2nd level elements as separate documents. 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.
245
+ */
246
+ stripOuterElement?: pulumi.Input<string | undefined>;
247
+ }
248
+ //# sourceMappingURL=fileFormatXml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatXml.d.ts","sourceRoot":"","sources":["../fileFormatXml.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,SA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AAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACxD"}
@@ -0,0 +1,151 @@
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.FileFormatXml = 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
+ * Resource used to manage XML file formats. For more information, check [file format documentation](https://docs.snowflake.com/en/sql-reference/sql/create-file-format).
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
41
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as snowflake from "@pulumi/snowflake";
46
+ *
47
+ * //# Minimal
48
+ * const basic = new snowflake.FileFormatXml("basic", {
49
+ * database: "database_name",
50
+ * schema: "schema_name",
51
+ * name: "file_format_name",
52
+ * });
53
+ * //# Complete (with every optional set)
54
+ * const complete = new snowflake.FileFormatXml("complete", {
55
+ * database: "database_name",
56
+ * schema: "schema_name",
57
+ * name: "file_format_name",
58
+ * compression: "GZIP",
59
+ * preserveSpace: "true",
60
+ * stripOuterElement: "true",
61
+ * disableAutoConvert: "false",
62
+ * replaceInvalidCharacters: "false",
63
+ * skipByteOrderMark: "true",
64
+ * comment: "My XML file format",
65
+ * });
66
+ * ```
67
+ *
68
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
69
+ *
70
+ * ## Import
71
+ *
72
+ * ```sh
73
+ * $ pulumi import snowflake:index/fileFormatXml:FileFormatXml example '"<database_name>"."<schema_name>"."<file_format_name>"'
74
+ * ```
75
+ */
76
+ class FileFormatXml extends pulumi.CustomResource {
77
+ /**
78
+ * Get an existing FileFormatXml resource's state with the given name, ID, and optional extra
79
+ * properties used to qualify the lookup.
80
+ *
81
+ * @param name The _unique_ name of the resulting resource.
82
+ * @param id The _unique_ provider ID of the resource to lookup.
83
+ * @param state Any extra arguments used during the lookup.
84
+ * @param opts Optional settings to control the behavior of the CustomResource.
85
+ */
86
+ static get(name, id, state, opts) {
87
+ return new FileFormatXml(name, state, { ...opts, id: id });
88
+ }
89
+ /** @internal */
90
+ static __pulumiType = 'snowflake:index/fileFormatXml:FileFormatXml';
91
+ /**
92
+ * Returns true if the given object is an instance of FileFormatXml. This is designed to work even
93
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
94
+ */
95
+ static isInstance(obj) {
96
+ if (obj === undefined || obj === null) {
97
+ return false;
98
+ }
99
+ return obj['__pulumiType'] === FileFormatXml.__pulumiType;
100
+ }
101
+ constructor(name, argsOrState, opts) {
102
+ let resourceInputs = {};
103
+ opts = opts || {};
104
+ if (opts.id) {
105
+ const state = argsOrState;
106
+ resourceInputs["comment"] = state?.comment;
107
+ resourceInputs["compression"] = state?.compression;
108
+ resourceInputs["database"] = state?.database;
109
+ resourceInputs["describeOutputs"] = state?.describeOutputs;
110
+ resourceInputs["disableAutoConvert"] = state?.disableAutoConvert;
111
+ resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
112
+ resourceInputs["ignoreUtf8Errors"] = state?.ignoreUtf8Errors;
113
+ resourceInputs["name"] = state?.name;
114
+ resourceInputs["preserveSpace"] = state?.preserveSpace;
115
+ resourceInputs["replaceInvalidCharacters"] = state?.replaceInvalidCharacters;
116
+ resourceInputs["schema"] = state?.schema;
117
+ resourceInputs["showOutputs"] = state?.showOutputs;
118
+ resourceInputs["skipByteOrderMark"] = state?.skipByteOrderMark;
119
+ resourceInputs["stripOuterElement"] = state?.stripOuterElement;
120
+ resourceInputs["type"] = state?.type;
121
+ }
122
+ else {
123
+ const args = argsOrState;
124
+ if (args?.database === undefined && !opts.urn) {
125
+ throw new Error("Missing required property 'database'");
126
+ }
127
+ if (args?.schema === undefined && !opts.urn) {
128
+ throw new Error("Missing required property 'schema'");
129
+ }
130
+ resourceInputs["comment"] = args?.comment;
131
+ resourceInputs["compression"] = args?.compression;
132
+ resourceInputs["database"] = args?.database;
133
+ resourceInputs["disableAutoConvert"] = args?.disableAutoConvert;
134
+ resourceInputs["ignoreUtf8Errors"] = args?.ignoreUtf8Errors;
135
+ resourceInputs["name"] = args?.name;
136
+ resourceInputs["preserveSpace"] = args?.preserveSpace;
137
+ resourceInputs["replaceInvalidCharacters"] = args?.replaceInvalidCharacters;
138
+ resourceInputs["schema"] = args?.schema;
139
+ resourceInputs["skipByteOrderMark"] = args?.skipByteOrderMark;
140
+ resourceInputs["stripOuterElement"] = args?.stripOuterElement;
141
+ resourceInputs["describeOutputs"] = undefined /*out*/;
142
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
143
+ resourceInputs["showOutputs"] = undefined /*out*/;
144
+ resourceInputs["type"] = undefined /*out*/;
145
+ }
146
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
147
+ super(FileFormatXml.__pulumiType, name, resourceInputs, opts);
148
+ }
149
+ }
150
+ exports.FileFormatXml = FileFormatXml;
151
+ //# sourceMappingURL=fileFormatXml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileFormatXml.js","sourceRoot":"","sources":["../fileFormatXml.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,YAA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AC;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;;AA/IL,sCAgJC"}
@@ -1,46 +1,35 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
2
3
  import * as outputs from "./types/output";
3
4
  /**
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.
5
6
  *
6
- * ## Example Usage
7
- *
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as snowflake from "@pulumi/snowflake";
11
- *
12
- * const current = snowflake.getFileFormats({
13
- * database: "MYDB",
14
- * schema: "MYSCHEMA",
15
- * });
16
- * ```
17
- *
18
- * > **Note** If a field has a default value, it is shown next to the type in the schema.
7
+ * Data source used to get details of filtered file formats. Filtering is aligned with the current possibilities for [SHOW FILE FORMATS](https://docs.snowflake.com/en/sql-reference/sql/show-file-formats) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `fileFormats`.
19
8
  */
20
- export declare function getFileFormats(args: GetFileFormatsArgs, opts?: pulumi.InvokeOptions): Promise<GetFileFormatsResult>;
9
+ export declare function getFileFormats(args?: GetFileFormatsArgs, opts?: pulumi.InvokeOptions): Promise<GetFileFormatsResult>;
21
10
  /**
22
11
  * A collection of arguments for invoking getFileFormats.
23
12
  */
24
13
  export interface GetFileFormatsArgs {
25
14
  /**
26
- * The database from which to return the schemas from.
15
+ * IN clause to filter the list of objects
16
+ */
17
+ in?: inputs.GetFileFormatsIn;
18
+ /**
19
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
27
20
  */
28
- database: string;
21
+ like?: string;
29
22
  /**
30
- * The schema from which to return the file formats from.
23
+ * (Default: `true`) Runs DESC FILE FORMAT for each file format returned by SHOW FILE FORMATS. The output of describe is saved to the describeOutput field. By default this value is set to true.
31
24
  */
32
- schema: string;
25
+ withDescribe?: boolean;
33
26
  }
34
27
  /**
35
28
  * A collection of values returned by getFileFormats.
36
29
  */
37
30
  export interface GetFileFormatsResult {
38
31
  /**
39
- * The database from which to return the schemas from.
40
- */
41
- readonly database: string;
42
- /**
43
- * The file formats in the schema
32
+ * Holds the aggregated output of all file formats details queries.
44
33
  */
45
34
  readonly fileFormats: outputs.GetFileFormatsFileFormat[];
46
35
  /**
@@ -48,39 +37,39 @@ export interface GetFileFormatsResult {
48
37
  */
49
38
  readonly id: string;
50
39
  /**
51
- * The schema from which to return the file formats from.
40
+ * IN clause to filter the list of objects
41
+ */
42
+ readonly in?: outputs.GetFileFormatsIn;
43
+ /**
44
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
45
+ */
46
+ readonly like?: string;
47
+ /**
48
+ * (Default: `true`) Runs DESC FILE FORMAT for each file format returned by SHOW FILE FORMATS. The output of describe is saved to the describeOutput field. By default this value is set to true.
52
49
  */
53
- readonly schema: string;
50
+ readonly withDescribe?: boolean;
54
51
  }
55
52
  /**
56
53
  * > **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.
57
54
  *
58
- * ## Example Usage
59
- *
60
- * ```typescript
61
- * import * as pulumi from "@pulumi/pulumi";
62
- * import * as snowflake from "@pulumi/snowflake";
63
- *
64
- * const current = snowflake.getFileFormats({
65
- * database: "MYDB",
66
- * schema: "MYSCHEMA",
67
- * });
68
- * ```
69
- *
70
- * > **Note** If a field has a default value, it is shown next to the type in the schema.
55
+ * Data source used to get details of filtered file formats. Filtering is aligned with the current possibilities for [SHOW FILE FORMATS](https://docs.snowflake.com/en/sql-reference/sql/show-file-formats) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `fileFormats`.
71
56
  */
72
- export declare function getFileFormatsOutput(args: GetFileFormatsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFileFormatsResult>;
57
+ export declare function getFileFormatsOutput(args?: GetFileFormatsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFileFormatsResult>;
73
58
  /**
74
59
  * A collection of arguments for invoking getFileFormats.
75
60
  */
76
61
  export interface GetFileFormatsOutputArgs {
77
62
  /**
78
- * The database from which to return the schemas from.
63
+ * IN clause to filter the list of objects
64
+ */
65
+ in?: pulumi.Input<inputs.GetFileFormatsInArgs | undefined>;
66
+ /**
67
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
79
68
  */
80
- database: pulumi.Input<string>;
69
+ like?: pulumi.Input<string | undefined>;
81
70
  /**
82
- * The schema from which to return the file formats from.
71
+ * (Default: `true`) Runs DESC FILE FORMAT for each file format returned by SHOW FILE FORMATS. The output of describe is saved to the describeOutput field. By default this value is set to true.
83
72
  */
84
- schema: pulumi.Input<string>;
73
+ withDescribe?: pulumi.Input<boolean | undefined>;
85
74
  }
86
75
  //# sourceMappingURL=getFileFormats.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFileFormats.d.ts","sourceRoot":"","sources":["../getFileFormats.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MA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ED
@@ -31,50 +31,30 @@ const utilities = __importStar(require("./utilities"));
31
31
  /**
32
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
33
  *
34
- * ## Example Usage
35
- *
36
- * ```typescript
37
- * import * as pulumi from "@pulumi/pulumi";
38
- * import * as snowflake from "@pulumi/snowflake";
39
- *
40
- * const current = snowflake.getFileFormats({
41
- * database: "MYDB",
42
- * schema: "MYSCHEMA",
43
- * });
44
- * ```
45
- *
46
- * > **Note** If a field has a default value, it is shown next to the type in the schema.
34
+ * Data source used to get details of filtered file formats. Filtering is aligned with the current possibilities for [SHOW FILE FORMATS](https://docs.snowflake.com/en/sql-reference/sql/show-file-formats) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `fileFormats`.
47
35
  */
48
36
  function getFileFormats(args, opts) {
37
+ args = args || {};
49
38
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
50
39
  return pulumi.runtime.invoke("snowflake:index/getFileFormats:getFileFormats", {
51
- "database": args.database,
52
- "schema": args.schema,
40
+ "in": args.in,
41
+ "like": args.like,
42
+ "withDescribe": args.withDescribe,
53
43
  }, opts);
54
44
  }
55
45
  exports.getFileFormats = getFileFormats;
56
46
  /**
57
47
  * > **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.
58
48
  *
59
- * ## Example Usage
60
- *
61
- * ```typescript
62
- * import * as pulumi from "@pulumi/pulumi";
63
- * import * as snowflake from "@pulumi/snowflake";
64
- *
65
- * const current = snowflake.getFileFormats({
66
- * database: "MYDB",
67
- * schema: "MYSCHEMA",
68
- * });
69
- * ```
70
- *
71
- * > **Note** If a field has a default value, it is shown next to the type in the schema.
49
+ * Data source used to get details of filtered file formats. Filtering is aligned with the current possibilities for [SHOW FILE FORMATS](https://docs.snowflake.com/en/sql-reference/sql/show-file-formats) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `fileFormats`.
72
50
  */
73
51
  function getFileFormatsOutput(args, opts) {
52
+ args = args || {};
74
53
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
75
54
  return pulumi.runtime.invokeOutput("snowflake:index/getFileFormats:getFileFormats", {
76
- "database": args.database,
77
- "schema": args.schema,
55
+ "in": args.in,
56
+ "like": args.like,
57
+ "withDescribe": args.withDescribe,
78
58
  }, opts);
79
59
  }
80
60
  exports.getFileFormatsOutput = getFileFormatsOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"getFileFormats.js","sourceRoot":"","sources":["../getFileFormats.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,+CAA+C,EAAE;QAC1E,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wCAMC;AAqCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAAiC;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,C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