@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.
- package/accountAuthenticationPolicyAttachment.d.ts +11 -3
- package/accountAuthenticationPolicyAttachment.d.ts.map +1 -1
- package/accountAuthenticationPolicyAttachment.js +8 -0
- package/accountAuthenticationPolicyAttachment.js.map +1 -1
- package/accountParameter.d.ts +3 -3
- package/accountSessionPolicyAttachment.d.ts +2 -0
- package/accountSessionPolicyAttachment.d.ts.map +1 -1
- package/accountSessionPolicyAttachment.js +2 -0
- package/accountSessionPolicyAttachment.js.map +1 -1
- package/config/vars.d.ts +7 -3
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/currentAccount.d.ts +12 -0
- package/currentAccount.d.ts.map +1 -1
- package/currentAccount.js +2 -0
- package/currentAccount.js.map +1 -1
- package/currentOrganizationAccount.d.ts +12 -0
- package/currentOrganizationAccount.d.ts.map +1 -1
- package/currentOrganizationAccount.js +2 -0
- package/currentOrganizationAccount.js.map +1 -1
- package/database.d.ts +24 -0
- package/database.d.ts.map +1 -1
- package/database.js +4 -0
- package/database.js.map +1 -1
- package/fileFormat.d.ts +2 -0
- package/fileFormat.d.ts.map +1 -1
- package/fileFormat.js +2 -0
- package/fileFormat.js.map +1 -1
- package/fileFormatAvro.d.ts +215 -0
- package/fileFormatAvro.d.ts.map +1 -0
- package/fileFormatAvro.js +148 -0
- package/fileFormatAvro.js.map +1 -0
- package/fileFormatCsv.d.ts +448 -0
- package/fileFormatCsv.d.ts.map +1 -0
- package/fileFormatCsv.js +201 -0
- package/fileFormatCsv.js.map +1 -0
- package/fileFormatJson.d.ts +371 -0
- package/fileFormatJson.d.ts.map +1 -0
- package/fileFormatJson.js +184 -0
- package/fileFormatJson.js.map +1 -0
- package/fileFormatOrc.d.ts +202 -0
- package/fileFormatOrc.d.ts.map +1 -0
- package/fileFormatOrc.js +145 -0
- package/fileFormatOrc.js.map +1 -0
- package/fileFormatParquet.d.ts +254 -0
- package/fileFormatParquet.d.ts.map +1 -0
- package/fileFormatParquet.js +157 -0
- package/fileFormatParquet.js.map +1 -0
- package/fileFormatXml.d.ts +248 -0
- package/fileFormatXml.d.ts.map +1 -0
- package/fileFormatXml.js +151 -0
- package/fileFormatXml.js.map +1 -0
- package/getFileFormats.d.ts +32 -43
- package/getFileFormats.d.ts.map +1 -1
- package/getFileFormats.js +10 -30
- package/getFileFormats.js.map +1 -1
- package/getGrants.d.ts +48 -0
- package/getGrants.d.ts.map +1 -1
- package/getGrants.js +38 -0
- package/getGrants.js.map +1 -1
- package/getIcebergTables.d.ts +111 -0
- package/getIcebergTables.d.ts.map +1 -0
- package/getIcebergTables.js +67 -0
- package/getIcebergTables.js.map +1 -0
- package/getMcpServers.d.ts +75 -0
- package/getMcpServers.d.ts.map +1 -0
- package/getMcpServers.js +61 -0
- package/getMcpServers.js.map +1 -0
- package/getNetworkRules.d.ts +0 -4
- package/getNetworkRules.d.ts.map +1 -1
- package/getNetworkRules.js +0 -4
- package/getNetworkRules.js.map +1 -1
- package/icebergTable.d.ts +615 -0
- package/icebergTable.d.ts.map +1 -0
- package/icebergTable.js +361 -0
- package/icebergTable.js.map +1 -0
- package/icebergTableFromAwsGlue.d.ts +237 -0
- package/icebergTableFromAwsGlue.d.ts.map +1 -0
- package/icebergTableFromAwsGlue.js +153 -0
- package/icebergTableFromAwsGlue.js.map +1 -0
- package/icebergTableFromDeltaFiles.d.ts +5 -3
- package/icebergTableFromDeltaFiles.d.ts.map +1 -1
- package/icebergTableFromDeltaFiles.js +5 -3
- package/icebergTableFromDeltaFiles.js.map +1 -1
- package/icebergTableFromFiles.d.ts +4 -2
- package/icebergTableFromFiles.d.ts.map +1 -1
- package/icebergTableFromFiles.js +4 -2
- package/icebergTableFromFiles.js.map +1 -1
- package/icebergTableFromRest.d.ts +304 -0
- package/icebergTableFromRest.d.ts.map +1 -0
- package/icebergTableFromRest.js +170 -0
- package/icebergTableFromRest.js.map +1 -0
- package/index.d.ts +39 -0
- package/index.d.ts.map +1 -1
- package/index.js +67 -6
- package/index.js.map +1 -1
- package/legacyServiceUser.d.ts +11 -1
- package/legacyServiceUser.d.ts.map +1 -1
- package/legacyServiceUser.js +11 -1
- package/legacyServiceUser.js.map +1 -1
- package/mcpServer.d.ts +134 -0
- package/mcpServer.d.ts.map +1 -0
- package/mcpServer.js +106 -0
- package/mcpServer.js.map +1 -0
- package/oauthIntegrationForCustomClients.d.ts +13 -1
- package/oauthIntegrationForCustomClients.d.ts.map +1 -1
- package/oauthIntegrationForCustomClients.js +3 -1
- package/oauthIntegrationForCustomClients.js.map +1 -1
- package/oauthIntegrationForPartnerApplications.d.ts +12 -0
- package/oauthIntegrationForPartnerApplications.d.ts.map +1 -1
- package/oauthIntegrationForPartnerApplications.js +2 -0
- package/oauthIntegrationForPartnerApplications.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +13 -3
- package/provider.d.ts.map +1 -1
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/saml2Integration.d.ts +1 -4
- package/saml2Integration.d.ts.map +1 -1
- package/saml2Integration.js +1 -4
- package/saml2Integration.js.map +1 -1
- package/schema.d.ts +24 -0
- package/schema.d.ts.map +1 -1
- package/schema.js +4 -0
- package/schema.js.map +1 -1
- package/secondaryDatabase.d.ts +24 -0
- package/secondaryDatabase.d.ts.map +1 -1
- package/secondaryDatabase.js +4 -0
- package/secondaryDatabase.js.map +1 -1
- package/serviceUser.d.ts +11 -1
- package/serviceUser.d.ts.map +1 -1
- package/serviceUser.js +11 -1
- package/serviceUser.js.map +1 -1
- package/sharedDatabase.d.ts +24 -0
- package/sharedDatabase.d.ts.map +1 -1
- package/sharedDatabase.js +4 -0
- package/sharedDatabase.js.map +1 -1
- package/stageExternalS3.d.ts +1 -0
- package/stageExternalS3.d.ts.map +1 -1
- package/stageExternalS3.js +1 -0
- package/stageExternalS3.js.map +1 -1
- package/tag.d.ts +3 -3
- package/tagAssociation.d.ts +3 -3
- package/types/input.d.ts +1123 -49
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +1367 -120
- package/types/output.d.ts.map +1 -1
- package/userAuthenticationPolicyAttachment.d.ts +13 -7
- package/userAuthenticationPolicyAttachment.d.ts.map +1 -1
- package/userAuthenticationPolicyAttachment.js +7 -1
- package/userAuthenticationPolicyAttachment.js.map +1 -1
- package/warehouseAdaptive.d.ts +13 -0
- package/warehouseAdaptive.d.ts.map +1 -1
- package/warehouseAdaptive.js +3 -0
- package/warehouseAdaptive.js.map +1 -1
- package/warehouseInteractive.d.ts +295 -0
- package/warehouseInteractive.d.ts.map +1 -0
- package/warehouseInteractive.js +162 -0
- package/warehouseInteractive.js.map +1 -0
|
@@ -0,0 +1,215 @@
|
|
|
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 AVRO 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.FileFormatAvro("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.FileFormatAvro("complete", {
|
|
30
|
+
* database: "database_name",
|
|
31
|
+
* schema: "schema_name",
|
|
32
|
+
* name: "file_format_name",
|
|
33
|
+
* compression: "GZIP",
|
|
34
|
+
* trimSpace: "true",
|
|
35
|
+
* replaceInvalidCharacters: "false",
|
|
36
|
+
* nullIfs: [
|
|
37
|
+
* "NULL",
|
|
38
|
+
* "",
|
|
39
|
+
* ],
|
|
40
|
+
* comment: "My AVRO file format",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* > **Note** If a field has a default value, it is shown next to the type in the schema.
|
|
45
|
+
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* ```sh
|
|
49
|
+
* $ pulumi import snowflake:index/fileFormatAvro:FileFormatAvro example '"<database_name>"."<schema_name>"."<file_format_name>"'
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare class FileFormatAvro extends pulumi.CustomResource {
|
|
53
|
+
/**
|
|
54
|
+
* Get an existing FileFormatAvro resource's state with the given name, ID, and optional extra
|
|
55
|
+
* properties used to qualify the lookup.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resulting resource.
|
|
58
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
59
|
+
* @param state Any extra arguments used during the lookup.
|
|
60
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
61
|
+
*/
|
|
62
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileFormatAvroState, opts?: pulumi.CustomResourceOptions): FileFormatAvro;
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of FileFormatAvro. This is designed to work even
|
|
65
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
+
*/
|
|
67
|
+
static isInstance(obj: any): obj is FileFormatAvro;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies a comment for the file format.
|
|
70
|
+
*/
|
|
71
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
|
|
74
|
+
*/
|
|
75
|
+
readonly compression: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
78
|
+
*/
|
|
79
|
+
readonly database: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
|
|
82
|
+
*/
|
|
83
|
+
readonly describeOutputs: pulumi.Output<outputs.FileFormatAvroDescribeOutput[]>;
|
|
84
|
+
/**
|
|
85
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
86
|
+
*/
|
|
87
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* 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: `|`, `.`, `"`.
|
|
90
|
+
*/
|
|
91
|
+
readonly name: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* String used to convert to and from SQL NULL.
|
|
94
|
+
*/
|
|
95
|
+
readonly nullIfs: pulumi.Output<string[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* (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.
|
|
98
|
+
*/
|
|
99
|
+
readonly replaceInvalidCharacters: pulumi.Output<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
102
|
+
*/
|
|
103
|
+
readonly schema: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Outputs the result of `SHOW FILE FORMATS` for this file format.
|
|
106
|
+
*/
|
|
107
|
+
readonly showOutputs: pulumi.Output<outputs.FileFormatAvroShowOutput[]>;
|
|
108
|
+
/**
|
|
109
|
+
* (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.
|
|
110
|
+
*/
|
|
111
|
+
readonly trimSpace: pulumi.Output<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
*/
|
|
115
|
+
readonly type: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Create a FileFormatAvro resource with the given unique name, arguments, and options.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resource.
|
|
120
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
121
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
122
|
+
*/
|
|
123
|
+
constructor(name: string, args: FileFormatAvroArgs, opts?: pulumi.CustomResourceOptions);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Input properties used for looking up and filtering FileFormatAvro resources.
|
|
127
|
+
*/
|
|
128
|
+
export interface FileFormatAvroState {
|
|
129
|
+
/**
|
|
130
|
+
* Specifies a comment for the file format.
|
|
131
|
+
*/
|
|
132
|
+
comment?: pulumi.Input<string | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
|
|
135
|
+
*/
|
|
136
|
+
compression?: pulumi.Input<string | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
139
|
+
*/
|
|
140
|
+
database?: pulumi.Input<string | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Outputs the result of `DESCRIBE FILE FORMAT` for this file format.
|
|
143
|
+
*/
|
|
144
|
+
describeOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatAvroDescribeOutput>[] | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
147
|
+
*/
|
|
148
|
+
fullyQualifiedName?: pulumi.Input<string | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* 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: `|`, `.`, `"`.
|
|
151
|
+
*/
|
|
152
|
+
name?: pulumi.Input<string | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* String used to convert to and from SQL NULL.
|
|
155
|
+
*/
|
|
156
|
+
nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* (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.
|
|
159
|
+
*/
|
|
160
|
+
replaceInvalidCharacters?: pulumi.Input<string | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
163
|
+
*/
|
|
164
|
+
schema?: pulumi.Input<string | undefined>;
|
|
165
|
+
/**
|
|
166
|
+
* Outputs the result of `SHOW FILE FORMATS` for this file format.
|
|
167
|
+
*/
|
|
168
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.FileFormatAvroShowOutput>[] | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* (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.
|
|
171
|
+
*/
|
|
172
|
+
trimSpace?: pulumi.Input<string | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* 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.
|
|
175
|
+
*/
|
|
176
|
+
type?: pulumi.Input<string | undefined>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The set of arguments for constructing a FileFormatAvro resource.
|
|
180
|
+
*/
|
|
181
|
+
export interface FileFormatAvroArgs {
|
|
182
|
+
/**
|
|
183
|
+
* Specifies a comment for the file format.
|
|
184
|
+
*/
|
|
185
|
+
comment?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Specifies the compression format. Valid values: `AUTO` | `GZIP` | `BROTLI` | `ZSTD` | `DEFLATE` | `RAW_DEFLATE` | `NONE`.
|
|
188
|
+
*/
|
|
189
|
+
compression?: pulumi.Input<string | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* The database in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
192
|
+
*/
|
|
193
|
+
database: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* 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: `|`, `.`, `"`.
|
|
196
|
+
*/
|
|
197
|
+
name?: pulumi.Input<string | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* String used to convert to and from SQL NULL.
|
|
200
|
+
*/
|
|
201
|
+
nullIfs?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* (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.
|
|
204
|
+
*/
|
|
205
|
+
replaceInvalidCharacters?: pulumi.Input<string | undefined>;
|
|
206
|
+
/**
|
|
207
|
+
* The schema in which to create the file format. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
208
|
+
*/
|
|
209
|
+
schema: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* (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.
|
|
212
|
+
*/
|
|
213
|
+
trimSpace?: pulumi.Input<string | undefined>;
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=fileFormatAvro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileFormatAvro.d.ts","sourceRoot":"","sources":["../fileFormatAvro.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,qBAAa,cAAe,SAAQ,MAAM,C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AC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,wBAAwB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACxF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D;;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,148 @@
|
|
|
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.FileFormatAvro = 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 AVRO 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.FileFormatAvro("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.FileFormatAvro("complete", {
|
|
57
|
+
* database: "database_name",
|
|
58
|
+
* schema: "schema_name",
|
|
59
|
+
* name: "file_format_name",
|
|
60
|
+
* compression: "GZIP",
|
|
61
|
+
* trimSpace: "true",
|
|
62
|
+
* replaceInvalidCharacters: "false",
|
|
63
|
+
* nullIfs: [
|
|
64
|
+
* "NULL",
|
|
65
|
+
* "",
|
|
66
|
+
* ],
|
|
67
|
+
* comment: "My AVRO file format",
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* > **Note** If a field has a default value, it is shown next to the type in the schema.
|
|
72
|
+
*
|
|
73
|
+
* ## Import
|
|
74
|
+
*
|
|
75
|
+
* ```sh
|
|
76
|
+
* $ pulumi import snowflake:index/fileFormatAvro:FileFormatAvro example '"<database_name>"."<schema_name>"."<file_format_name>"'
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
class FileFormatAvro extends pulumi.CustomResource {
|
|
80
|
+
/**
|
|
81
|
+
* Get an existing FileFormatAvro resource's state with the given name, ID, and optional extra
|
|
82
|
+
* properties used to qualify the lookup.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resulting resource.
|
|
85
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
86
|
+
* @param state Any extra arguments used during the lookup.
|
|
87
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
88
|
+
*/
|
|
89
|
+
static get(name, id, state, opts) {
|
|
90
|
+
return new FileFormatAvro(name, state, { ...opts, id: id });
|
|
91
|
+
}
|
|
92
|
+
/** @internal */
|
|
93
|
+
static __pulumiType = 'snowflake:index/fileFormatAvro:FileFormatAvro';
|
|
94
|
+
/**
|
|
95
|
+
* Returns true if the given object is an instance of FileFormatAvro. This is designed to work even
|
|
96
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
97
|
+
*/
|
|
98
|
+
static isInstance(obj) {
|
|
99
|
+
if (obj === undefined || obj === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
return obj['__pulumiType'] === FileFormatAvro.__pulumiType;
|
|
103
|
+
}
|
|
104
|
+
constructor(name, argsOrState, opts) {
|
|
105
|
+
let resourceInputs = {};
|
|
106
|
+
opts = opts || {};
|
|
107
|
+
if (opts.id) {
|
|
108
|
+
const state = argsOrState;
|
|
109
|
+
resourceInputs["comment"] = state?.comment;
|
|
110
|
+
resourceInputs["compression"] = state?.compression;
|
|
111
|
+
resourceInputs["database"] = state?.database;
|
|
112
|
+
resourceInputs["describeOutputs"] = state?.describeOutputs;
|
|
113
|
+
resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
|
|
114
|
+
resourceInputs["name"] = state?.name;
|
|
115
|
+
resourceInputs["nullIfs"] = state?.nullIfs;
|
|
116
|
+
resourceInputs["replaceInvalidCharacters"] = state?.replaceInvalidCharacters;
|
|
117
|
+
resourceInputs["schema"] = state?.schema;
|
|
118
|
+
resourceInputs["showOutputs"] = state?.showOutputs;
|
|
119
|
+
resourceInputs["trimSpace"] = state?.trimSpace;
|
|
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["name"] = args?.name;
|
|
134
|
+
resourceInputs["nullIfs"] = args?.nullIfs;
|
|
135
|
+
resourceInputs["replaceInvalidCharacters"] = args?.replaceInvalidCharacters;
|
|
136
|
+
resourceInputs["schema"] = args?.schema;
|
|
137
|
+
resourceInputs["trimSpace"] = args?.trimSpace;
|
|
138
|
+
resourceInputs["describeOutputs"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
142
|
+
}
|
|
143
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
144
|
+
super(FileFormatAvro.__pulumiType, name, resourceInputs, opts);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.FileFormatAvro = FileFormatAvro;
|
|
148
|
+
//# sourceMappingURL=fileFormatAvro.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileFormatAvro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