@pulumi/snowflake 0.2.1-alpha.1632763694
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/LICENSE +202 -0
- package/README.md +83 -0
- package/accountGrant.d.ts +97 -0
- package/accountGrant.js +80 -0
- package/accountGrant.js.map +1 -0
- package/apiIntegration.d.ts +181 -0
- package/apiIntegration.js +102 -0
- package/apiIntegration.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +17 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +19 -0
- package/config/vars.js +97 -0
- package/config/vars.js.map +1 -0
- package/database.d.ts +97 -0
- package/database.js +81 -0
- package/database.js.map +1 -0
- package/databaseGrant.d.ts +126 -0
- package/databaseGrant.js +92 -0
- package/databaseGrant.js.map +1 -0
- package/externalFunction.d.ts +260 -0
- package/externalFunction.js +134 -0
- package/externalFunction.js.map +1 -0
- package/externalTable.d.ts +233 -0
- package/externalTable.js +124 -0
- package/externalTable.js.map +1 -0
- package/externalTableGrant.d.ts +165 -0
- package/externalTableGrant.js +104 -0
- package/externalTableGrant.js.map +1 -0
- package/fileFormat.d.ts +490 -0
- package/fileFormat.js +152 -0
- package/fileFormat.js.map +1 -0
- package/fileFormatGrant.d.ts +149 -0
- package/fileFormatGrant.js +98 -0
- package/fileFormatGrant.js.map +1 -0
- package/function.d.ts +157 -0
- package/function.js +81 -0
- package/function.js.map +1 -0
- package/functionGrant.d.ts +201 -0
- package/functionGrant.js +119 -0
- package/functionGrant.js.map +1 -0
- package/getCurrentAccount.d.ts +38 -0
- package/getCurrentAccount.js +33 -0
- package/getCurrentAccount.js.map +1 -0
- package/getExternalFunctions.d.ts +50 -0
- package/getExternalFunctions.js +34 -0
- package/getExternalFunctions.js.map +1 -0
- package/getExternalTables.d.ts +50 -0
- package/getExternalTables.js +34 -0
- package/getExternalTables.js.map +1 -0
- package/getFileFormats.d.ts +50 -0
- package/getFileFormats.js +34 -0
- package/getFileFormats.js.map +1 -0
- package/getFunctions.d.ts +50 -0
- package/getFunctions.js +34 -0
- package/getFunctions.js.map +1 -0
- package/getMaskingPolicies.d.ts +50 -0
- package/getMaskingPolicies.js +34 -0
- package/getMaskingPolicies.js.map +1 -0
- package/getMaterializedViews.d.ts +50 -0
- package/getMaterializedViews.js +34 -0
- package/getMaterializedViews.js.map +1 -0
- package/getPipes.d.ts +50 -0
- package/getPipes.js +34 -0
- package/getPipes.js.map +1 -0
- package/getProcedures.d.ts +50 -0
- package/getProcedures.js +34 -0
- package/getProcedures.js.map +1 -0
- package/getResourceMonitors.d.ts +26 -0
- package/getResourceMonitors.js +28 -0
- package/getResourceMonitors.js.map +1 -0
- package/getRowAccessPolicies.d.ts +50 -0
- package/getRowAccessPolicies.js +34 -0
- package/getRowAccessPolicies.js.map +1 -0
- package/getSchemas.d.ts +41 -0
- package/getSchemas.js +32 -0
- package/getSchemas.js.map +1 -0
- package/getSequences.d.ts +50 -0
- package/getSequences.js +34 -0
- package/getSequences.js.map +1 -0
- package/getStages.d.ts +50 -0
- package/getStages.js +34 -0
- package/getStages.js.map +1 -0
- package/getStorageIntegrations.d.ts +26 -0
- package/getStorageIntegrations.js +28 -0
- package/getStorageIntegrations.js.map +1 -0
- package/getStreams.d.ts +50 -0
- package/getStreams.js +34 -0
- package/getStreams.js.map +1 -0
- package/getSystemGenerateScimAccessToken.d.ts +40 -0
- package/getSystemGenerateScimAccessToken.js +32 -0
- package/getSystemGenerateScimAccessToken.js.map +1 -0
- package/getSystemGetAwsSnsIamPolicy.d.ts +28 -0
- package/getSystemGetAwsSnsIamPolicy.js +20 -0
- package/getSystemGetAwsSnsIamPolicy.js.map +1 -0
- package/getSystemGetPrivateLinkConfig.d.ts +31 -0
- package/getSystemGetPrivateLinkConfig.js +18 -0
- package/getSystemGetPrivateLinkConfig.js.map +1 -0
- package/getSystemGetSnowflakePlatformInfo.d.ts +19 -0
- package/getSystemGetSnowflakePlatformInfo.js +18 -0
- package/getSystemGetSnowflakePlatformInfo.js.map +1 -0
- package/getTables.d.ts +50 -0
- package/getTables.js +34 -0
- package/getTables.js.map +1 -0
- package/getTasks.d.ts +50 -0
- package/getTasks.js +34 -0
- package/getTasks.js.map +1 -0
- package/getViews.d.ts +50 -0
- package/getViews.js +34 -0
- package/getViews.js.map +1 -0
- package/getWarehouses.d.ts +26 -0
- package/getWarehouses.js +28 -0
- package/getWarehouses.js.map +1 -0
- package/index.d.ts +79 -0
- package/index.js +324 -0
- package/index.js.map +1 -0
- package/integrationGrant.d.ts +110 -0
- package/integrationGrant.js +86 -0
- package/integrationGrant.js.map +1 -0
- package/managedAccount.d.ts +160 -0
- package/managedAccount.js +99 -0
- package/managedAccount.js.map +1 -0
- package/maskingPolicy.d.ts +144 -0
- package/maskingPolicy.js +102 -0
- package/maskingPolicy.js.map +1 -0
- package/maskingPolicyGrant.d.ts +108 -0
- package/maskingPolicyGrant.js +70 -0
- package/maskingPolicyGrant.js.map +1 -0
- package/materializedView.d.ts +158 -0
- package/materializedView.js +103 -0
- package/materializedView.js.map +1 -0
- package/materializedViewGrant.d.ts +165 -0
- package/materializedViewGrant.js +101 -0
- package/materializedViewGrant.js.map +1 -0
- package/networkPolicy.d.ts +104 -0
- package/networkPolicy.js +80 -0
- package/networkPolicy.js.map +1 -0
- package/networkPolicyAttachment.d.ts +110 -0
- package/networkPolicyAttachment.js +81 -0
- package/networkPolicyAttachment.js.map +1 -0
- package/notificationIntegration.d.ts +191 -0
- package/notificationIntegration.js +103 -0
- package/notificationIntegration.js.map +1 -0
- package/package.json +27 -0
- package/package.json.bak +26 -0
- package/package.json.dev +26 -0
- package/pipe.d.ts +187 -0
- package/pipe.js +107 -0
- package/pipe.js.map +1 -0
- package/pipeGrant.d.ts +149 -0
- package/pipeGrant.js +98 -0
- package/pipeGrant.js.map +1 -0
- package/procedure.d.ts +201 -0
- package/procedure.js +125 -0
- package/procedure.js.map +1 -0
- package/procedureGrant.d.ts +201 -0
- package/procedureGrant.js +119 -0
- package/procedureGrant.js.map +1 -0
- package/provider.d.ts +64 -0
- package/provider.js +70 -0
- package/provider.js.map +1 -0
- package/resourceMonitor.d.ts +156 -0
- package/resourceMonitor.js +89 -0
- package/resourceMonitor.js.map +1 -0
- package/resourceMonitorGrant.d.ts +105 -0
- package/resourceMonitorGrant.js +81 -0
- package/resourceMonitorGrant.js.map +1 -0
- package/role.d.ts +60 -0
- package/role.js +71 -0
- package/role.js.map +1 -0
- package/roleGrants.d.ts +105 -0
- package/roleGrants.js +91 -0
- package/roleGrants.js.map +1 -0
- package/rowAccessPolicy.d.ts +140 -0
- package/rowAccessPolicy.js +99 -0
- package/rowAccessPolicy.js.map +1 -0
- package/rowAccessPolicyGrant.d.ts +136 -0
- package/rowAccessPolicyGrant.js +98 -0
- package/rowAccessPolicyGrant.js.map +1 -0
- package/schema.d.ts +132 -0
- package/schema.js +88 -0
- package/schema.js.map +1 -0
- package/schemaGrant.d.ts +155 -0
- package/schemaGrant.js +98 -0
- package/schemaGrant.js.map +1 -0
- package/scimIntegration.d.ts +112 -0
- package/scimIntegration.js +85 -0
- package/scimIntegration.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/sequence.d.ts +127 -0
- package/sequence.js +84 -0
- package/sequence.js.map +1 -0
- package/sequenceGrant.d.ts +149 -0
- package/sequenceGrant.js +98 -0
- package/sequenceGrant.js.map +1 -0
- package/share.d.ts +90 -0
- package/share.js +73 -0
- package/share.js.map +1 -0
- package/stage.d.ts +192 -0
- package/stage.js +109 -0
- package/stage.js.map +1 -0
- package/stageGrant.d.ts +165 -0
- package/stageGrant.js +104 -0
- package/stageGrant.js.map +1 -0
- package/storageIntegration.d.ts +153 -0
- package/storageIntegration.js +109 -0
- package/storageIntegration.js.map +1 -0
- package/stream.d.ts +166 -0
- package/stream.js +99 -0
- package/stream.js.map +1 -0
- package/streamGrant.d.ts +149 -0
- package/streamGrant.js +98 -0
- package/streamGrant.js.map +1 -0
- package/table.d.ts +214 -0
- package/table.js +139 -0
- package/table.js.map +1 -0
- package/tableGrant.d.ts +159 -0
- package/tableGrant.js +95 -0
- package/tableGrant.js.map +1 -0
- package/task.d.ts +218 -0
- package/task.js +117 -0
- package/task.js.map +1 -0
- package/taskGrant.d.ts +149 -0
- package/taskGrant.js +98 -0
- package/taskGrant.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +113 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +331 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/user.d.ts +236 -0
- package/user.js +111 -0
- package/user.js.map +1 -0
- package/userPublicKeys.d.ts +72 -0
- package/userPublicKeys.js +55 -0
- package/userPublicKeys.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +52 -0
- package/utilities.js.map +1 -0
- package/view.d.ts +145 -0
- package/view.js +97 -0
- package/view.js.map +1 -0
- package/viewGrant.d.ts +165 -0
- package/viewGrant.js +101 -0
- package/viewGrant.js.map +1 -0
- package/warehouse.d.ts +214 -0
- package/warehouse.js +96 -0
- package/warehouse.js.map +1 -0
- package/warehouseGrant.d.ts +107 -0
- package/warehouseGrant.js +83 -0
- package/warehouseGrant.js.map +1 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
9
|
+
*
|
|
10
|
+
* const testExtFunc = new snowflake.ExternalFunction("test_ext_func", {
|
|
11
|
+
* apiIntegration: "api_integration_name",
|
|
12
|
+
* args: [
|
|
13
|
+
* {
|
|
14
|
+
* name: "arg1",
|
|
15
|
+
* type: "varchar",
|
|
16
|
+
* },
|
|
17
|
+
* {
|
|
18
|
+
* name: "arg2",
|
|
19
|
+
* type: "varchar",
|
|
20
|
+
* },
|
|
21
|
+
* ],
|
|
22
|
+
* database: "my_test_db",
|
|
23
|
+
* returnBehavior: "IMMUTABLE",
|
|
24
|
+
* returnType: "varchar",
|
|
25
|
+
* schema: "my_test_schema",
|
|
26
|
+
* urlOfProxyAndResource: "https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* # format is database name | schema name | external function name | <list of function arg types, separated with '-'>
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import snowflake:index/externalFunction:ExternalFunction example 'dbName|schemaName|externalFunctionName|varchar-varchar-varchar'
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class ExternalFunction extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing ExternalFunction resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExternalFunctionState, opts?: pulumi.CustomResourceOptions): ExternalFunction;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of ExternalFunction. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is ExternalFunction;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the API integration object that should be used to authenticate the call to the proxy service.
|
|
56
|
+
*/
|
|
57
|
+
readonly apiIntegration: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
|
|
60
|
+
*/
|
|
61
|
+
readonly args: pulumi.Output<outputs.ExternalFunctionArg[] | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* A description of the external function.
|
|
64
|
+
*/
|
|
65
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
|
|
68
|
+
*/
|
|
69
|
+
readonly compression: pulumi.Output<string | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Binds Snowflake context function results to HTTP headers.
|
|
72
|
+
*/
|
|
73
|
+
readonly contextHeaders: pulumi.Output<string[] | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Date and time when the external function was created.
|
|
76
|
+
*/
|
|
77
|
+
readonly createdOn: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The database in which to create the external function.
|
|
80
|
+
*/
|
|
81
|
+
readonly database: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
84
|
+
*/
|
|
85
|
+
readonly headers: pulumi.Output<outputs.ExternalFunctionHeader[] | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
88
|
+
*/
|
|
89
|
+
readonly maxBatchRows: pulumi.Output<number | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
92
|
+
*/
|
|
93
|
+
readonly name: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies the behavior of the external function when called with null inputs.
|
|
96
|
+
*/
|
|
97
|
+
readonly nullInputBehavior: pulumi.Output<string | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies the behavior of the function when returning results
|
|
100
|
+
*/
|
|
101
|
+
readonly returnBehavior: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates whether the function can return NULL values or must return only NON-NULL values.
|
|
104
|
+
*/
|
|
105
|
+
readonly returnNullAllowed: pulumi.Output<boolean | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies the data type returned by the external function.
|
|
108
|
+
*/
|
|
109
|
+
readonly returnType: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The schema in which to create the external function.
|
|
112
|
+
*/
|
|
113
|
+
readonly schema: pulumi.Output<string>;
|
|
114
|
+
/**
|
|
115
|
+
* This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
|
|
116
|
+
*/
|
|
117
|
+
readonly urlOfProxyAndResource: pulumi.Output<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a ExternalFunction resource with the given unique name, arguments, and options.
|
|
120
|
+
*
|
|
121
|
+
* @param name The _unique_ name of the resource.
|
|
122
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
123
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
124
|
+
*/
|
|
125
|
+
constructor(name: string, args: ExternalFunctionArgs, opts?: pulumi.CustomResourceOptions);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Input properties used for looking up and filtering ExternalFunction resources.
|
|
129
|
+
*/
|
|
130
|
+
export interface ExternalFunctionState {
|
|
131
|
+
/**
|
|
132
|
+
* The name of the API integration object that should be used to authenticate the call to the proxy service.
|
|
133
|
+
*/
|
|
134
|
+
apiIntegration?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
|
|
137
|
+
*/
|
|
138
|
+
args?: pulumi.Input<pulumi.Input<inputs.ExternalFunctionArg>[]>;
|
|
139
|
+
/**
|
|
140
|
+
* A description of the external function.
|
|
141
|
+
*/
|
|
142
|
+
comment?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
|
|
145
|
+
*/
|
|
146
|
+
compression?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Binds Snowflake context function results to HTTP headers.
|
|
149
|
+
*/
|
|
150
|
+
contextHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
|
+
/**
|
|
152
|
+
* Date and time when the external function was created.
|
|
153
|
+
*/
|
|
154
|
+
createdOn?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The database in which to create the external function.
|
|
157
|
+
*/
|
|
158
|
+
database?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
161
|
+
*/
|
|
162
|
+
headers?: pulumi.Input<pulumi.Input<inputs.ExternalFunctionHeader>[]>;
|
|
163
|
+
/**
|
|
164
|
+
* This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
165
|
+
*/
|
|
166
|
+
maxBatchRows?: pulumi.Input<number>;
|
|
167
|
+
/**
|
|
168
|
+
* Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
169
|
+
*/
|
|
170
|
+
name?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies the behavior of the external function when called with null inputs.
|
|
173
|
+
*/
|
|
174
|
+
nullInputBehavior?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Specifies the behavior of the function when returning results
|
|
177
|
+
*/
|
|
178
|
+
returnBehavior?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Indicates whether the function can return NULL values or must return only NON-NULL values.
|
|
181
|
+
*/
|
|
182
|
+
returnNullAllowed?: pulumi.Input<boolean>;
|
|
183
|
+
/**
|
|
184
|
+
* Specifies the data type returned by the external function.
|
|
185
|
+
*/
|
|
186
|
+
returnType?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* The schema in which to create the external function.
|
|
189
|
+
*/
|
|
190
|
+
schema?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
|
|
193
|
+
*/
|
|
194
|
+
urlOfProxyAndResource?: pulumi.Input<string>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The set of arguments for constructing a ExternalFunction resource.
|
|
198
|
+
*/
|
|
199
|
+
export interface ExternalFunctionArgs {
|
|
200
|
+
/**
|
|
201
|
+
* The name of the API integration object that should be used to authenticate the call to the proxy service.
|
|
202
|
+
*/
|
|
203
|
+
apiIntegration: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
|
|
206
|
+
*/
|
|
207
|
+
args?: pulumi.Input<pulumi.Input<inputs.ExternalFunctionArg>[]>;
|
|
208
|
+
/**
|
|
209
|
+
* A description of the external function.
|
|
210
|
+
*/
|
|
211
|
+
comment?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
|
|
214
|
+
*/
|
|
215
|
+
compression?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Binds Snowflake context function results to HTTP headers.
|
|
218
|
+
*/
|
|
219
|
+
contextHeaders?: pulumi.Input<pulumi.Input<string>[]>;
|
|
220
|
+
/**
|
|
221
|
+
* The database in which to create the external function.
|
|
222
|
+
*/
|
|
223
|
+
database: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
226
|
+
*/
|
|
227
|
+
headers?: pulumi.Input<pulumi.Input<inputs.ExternalFunctionHeader>[]>;
|
|
228
|
+
/**
|
|
229
|
+
* This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
230
|
+
*/
|
|
231
|
+
maxBatchRows?: pulumi.Input<number>;
|
|
232
|
+
/**
|
|
233
|
+
* Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
234
|
+
*/
|
|
235
|
+
name?: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Specifies the behavior of the external function when called with null inputs.
|
|
238
|
+
*/
|
|
239
|
+
nullInputBehavior?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Specifies the behavior of the function when returning results
|
|
242
|
+
*/
|
|
243
|
+
returnBehavior: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Indicates whether the function can return NULL values or must return only NON-NULL values.
|
|
246
|
+
*/
|
|
247
|
+
returnNullAllowed?: pulumi.Input<boolean>;
|
|
248
|
+
/**
|
|
249
|
+
* Specifies the data type returned by the external function.
|
|
250
|
+
*/
|
|
251
|
+
returnType: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* The schema in which to create the external function.
|
|
254
|
+
*/
|
|
255
|
+
schema: pulumi.Input<string>;
|
|
256
|
+
/**
|
|
257
|
+
* This is the invocation URL of the proxy service and resource through which Snowflake calls the remote service.
|
|
258
|
+
*/
|
|
259
|
+
urlOfProxyAndResource: pulumi.Input<string>;
|
|
260
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ExternalFunction = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const testExtFunc = new snowflake.ExternalFunction("test_ext_func", {
|
|
16
|
+
* apiIntegration: "api_integration_name",
|
|
17
|
+
* args: [
|
|
18
|
+
* {
|
|
19
|
+
* name: "arg1",
|
|
20
|
+
* type: "varchar",
|
|
21
|
+
* },
|
|
22
|
+
* {
|
|
23
|
+
* name: "arg2",
|
|
24
|
+
* type: "varchar",
|
|
25
|
+
* },
|
|
26
|
+
* ],
|
|
27
|
+
* database: "my_test_db",
|
|
28
|
+
* returnBehavior: "IMMUTABLE",
|
|
29
|
+
* returnType: "varchar",
|
|
30
|
+
* schema: "my_test_schema",
|
|
31
|
+
* urlOfProxyAndResource: "https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func",
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* # format is database name | schema name | external function name | <list of function arg types, separated with '-'>
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import snowflake:index/externalFunction:ExternalFunction example 'dbName|schemaName|externalFunctionName|varchar-varchar-varchar'
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class ExternalFunction extends pulumi.CustomResource {
|
|
44
|
+
constructor(name, argsOrState, opts) {
|
|
45
|
+
let inputs = {};
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
if (opts.id) {
|
|
48
|
+
const state = argsOrState;
|
|
49
|
+
inputs["apiIntegration"] = state ? state.apiIntegration : undefined;
|
|
50
|
+
inputs["args"] = state ? state.args : undefined;
|
|
51
|
+
inputs["comment"] = state ? state.comment : undefined;
|
|
52
|
+
inputs["compression"] = state ? state.compression : undefined;
|
|
53
|
+
inputs["contextHeaders"] = state ? state.contextHeaders : undefined;
|
|
54
|
+
inputs["createdOn"] = state ? state.createdOn : undefined;
|
|
55
|
+
inputs["database"] = state ? state.database : undefined;
|
|
56
|
+
inputs["headers"] = state ? state.headers : undefined;
|
|
57
|
+
inputs["maxBatchRows"] = state ? state.maxBatchRows : undefined;
|
|
58
|
+
inputs["name"] = state ? state.name : undefined;
|
|
59
|
+
inputs["nullInputBehavior"] = state ? state.nullInputBehavior : undefined;
|
|
60
|
+
inputs["returnBehavior"] = state ? state.returnBehavior : undefined;
|
|
61
|
+
inputs["returnNullAllowed"] = state ? state.returnNullAllowed : undefined;
|
|
62
|
+
inputs["returnType"] = state ? state.returnType : undefined;
|
|
63
|
+
inputs["schema"] = state ? state.schema : undefined;
|
|
64
|
+
inputs["urlOfProxyAndResource"] = state ? state.urlOfProxyAndResource : undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
if ((!args || args.apiIntegration === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'apiIntegration'");
|
|
70
|
+
}
|
|
71
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'database'");
|
|
73
|
+
}
|
|
74
|
+
if ((!args || args.returnBehavior === undefined) && !opts.urn) {
|
|
75
|
+
throw new Error("Missing required property 'returnBehavior'");
|
|
76
|
+
}
|
|
77
|
+
if ((!args || args.returnType === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'returnType'");
|
|
79
|
+
}
|
|
80
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'schema'");
|
|
82
|
+
}
|
|
83
|
+
if ((!args || args.urlOfProxyAndResource === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'urlOfProxyAndResource'");
|
|
85
|
+
}
|
|
86
|
+
inputs["apiIntegration"] = args ? args.apiIntegration : undefined;
|
|
87
|
+
inputs["args"] = args ? args.args : undefined;
|
|
88
|
+
inputs["comment"] = args ? args.comment : undefined;
|
|
89
|
+
inputs["compression"] = args ? args.compression : undefined;
|
|
90
|
+
inputs["contextHeaders"] = args ? args.contextHeaders : undefined;
|
|
91
|
+
inputs["database"] = args ? args.database : undefined;
|
|
92
|
+
inputs["headers"] = args ? args.headers : undefined;
|
|
93
|
+
inputs["maxBatchRows"] = args ? args.maxBatchRows : undefined;
|
|
94
|
+
inputs["name"] = args ? args.name : undefined;
|
|
95
|
+
inputs["nullInputBehavior"] = args ? args.nullInputBehavior : undefined;
|
|
96
|
+
inputs["returnBehavior"] = args ? args.returnBehavior : undefined;
|
|
97
|
+
inputs["returnNullAllowed"] = args ? args.returnNullAllowed : undefined;
|
|
98
|
+
inputs["returnType"] = args ? args.returnType : undefined;
|
|
99
|
+
inputs["schema"] = args ? args.schema : undefined;
|
|
100
|
+
inputs["urlOfProxyAndResource"] = args ? args.urlOfProxyAndResource : undefined;
|
|
101
|
+
inputs["createdOn"] = undefined /*out*/;
|
|
102
|
+
}
|
|
103
|
+
if (!opts.version) {
|
|
104
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
105
|
+
}
|
|
106
|
+
super(ExternalFunction.__pulumiType, name, inputs, opts);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get an existing ExternalFunction resource's state with the given name, ID, and optional extra
|
|
110
|
+
* properties used to qualify the lookup.
|
|
111
|
+
*
|
|
112
|
+
* @param name The _unique_ name of the resulting resource.
|
|
113
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
114
|
+
* @param state Any extra arguments used during the lookup.
|
|
115
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
116
|
+
*/
|
|
117
|
+
static get(name, id, state, opts) {
|
|
118
|
+
return new ExternalFunction(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Returns true if the given object is an instance of ExternalFunction. This is designed to work even
|
|
122
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
123
|
+
*/
|
|
124
|
+
static isInstance(obj) {
|
|
125
|
+
if (obj === undefined || obj === null) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
return obj['__pulumiType'] === ExternalFunction.__pulumiType;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.ExternalFunction = ExternalFunction;
|
|
132
|
+
/** @internal */
|
|
133
|
+
ExternalFunction.__pulumiType = 'snowflake:index/externalFunction:ExternalFunction';
|
|
134
|
+
//# sourceMappingURL=externalFunction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"externalFunction.js","sourceRoot":"","sources":["../externalFunction.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAqGvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,gBAAgB,CAA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|
+
/**
|
|
4
|
+
* ## Example Usage
|
|
5
|
+
*
|
|
6
|
+
* ```typescript
|
|
7
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
9
|
+
*
|
|
10
|
+
* const externalTable = new snowflake.ExternalTable("external_table", {
|
|
11
|
+
* columns: [
|
|
12
|
+
* {
|
|
13
|
+
* name: "id",
|
|
14
|
+
* type: "int",
|
|
15
|
+
* },
|
|
16
|
+
* {
|
|
17
|
+
* name: "data",
|
|
18
|
+
* type: "text",
|
|
19
|
+
* },
|
|
20
|
+
* ],
|
|
21
|
+
* comment: "External table",
|
|
22
|
+
* database: "db",
|
|
23
|
+
* schema: "schema",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* # format is database name | schema name | external table name
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/externalTable:ExternalTable example 'dbName|schemaName|externalTableName'
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class ExternalTable extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing ExternalTable resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExternalTableState, opts?: pulumi.CustomResourceOptions): ExternalTable;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ExternalTable. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj: any): obj is ExternalTable;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
53
|
+
*/
|
|
54
|
+
readonly autoRefresh: pulumi.Output<boolean | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the aws sns topic for the external table.
|
|
57
|
+
*/
|
|
58
|
+
readonly awsSnsTopic: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Definitions of a column to create in the external table. Minimum one required.
|
|
61
|
+
*/
|
|
62
|
+
readonly columns: pulumi.Output<outputs.ExternalTableColumn[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies a comment for the external table.
|
|
65
|
+
*/
|
|
66
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
69
|
+
*/
|
|
70
|
+
readonly copyGrants: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The database in which to create the external table.
|
|
73
|
+
*/
|
|
74
|
+
readonly database: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the file format for the external table.
|
|
77
|
+
*/
|
|
78
|
+
readonly fileFormat: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies a location for the external table.
|
|
81
|
+
*/
|
|
82
|
+
readonly location: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
85
|
+
*/
|
|
86
|
+
readonly name: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Name of the role that owns the external table.
|
|
89
|
+
*/
|
|
90
|
+
readonly owner: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Specifies any partition columns to evaluate for the external table.
|
|
93
|
+
*/
|
|
94
|
+
readonly partitionBies: pulumi.Output<string[] | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the file names and/or paths on the external stage to match.
|
|
97
|
+
*/
|
|
98
|
+
readonly pattern: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies weather to refresh when an external table is created.
|
|
101
|
+
*/
|
|
102
|
+
readonly refreshOnCreate: pulumi.Output<boolean | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* The schema in which to create the external table.
|
|
105
|
+
*/
|
|
106
|
+
readonly schema: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a ExternalTable resource with the given unique name, arguments, and options.
|
|
109
|
+
*
|
|
110
|
+
* @param name The _unique_ name of the resource.
|
|
111
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
112
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
113
|
+
*/
|
|
114
|
+
constructor(name: string, args: ExternalTableArgs, opts?: pulumi.CustomResourceOptions);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Input properties used for looking up and filtering ExternalTable resources.
|
|
118
|
+
*/
|
|
119
|
+
export interface ExternalTableState {
|
|
120
|
+
/**
|
|
121
|
+
* Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
122
|
+
*/
|
|
123
|
+
autoRefresh?: pulumi.Input<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* Specifies the aws sns topic for the external table.
|
|
126
|
+
*/
|
|
127
|
+
awsSnsTopic?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Definitions of a column to create in the external table. Minimum one required.
|
|
130
|
+
*/
|
|
131
|
+
columns?: pulumi.Input<pulumi.Input<inputs.ExternalTableColumn>[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Specifies a comment for the external table.
|
|
134
|
+
*/
|
|
135
|
+
comment?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
138
|
+
*/
|
|
139
|
+
copyGrants?: pulumi.Input<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* The database in which to create the external table.
|
|
142
|
+
*/
|
|
143
|
+
database?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies the file format for the external table.
|
|
146
|
+
*/
|
|
147
|
+
fileFormat?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Specifies a location for the external table.
|
|
150
|
+
*/
|
|
151
|
+
location?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
154
|
+
*/
|
|
155
|
+
name?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Name of the role that owns the external table.
|
|
158
|
+
*/
|
|
159
|
+
owner?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Specifies any partition columns to evaluate for the external table.
|
|
162
|
+
*/
|
|
163
|
+
partitionBies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
164
|
+
/**
|
|
165
|
+
* Specifies the file names and/or paths on the external stage to match.
|
|
166
|
+
*/
|
|
167
|
+
pattern?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Specifies weather to refresh when an external table is created.
|
|
170
|
+
*/
|
|
171
|
+
refreshOnCreate?: pulumi.Input<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* The schema in which to create the external table.
|
|
174
|
+
*/
|
|
175
|
+
schema?: pulumi.Input<string>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The set of arguments for constructing a ExternalTable resource.
|
|
179
|
+
*/
|
|
180
|
+
export interface ExternalTableArgs {
|
|
181
|
+
/**
|
|
182
|
+
* Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
183
|
+
*/
|
|
184
|
+
autoRefresh?: pulumi.Input<boolean>;
|
|
185
|
+
/**
|
|
186
|
+
* Specifies the aws sns topic for the external table.
|
|
187
|
+
*/
|
|
188
|
+
awsSnsTopic?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Definitions of a column to create in the external table. Minimum one required.
|
|
191
|
+
*/
|
|
192
|
+
columns: pulumi.Input<pulumi.Input<inputs.ExternalTableColumn>[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Specifies a comment for the external table.
|
|
195
|
+
*/
|
|
196
|
+
comment?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
199
|
+
*/
|
|
200
|
+
copyGrants?: pulumi.Input<boolean>;
|
|
201
|
+
/**
|
|
202
|
+
* The database in which to create the external table.
|
|
203
|
+
*/
|
|
204
|
+
database: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Specifies the file format for the external table.
|
|
207
|
+
*/
|
|
208
|
+
fileFormat: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* Specifies a location for the external table.
|
|
211
|
+
*/
|
|
212
|
+
location: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
215
|
+
*/
|
|
216
|
+
name?: pulumi.Input<string>;
|
|
217
|
+
/**
|
|
218
|
+
* Specifies any partition columns to evaluate for the external table.
|
|
219
|
+
*/
|
|
220
|
+
partitionBies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
221
|
+
/**
|
|
222
|
+
* Specifies the file names and/or paths on the external stage to match.
|
|
223
|
+
*/
|
|
224
|
+
pattern?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Specifies weather to refresh when an external table is created.
|
|
227
|
+
*/
|
|
228
|
+
refreshOnCreate?: pulumi.Input<boolean>;
|
|
229
|
+
/**
|
|
230
|
+
* The schema in which to create the external table.
|
|
231
|
+
*/
|
|
232
|
+
schema: pulumi.Input<string>;
|
|
233
|
+
}
|