cribl-control-plane 0.5.0-beta.4 → 0.5.0-beta.5
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/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/collectorazureblob.d.ts +643 -19
- package/dist/commonjs/models/collectorazureblob.d.ts.map +1 -1
- package/dist/commonjs/models/collectorazureblob.js +437 -20
- package/dist/commonjs/models/collectorazureblob.js.map +1 -1
- package/dist/commonjs/models/collectorconf.d.ts +26 -2
- package/dist/commonjs/models/collectorconf.d.ts.map +1 -1
- package/dist/commonjs/models/collectorconf.js +12 -12
- package/dist/commonjs/models/collectorconf.js.map +1 -1
- package/dist/commonjs/models/collectorgooglecloudstorage.d.ts +316 -19
- package/dist/commonjs/models/collectorgooglecloudstorage.d.ts.map +1 -1
- package/dist/commonjs/models/collectorgooglecloudstorage.js +222 -20
- package/dist/commonjs/models/collectorgooglecloudstorage.js.map +1 -1
- package/dist/commonjs/models/collectorhealthcheck.d.ts +3635 -72
- package/dist/commonjs/models/collectorhealthcheck.d.ts.map +1 -1
- package/dist/commonjs/models/collectorhealthcheck.js +2828 -126
- package/dist/commonjs/models/collectorhealthcheck.js.map +1 -1
- package/dist/commonjs/models/collectorrest.d.ts +6369 -147
- package/dist/commonjs/models/collectorrest.d.ts.map +1 -1
- package/dist/commonjs/models/collectorrest.js +5232 -96
- package/dist/commonjs/models/collectorrest.js.map +1 -1
- package/dist/commonjs/models/collectors3.d.ts +1003 -34
- package/dist/commonjs/models/collectors3.d.ts.map +1 -1
- package/dist/commonjs/models/collectors3.js +653 -32
- package/dist/commonjs/models/collectors3.js.map +1 -1
- package/dist/commonjs/models/collectorsplunk.d.ts +1803 -82
- package/dist/commonjs/models/collectorsplunk.d.ts.map +1 -1
- package/dist/commonjs/models/collectorsplunk.js +1320 -50
- package/dist/commonjs/models/collectorsplunk.js.map +1 -1
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts +46 -0
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/{functionconfschemahandlebar.js → functionconfschemahandlebars.js} +12 -11
- package/dist/commonjs/models/functionconfschemahandlebars.js.map +1 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts +5 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemanotificationpolicies.js +2 -0
- package/dist/commonjs/models/functionconfschemanotificationpolicies.js.map +1 -1
- package/dist/commonjs/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
- package/dist/commonjs/models/functionhandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/{functionhandlebar.js → functionhandlebars.js} +9 -9
- package/dist/commonjs/models/functionhandlebars.js.map +1 -0
- package/dist/commonjs/models/functionresponse.d.ts +2 -2
- package/dist/commonjs/models/functionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/functionresponse.js +2 -2
- package/dist/commonjs/models/functionresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconf.d.ts +2 -2
- package/dist/commonjs/models/pipelinefunctionconf.d.ts.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconf.js +2 -2
- package/dist/commonjs/models/pipelinefunctionconf.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconfinput.d.ts +3 -3
- package/dist/commonjs/models/pipelinefunctionconfinput.d.ts.map +1 -1
- package/dist/commonjs/models/pipelinefunctionconfinput.js +2 -2
- package/dist/commonjs/models/pipelinefunctionconfinput.js.map +1 -1
- package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts +109 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.d.ts.map +1 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.js +114 -0
- package/dist/commonjs/models/pipelinefunctionhandlebars.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/collectorazureblob.d.ts +643 -19
- package/dist/esm/models/collectorazureblob.d.ts.map +1 -1
- package/dist/esm/models/collectorazureblob.js +412 -17
- package/dist/esm/models/collectorazureblob.js.map +1 -1
- package/dist/esm/models/collectorconf.d.ts +26 -2
- package/dist/esm/models/collectorconf.d.ts.map +1 -1
- package/dist/esm/models/collectorconf.js +12 -12
- package/dist/esm/models/collectorconf.js.map +1 -1
- package/dist/esm/models/collectorgooglecloudstorage.d.ts +316 -19
- package/dist/esm/models/collectorgooglecloudstorage.d.ts.map +1 -1
- package/dist/esm/models/collectorgooglecloudstorage.js +209 -17
- package/dist/esm/models/collectorgooglecloudstorage.js.map +1 -1
- package/dist/esm/models/collectorhealthcheck.d.ts +3635 -72
- package/dist/esm/models/collectorhealthcheck.d.ts.map +1 -1
- package/dist/esm/models/collectorhealthcheck.js +2681 -119
- package/dist/esm/models/collectorhealthcheck.js.map +1 -1
- package/dist/esm/models/collectorrest.d.ts +6369 -147
- package/dist/esm/models/collectorrest.d.ts.map +1 -1
- package/dist/esm/models/collectorrest.js +4941 -83
- package/dist/esm/models/collectorrest.js.map +1 -1
- package/dist/esm/models/collectors3.d.ts +1003 -34
- package/dist/esm/models/collectors3.d.ts.map +1 -1
- package/dist/esm/models/collectors3.js +631 -29
- package/dist/esm/models/collectors3.js.map +1 -1
- package/dist/esm/models/collectorsplunk.d.ts +1803 -82
- package/dist/esm/models/collectorsplunk.d.ts.map +1 -1
- package/dist/esm/models/collectorsplunk.js +1261 -43
- package/dist/esm/models/collectorsplunk.js.map +1 -1
- package/dist/esm/models/functionconfschemahandlebars.d.ts +46 -0
- package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -0
- package/dist/esm/models/functionconfschemahandlebars.js +26 -0
- package/dist/esm/models/functionconfschemahandlebars.js.map +1 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.d.ts +5 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemanotificationpolicies.js +2 -0
- package/dist/esm/models/functionconfschemanotificationpolicies.js.map +1 -1
- package/dist/esm/models/{functionhandlebar.d.ts → functionhandlebars.d.ts} +7 -7
- package/dist/esm/models/functionhandlebars.d.ts.map +1 -0
- package/dist/esm/models/{functionhandlebar.js → functionhandlebars.js} +7 -7
- package/dist/esm/models/functionhandlebars.js.map +1 -0
- package/dist/esm/models/functionresponse.d.ts +2 -2
- package/dist/esm/models/functionresponse.d.ts.map +1 -1
- package/dist/esm/models/functionresponse.js +2 -2
- package/dist/esm/models/functionresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/pipelinefunctionconf.d.ts +2 -2
- package/dist/esm/models/pipelinefunctionconf.d.ts.map +1 -1
- package/dist/esm/models/pipelinefunctionconf.js +2 -2
- package/dist/esm/models/pipelinefunctionconf.js.map +1 -1
- package/dist/esm/models/pipelinefunctionconfinput.d.ts +3 -3
- package/dist/esm/models/pipelinefunctionconfinput.d.ts.map +1 -1
- package/dist/esm/models/pipelinefunctionconfinput.js +2 -2
- package/dist/esm/models/pipelinefunctionconfinput.js.map +1 -1
- package/dist/esm/models/pipelinefunctionhandlebars.d.ts +109 -0
- package/dist/esm/models/pipelinefunctionhandlebars.d.ts.map +1 -0
- package/dist/esm/models/pipelinefunctionhandlebars.js +72 -0
- package/dist/esm/models/pipelinefunctionhandlebars.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/collectorazureblob.ts +1317 -91
- package/src/models/collectorconf.ts +36 -24
- package/src/models/collectorgooglecloudstorage.ts +698 -66
- package/src/models/collectorhealthcheck.ts +7751 -175
- package/src/models/collectorrest.ts +13275 -231
- package/src/models/collectors3.ts +1722 -97
- package/src/models/collectorsplunk.ts +3531 -187
- package/src/models/{functionconfschemahandlebar.ts → functionconfschemahandlebars.ts} +23 -20
- package/src/models/functionconfschemanotificationpolicies.ts +7 -0
- package/src/models/{functionhandlebar.ts → functionhandlebars.ts} +14 -14
- package/src/models/functionresponse.ts +5 -5
- package/src/models/index.ts +3 -3
- package/src/models/pipelinefunctionconf.ts +5 -5
- package/src/models/pipelinefunctionconfinput.ts +7 -7
- package/src/models/{pipelinefunctionhandlebar.ts → pipelinefunctionhandlebars.ts} +67 -62
- package/dist/commonjs/models/functionconfschemahandlebar.d.ts +0 -44
- package/dist/commonjs/models/functionconfschemahandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/functionconfschemahandlebar.js.map +0 -1
- package/dist/commonjs/models/functionhandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/functionhandlebar.js.map +0 -1
- package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts +0 -108
- package/dist/commonjs/models/pipelinefunctionhandlebar.d.ts.map +0 -1
- package/dist/commonjs/models/pipelinefunctionhandlebar.js +0 -112
- package/dist/commonjs/models/pipelinefunctionhandlebar.js.map +0 -1
- package/dist/esm/models/functionconfschemahandlebar.d.ts +0 -44
- package/dist/esm/models/functionconfschemahandlebar.d.ts.map +0 -1
- package/dist/esm/models/functionconfschemahandlebar.js +0 -25
- package/dist/esm/models/functionconfschemahandlebar.js.map +0 -1
- package/dist/esm/models/functionhandlebar.d.ts.map +0 -1
- package/dist/esm/models/functionhandlebar.js.map +0 -1
- package/dist/esm/models/pipelinefunctionhandlebar.d.ts +0 -108
- package/dist/esm/models/pipelinefunctionhandlebar.d.ts.map +0 -1
- package/dist/esm/models/pipelinefunctionhandlebar.js +0 -70
- package/dist/esm/models/pipelinefunctionhandlebar.js.map +0 -1
|
@@ -5,14 +5,49 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
14
|
+
*/
|
|
15
|
+
export const CollectorS3AuthenticationMethod5 = {
|
|
16
|
+
/**
|
|
17
|
+
* Auto
|
|
18
|
+
*/
|
|
19
|
+
Auto: "auto",
|
|
20
|
+
/**
|
|
21
|
+
* Manual
|
|
22
|
+
*/
|
|
23
|
+
Manual: "manual",
|
|
24
|
+
/**
|
|
25
|
+
* Secret Key pair
|
|
26
|
+
*/
|
|
27
|
+
Secret: "secret",
|
|
28
|
+
} as const;
|
|
29
|
+
/**
|
|
30
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
31
|
+
*/
|
|
32
|
+
export type CollectorS3AuthenticationMethod5 = OpenEnum<
|
|
33
|
+
typeof CollectorS3AuthenticationMethod5
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Collector type: s3
|
|
38
|
+
*/
|
|
39
|
+
export const CollectorS3Type5 = {
|
|
40
|
+
S3: "s3",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* Collector type: s3
|
|
44
|
+
*/
|
|
45
|
+
export type CollectorS3Type5 = ClosedEnum<typeof CollectorS3Type5>;
|
|
46
|
+
|
|
12
47
|
/**
|
|
13
48
|
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
14
49
|
*/
|
|
15
|
-
export const
|
|
50
|
+
export const PartitioningScheme5 = {
|
|
16
51
|
/**
|
|
17
52
|
* Defined in Path
|
|
18
53
|
*/
|
|
@@ -25,9 +60,9 @@ export const PartitioningScheme = {
|
|
|
25
60
|
/**
|
|
26
61
|
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
27
62
|
*/
|
|
28
|
-
export type
|
|
63
|
+
export type PartitioningScheme5 = OpenEnum<typeof PartitioningScheme5>;
|
|
29
64
|
|
|
30
|
-
export type
|
|
65
|
+
export type CollectorS3Extractor5 = {
|
|
31
66
|
/**
|
|
32
67
|
* A token from the template path, such as epoch
|
|
33
68
|
*/
|
|
@@ -38,10 +73,127 @@ export type CollectorS3Extractor = {
|
|
|
38
73
|
expression: string;
|
|
39
74
|
};
|
|
40
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Signature version to use for signing S3 requests
|
|
78
|
+
*/
|
|
79
|
+
export const CollectorS3SignatureVersion5 = {
|
|
80
|
+
V2: "v2",
|
|
81
|
+
V4: "v4",
|
|
82
|
+
} as const;
|
|
83
|
+
/**
|
|
84
|
+
* Signature version to use for signing S3 requests
|
|
85
|
+
*/
|
|
86
|
+
export type CollectorS3SignatureVersion5 = OpenEnum<
|
|
87
|
+
typeof CollectorS3SignatureVersion5
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
export type CollectorS3S35 = {
|
|
91
|
+
/**
|
|
92
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
93
|
+
*/
|
|
94
|
+
awsAuthenticationMethod?: CollectorS3AuthenticationMethod5 | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Select or create a stored secret that references AWS access key and secret key.
|
|
97
|
+
*/
|
|
98
|
+
awsSecret?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Collector type: s3
|
|
101
|
+
*/
|
|
102
|
+
type: CollectorS3Type5;
|
|
103
|
+
/**
|
|
104
|
+
* Name of the predefined Destination that will be used to auto-populate Collector settings
|
|
105
|
+
*/
|
|
106
|
+
outputName?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* S3 Bucket from which to collect data
|
|
109
|
+
*/
|
|
110
|
+
bucket: string;
|
|
111
|
+
/**
|
|
112
|
+
* Maximum file size for each Parquet chunk
|
|
113
|
+
*/
|
|
114
|
+
parquetChunkSizeMB?: number | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
|
|
117
|
+
*/
|
|
118
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Region from which to retrieve data
|
|
121
|
+
*/
|
|
122
|
+
region?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
|
|
125
|
+
*/
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
129
|
+
*/
|
|
130
|
+
partitioningScheme?: PartitioningScheme5 | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
|
|
133
|
+
*/
|
|
134
|
+
extractors?: Array<CollectorS3Extractor5> | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
|
|
137
|
+
*/
|
|
138
|
+
endpoint?: string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Signature version to use for signing S3 requests
|
|
141
|
+
*/
|
|
142
|
+
signatureVersion?: CollectorS3SignatureVersion5 | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Use AssumeRole credentials
|
|
145
|
+
*/
|
|
146
|
+
enableAssumeRole?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Amazon Resource Name (ARN) of the role to assume
|
|
149
|
+
*/
|
|
150
|
+
assumeRoleArn?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* External ID to use when assuming role
|
|
153
|
+
*/
|
|
154
|
+
assumeRoleExternalId?: string | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
|
|
157
|
+
*/
|
|
158
|
+
durationSeconds?: number | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
161
|
+
*/
|
|
162
|
+
maxBatchSize?: number | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
|
|
165
|
+
*/
|
|
166
|
+
recurse?: boolean | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Reuse connections between requests to improve performance
|
|
169
|
+
*/
|
|
170
|
+
reuseConnections?: boolean | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
|
|
173
|
+
*/
|
|
174
|
+
rejectUnauthorized?: boolean | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
|
|
177
|
+
*/
|
|
178
|
+
verifyPermissions?: boolean | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* Disable Collector event time filtering when a date range is specified
|
|
181
|
+
*/
|
|
182
|
+
disableTimeFilter?: boolean | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
185
|
+
*/
|
|
186
|
+
awsApiKey?: string | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
189
|
+
*/
|
|
190
|
+
awsSecretKey?: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
|
|
41
193
|
/**
|
|
42
194
|
* AWS authentication method. Choose Auto to use IAM roles.
|
|
43
195
|
*/
|
|
44
|
-
export const
|
|
196
|
+
export const CollectorS3AuthenticationMethod4 = {
|
|
45
197
|
/**
|
|
46
198
|
* Auto
|
|
47
199
|
*/
|
|
@@ -58,29 +210,81 @@ export const CollectorS3AuthenticationMethod = {
|
|
|
58
210
|
/**
|
|
59
211
|
* AWS authentication method. Choose Auto to use IAM roles.
|
|
60
212
|
*/
|
|
61
|
-
export type
|
|
62
|
-
typeof
|
|
213
|
+
export type CollectorS3AuthenticationMethod4 = OpenEnum<
|
|
214
|
+
typeof CollectorS3AuthenticationMethod4
|
|
63
215
|
>;
|
|
64
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Collector type: s3
|
|
219
|
+
*/
|
|
220
|
+
export const CollectorS3Type4 = {
|
|
221
|
+
S3: "s3",
|
|
222
|
+
} as const;
|
|
223
|
+
/**
|
|
224
|
+
* Collector type: s3
|
|
225
|
+
*/
|
|
226
|
+
export type CollectorS3Type4 = ClosedEnum<typeof CollectorS3Type4>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
230
|
+
*/
|
|
231
|
+
export const PartitioningScheme4 = {
|
|
232
|
+
/**
|
|
233
|
+
* Defined in Path
|
|
234
|
+
*/
|
|
235
|
+
None: "none",
|
|
236
|
+
/**
|
|
237
|
+
* DDSS
|
|
238
|
+
*/
|
|
239
|
+
Ddss: "ddss",
|
|
240
|
+
} as const;
|
|
241
|
+
/**
|
|
242
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
243
|
+
*/
|
|
244
|
+
export type PartitioningScheme4 = OpenEnum<typeof PartitioningScheme4>;
|
|
245
|
+
|
|
246
|
+
export type CollectorS3Extractor4 = {
|
|
247
|
+
/**
|
|
248
|
+
* A token from the template path, such as epoch
|
|
249
|
+
*/
|
|
250
|
+
key: string;
|
|
251
|
+
/**
|
|
252
|
+
* JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
|
|
253
|
+
*/
|
|
254
|
+
expression: string;
|
|
255
|
+
};
|
|
256
|
+
|
|
65
257
|
/**
|
|
66
258
|
* Signature version to use for signing S3 requests
|
|
67
259
|
*/
|
|
68
|
-
export const
|
|
260
|
+
export const CollectorS3SignatureVersion4 = {
|
|
69
261
|
V2: "v2",
|
|
70
262
|
V4: "v4",
|
|
71
263
|
} as const;
|
|
72
264
|
/**
|
|
73
265
|
* Signature version to use for signing S3 requests
|
|
74
266
|
*/
|
|
75
|
-
export type
|
|
76
|
-
typeof
|
|
267
|
+
export type CollectorS3SignatureVersion4 = OpenEnum<
|
|
268
|
+
typeof CollectorS3SignatureVersion4
|
|
77
269
|
>;
|
|
78
270
|
|
|
79
|
-
export type
|
|
271
|
+
export type CollectorS3S34 = {
|
|
272
|
+
/**
|
|
273
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
274
|
+
*/
|
|
275
|
+
awsAuthenticationMethod?: CollectorS3AuthenticationMethod4 | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
278
|
+
*/
|
|
279
|
+
awsApiKey?: string | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
282
|
+
*/
|
|
283
|
+
awsSecretKey?: string | undefined;
|
|
80
284
|
/**
|
|
81
285
|
* Collector type: s3
|
|
82
286
|
*/
|
|
83
|
-
type:
|
|
287
|
+
type: CollectorS3Type4;
|
|
84
288
|
/**
|
|
85
289
|
* Name of the predefined Destination that will be used to auto-populate Collector settings
|
|
86
290
|
*/
|
|
@@ -108,15 +312,11 @@ export type CollectorS3 = {
|
|
|
108
312
|
/**
|
|
109
313
|
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
110
314
|
*/
|
|
111
|
-
partitioningScheme?:
|
|
315
|
+
partitioningScheme?: PartitioningScheme4 | undefined;
|
|
112
316
|
/**
|
|
113
317
|
* Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
|
|
114
318
|
*/
|
|
115
|
-
extractors?: Array<
|
|
116
|
-
/**
|
|
117
|
-
* AWS authentication method. Choose Auto to use IAM roles.
|
|
118
|
-
*/
|
|
119
|
-
awsAuthenticationMethod?: CollectorS3AuthenticationMethod | undefined;
|
|
319
|
+
extractors?: Array<CollectorS3Extractor4> | undefined;
|
|
120
320
|
/**
|
|
121
321
|
* Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
|
|
122
322
|
*/
|
|
@@ -124,7 +324,7 @@ export type CollectorS3 = {
|
|
|
124
324
|
/**
|
|
125
325
|
* Signature version to use for signing S3 requests
|
|
126
326
|
*/
|
|
127
|
-
signatureVersion?:
|
|
327
|
+
signatureVersion?: CollectorS3SignatureVersion4 | undefined;
|
|
128
328
|
/**
|
|
129
329
|
* Use AssumeRole credentials
|
|
130
330
|
*/
|
|
@@ -145,7 +345,10 @@ export type CollectorS3 = {
|
|
|
145
345
|
* Maximum number of metadata objects to batch before recording as results
|
|
146
346
|
*/
|
|
147
347
|
maxBatchSize?: number | undefined;
|
|
148
|
-
|
|
348
|
+
/**
|
|
349
|
+
* Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
|
|
350
|
+
*/
|
|
351
|
+
recurse?: boolean | undefined;
|
|
149
352
|
/**
|
|
150
353
|
* Reuse connections between requests to improve performance
|
|
151
354
|
*/
|
|
@@ -162,131 +365,1501 @@ export type CollectorS3 = {
|
|
|
162
365
|
* Disable Collector event time filtering when a date range is specified
|
|
163
366
|
*/
|
|
164
367
|
disableTimeFilter?: boolean | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* Select or create a stored secret that references AWS access key and secret key.
|
|
370
|
+
*/
|
|
371
|
+
awsSecret?: string | undefined;
|
|
165
372
|
};
|
|
166
373
|
|
|
167
|
-
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
374
|
+
/**
|
|
375
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
376
|
+
*/
|
|
377
|
+
export const CollectorS3AuthenticationMethod3 = {
|
|
378
|
+
/**
|
|
379
|
+
* Auto
|
|
380
|
+
*/
|
|
381
|
+
Auto: "auto",
|
|
382
|
+
/**
|
|
383
|
+
* Manual
|
|
384
|
+
*/
|
|
385
|
+
Manual: "manual",
|
|
386
|
+
/**
|
|
387
|
+
* Secret Key pair
|
|
388
|
+
*/
|
|
389
|
+
Secret: "secret",
|
|
390
|
+
} as const;
|
|
391
|
+
/**
|
|
392
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
393
|
+
*/
|
|
394
|
+
export type CollectorS3AuthenticationMethod3 = OpenEnum<
|
|
395
|
+
typeof CollectorS3AuthenticationMethod3
|
|
396
|
+
>;
|
|
179
397
|
|
|
180
|
-
/**
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
398
|
+
/**
|
|
399
|
+
* Collector type: s3
|
|
400
|
+
*/
|
|
401
|
+
export const CollectorS3Type3 = {
|
|
402
|
+
S3: "s3",
|
|
403
|
+
} as const;
|
|
404
|
+
/**
|
|
405
|
+
* Collector type: s3
|
|
406
|
+
*/
|
|
407
|
+
export type CollectorS3Type3 = ClosedEnum<typeof CollectorS3Type3>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
411
|
+
*/
|
|
412
|
+
export const PartitioningScheme3 = {
|
|
413
|
+
/**
|
|
414
|
+
* Defined in Path
|
|
415
|
+
*/
|
|
416
|
+
None: "none",
|
|
417
|
+
/**
|
|
418
|
+
* DDSS
|
|
419
|
+
*/
|
|
420
|
+
Ddss: "ddss",
|
|
421
|
+
} as const;
|
|
422
|
+
/**
|
|
423
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
424
|
+
*/
|
|
425
|
+
export type PartitioningScheme3 = OpenEnum<typeof PartitioningScheme3>;
|
|
426
|
+
|
|
427
|
+
export type CollectorS3Extractor3 = {
|
|
428
|
+
/**
|
|
429
|
+
* A token from the template path, such as epoch
|
|
430
|
+
*/
|
|
191
431
|
key: string;
|
|
432
|
+
/**
|
|
433
|
+
* JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
|
|
434
|
+
*/
|
|
192
435
|
expression: string;
|
|
193
436
|
};
|
|
194
437
|
|
|
195
|
-
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
438
|
+
/**
|
|
439
|
+
* Signature version to use for signing S3 requests
|
|
440
|
+
*/
|
|
441
|
+
export const CollectorS3SignatureVersion3 = {
|
|
442
|
+
V2: "v2",
|
|
443
|
+
V4: "v4",
|
|
444
|
+
} as const;
|
|
445
|
+
/**
|
|
446
|
+
* Signature version to use for signing S3 requests
|
|
447
|
+
*/
|
|
448
|
+
export type CollectorS3SignatureVersion3 = OpenEnum<
|
|
449
|
+
typeof CollectorS3SignatureVersion3
|
|
450
|
+
>;
|
|
204
451
|
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
452
|
+
export type CollectorS3S33 = {
|
|
453
|
+
/**
|
|
454
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
455
|
+
*/
|
|
456
|
+
awsAuthenticationMethod?: CollectorS3AuthenticationMethod3 | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* Collector type: s3
|
|
459
|
+
*/
|
|
460
|
+
type: CollectorS3Type3;
|
|
461
|
+
/**
|
|
462
|
+
* Name of the predefined Destination that will be used to auto-populate Collector settings
|
|
463
|
+
*/
|
|
464
|
+
outputName?: string | undefined;
|
|
465
|
+
/**
|
|
466
|
+
* S3 Bucket from which to collect data
|
|
467
|
+
*/
|
|
468
|
+
bucket: string;
|
|
469
|
+
/**
|
|
470
|
+
* Maximum file size for each Parquet chunk
|
|
471
|
+
*/
|
|
472
|
+
parquetChunkSizeMB?: number | undefined;
|
|
473
|
+
/**
|
|
474
|
+
* Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
|
|
475
|
+
*/
|
|
476
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* Region from which to retrieve data
|
|
479
|
+
*/
|
|
480
|
+
region?: string | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
|
|
483
|
+
*/
|
|
484
|
+
path?: string | undefined;
|
|
485
|
+
/**
|
|
486
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
487
|
+
*/
|
|
488
|
+
partitioningScheme?: PartitioningScheme3 | undefined;
|
|
489
|
+
/**
|
|
490
|
+
* Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
|
|
491
|
+
*/
|
|
492
|
+
extractors?: Array<CollectorS3Extractor3> | undefined;
|
|
493
|
+
/**
|
|
494
|
+
* Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
|
|
495
|
+
*/
|
|
496
|
+
endpoint?: string | undefined;
|
|
497
|
+
/**
|
|
498
|
+
* Signature version to use for signing S3 requests
|
|
499
|
+
*/
|
|
500
|
+
signatureVersion?: CollectorS3SignatureVersion3 | undefined;
|
|
501
|
+
/**
|
|
502
|
+
* Use AssumeRole credentials
|
|
503
|
+
*/
|
|
504
|
+
enableAssumeRole?: boolean | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* Amazon Resource Name (ARN) of the role to assume
|
|
507
|
+
*/
|
|
508
|
+
assumeRoleArn?: string | undefined;
|
|
509
|
+
/**
|
|
510
|
+
* External ID to use when assuming role
|
|
511
|
+
*/
|
|
512
|
+
assumeRoleExternalId?: string | undefined;
|
|
513
|
+
/**
|
|
514
|
+
* Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
|
|
515
|
+
*/
|
|
516
|
+
durationSeconds?: number | undefined;
|
|
517
|
+
/**
|
|
518
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
519
|
+
*/
|
|
520
|
+
maxBatchSize?: number | undefined;
|
|
521
|
+
/**
|
|
522
|
+
* Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
|
|
523
|
+
*/
|
|
524
|
+
recurse?: boolean | undefined;
|
|
525
|
+
/**
|
|
526
|
+
* Reuse connections between requests to improve performance
|
|
527
|
+
*/
|
|
528
|
+
reuseConnections?: boolean | undefined;
|
|
529
|
+
/**
|
|
530
|
+
* Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
|
|
531
|
+
*/
|
|
532
|
+
rejectUnauthorized?: boolean | undefined;
|
|
533
|
+
/**
|
|
534
|
+
* Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
|
|
535
|
+
*/
|
|
536
|
+
verifyPermissions?: boolean | undefined;
|
|
537
|
+
/**
|
|
538
|
+
* Disable Collector event time filtering when a date range is specified
|
|
539
|
+
*/
|
|
540
|
+
disableTimeFilter?: boolean | undefined;
|
|
541
|
+
/**
|
|
542
|
+
* Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
543
|
+
*/
|
|
544
|
+
awsApiKey?: string | undefined;
|
|
545
|
+
/**
|
|
546
|
+
* Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
547
|
+
*/
|
|
548
|
+
awsSecretKey?: string | undefined;
|
|
549
|
+
/**
|
|
550
|
+
* Select or create a stored secret that references AWS access key and secret key.
|
|
551
|
+
*/
|
|
552
|
+
awsSecret?: string | undefined;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
557
|
+
*/
|
|
558
|
+
export const PartitioningScheme2 = {
|
|
559
|
+
/**
|
|
560
|
+
* Defined in Path
|
|
561
|
+
*/
|
|
562
|
+
None: "none",
|
|
563
|
+
/**
|
|
564
|
+
* DDSS
|
|
565
|
+
*/
|
|
566
|
+
Ddss: "ddss",
|
|
567
|
+
} as const;
|
|
568
|
+
/**
|
|
569
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
570
|
+
*/
|
|
571
|
+
export type PartitioningScheme2 = OpenEnum<typeof PartitioningScheme2>;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Collector type: s3
|
|
575
|
+
*/
|
|
576
|
+
export const CollectorS3Type2 = {
|
|
577
|
+
S3: "s3",
|
|
578
|
+
} as const;
|
|
579
|
+
/**
|
|
580
|
+
* Collector type: s3
|
|
581
|
+
*/
|
|
582
|
+
export type CollectorS3Type2 = ClosedEnum<typeof CollectorS3Type2>;
|
|
583
|
+
|
|
584
|
+
export type CollectorS3Extractor2 = {
|
|
585
|
+
/**
|
|
586
|
+
* A token from the template path, such as epoch
|
|
587
|
+
*/
|
|
588
|
+
key: string;
|
|
589
|
+
/**
|
|
590
|
+
* JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
|
|
591
|
+
*/
|
|
592
|
+
expression: string;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
597
|
+
*/
|
|
598
|
+
export const CollectorS3AuthenticationMethod2 = {
|
|
599
|
+
/**
|
|
600
|
+
* Auto
|
|
601
|
+
*/
|
|
602
|
+
Auto: "auto",
|
|
603
|
+
/**
|
|
604
|
+
* Manual
|
|
605
|
+
*/
|
|
606
|
+
Manual: "manual",
|
|
607
|
+
/**
|
|
608
|
+
* Secret Key pair
|
|
609
|
+
*/
|
|
610
|
+
Secret: "secret",
|
|
611
|
+
} as const;
|
|
612
|
+
/**
|
|
613
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
614
|
+
*/
|
|
615
|
+
export type CollectorS3AuthenticationMethod2 = OpenEnum<
|
|
616
|
+
typeof CollectorS3AuthenticationMethod2
|
|
617
|
+
>;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Signature version to use for signing S3 requests
|
|
621
|
+
*/
|
|
622
|
+
export const CollectorS3SignatureVersion2 = {
|
|
623
|
+
V2: "v2",
|
|
624
|
+
V4: "v4",
|
|
625
|
+
} as const;
|
|
626
|
+
/**
|
|
627
|
+
* Signature version to use for signing S3 requests
|
|
628
|
+
*/
|
|
629
|
+
export type CollectorS3SignatureVersion2 = OpenEnum<
|
|
630
|
+
typeof CollectorS3SignatureVersion2
|
|
631
|
+
>;
|
|
632
|
+
|
|
633
|
+
export type CollectorS3S32 = {
|
|
634
|
+
/**
|
|
635
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
636
|
+
*/
|
|
637
|
+
partitioningScheme?: PartitioningScheme2 | undefined;
|
|
638
|
+
/**
|
|
639
|
+
* Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
|
|
640
|
+
*/
|
|
641
|
+
recurse?: boolean | undefined;
|
|
642
|
+
/**
|
|
643
|
+
* Collector type: s3
|
|
644
|
+
*/
|
|
645
|
+
type: CollectorS3Type2;
|
|
646
|
+
/**
|
|
647
|
+
* Name of the predefined Destination that will be used to auto-populate Collector settings
|
|
648
|
+
*/
|
|
649
|
+
outputName?: string | undefined;
|
|
650
|
+
/**
|
|
651
|
+
* S3 Bucket from which to collect data
|
|
652
|
+
*/
|
|
653
|
+
bucket: string;
|
|
654
|
+
/**
|
|
655
|
+
* Maximum file size for each Parquet chunk
|
|
656
|
+
*/
|
|
657
|
+
parquetChunkSizeMB?: number | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
|
|
660
|
+
*/
|
|
661
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
662
|
+
/**
|
|
663
|
+
* Region from which to retrieve data
|
|
664
|
+
*/
|
|
665
|
+
region?: string | undefined;
|
|
666
|
+
/**
|
|
667
|
+
* Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
|
|
668
|
+
*/
|
|
669
|
+
path?: string | undefined;
|
|
670
|
+
/**
|
|
671
|
+
* Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
|
|
672
|
+
*/
|
|
673
|
+
extractors?: Array<CollectorS3Extractor2> | undefined;
|
|
674
|
+
/**
|
|
675
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
676
|
+
*/
|
|
677
|
+
awsAuthenticationMethod?: CollectorS3AuthenticationMethod2 | undefined;
|
|
678
|
+
/**
|
|
679
|
+
* Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
|
|
680
|
+
*/
|
|
681
|
+
endpoint?: string | undefined;
|
|
682
|
+
/**
|
|
683
|
+
* Signature version to use for signing S3 requests
|
|
684
|
+
*/
|
|
685
|
+
signatureVersion?: CollectorS3SignatureVersion2 | undefined;
|
|
686
|
+
/**
|
|
687
|
+
* Use AssumeRole credentials
|
|
688
|
+
*/
|
|
689
|
+
enableAssumeRole?: boolean | undefined;
|
|
690
|
+
/**
|
|
691
|
+
* Amazon Resource Name (ARN) of the role to assume
|
|
692
|
+
*/
|
|
693
|
+
assumeRoleArn?: string | undefined;
|
|
694
|
+
/**
|
|
695
|
+
* External ID to use when assuming role
|
|
696
|
+
*/
|
|
697
|
+
assumeRoleExternalId?: string | undefined;
|
|
698
|
+
/**
|
|
699
|
+
* Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
|
|
700
|
+
*/
|
|
701
|
+
durationSeconds?: number | undefined;
|
|
702
|
+
/**
|
|
703
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
704
|
+
*/
|
|
705
|
+
maxBatchSize?: number | undefined;
|
|
706
|
+
/**
|
|
707
|
+
* Reuse connections between requests to improve performance
|
|
708
|
+
*/
|
|
709
|
+
reuseConnections?: boolean | undefined;
|
|
710
|
+
/**
|
|
711
|
+
* Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
|
|
712
|
+
*/
|
|
713
|
+
rejectUnauthorized?: boolean | undefined;
|
|
714
|
+
/**
|
|
715
|
+
* Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
|
|
716
|
+
*/
|
|
717
|
+
verifyPermissions?: boolean | undefined;
|
|
718
|
+
/**
|
|
719
|
+
* Disable Collector event time filtering when a date range is specified
|
|
720
|
+
*/
|
|
721
|
+
disableTimeFilter?: boolean | undefined;
|
|
722
|
+
/**
|
|
723
|
+
* Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
724
|
+
*/
|
|
725
|
+
awsApiKey?: string | undefined;
|
|
726
|
+
/**
|
|
727
|
+
* Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
728
|
+
*/
|
|
729
|
+
awsSecretKey?: string | undefined;
|
|
730
|
+
/**
|
|
731
|
+
* Select or create a stored secret that references AWS access key and secret key.
|
|
732
|
+
*/
|
|
733
|
+
awsSecret?: string | undefined;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
738
|
+
*/
|
|
739
|
+
export const PartitioningScheme1 = {
|
|
740
|
+
/**
|
|
741
|
+
* Defined in Path
|
|
742
|
+
*/
|
|
743
|
+
None: "none",
|
|
744
|
+
/**
|
|
745
|
+
* DDSS
|
|
746
|
+
*/
|
|
747
|
+
Ddss: "ddss",
|
|
748
|
+
} as const;
|
|
749
|
+
/**
|
|
750
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
751
|
+
*/
|
|
752
|
+
export type PartitioningScheme1 = OpenEnum<typeof PartitioningScheme1>;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Collector type: s3
|
|
756
|
+
*/
|
|
757
|
+
export const CollectorS3Type1 = {
|
|
758
|
+
S3: "s3",
|
|
759
|
+
} as const;
|
|
760
|
+
/**
|
|
761
|
+
* Collector type: s3
|
|
762
|
+
*/
|
|
763
|
+
export type CollectorS3Type1 = ClosedEnum<typeof CollectorS3Type1>;
|
|
764
|
+
|
|
765
|
+
export type CollectorS3Extractor1 = {
|
|
766
|
+
/**
|
|
767
|
+
* A token from the template path, such as epoch
|
|
768
|
+
*/
|
|
769
|
+
key: string;
|
|
770
|
+
/**
|
|
771
|
+
* JavaScript expression that receives token under "value" variable, and evaluates to populate event fields. Example: {date: new Date(+value*1000)}
|
|
772
|
+
*/
|
|
773
|
+
expression: string;
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
778
|
+
*/
|
|
779
|
+
export const CollectorS3AuthenticationMethod1 = {
|
|
780
|
+
/**
|
|
781
|
+
* Auto
|
|
782
|
+
*/
|
|
783
|
+
Auto: "auto",
|
|
784
|
+
/**
|
|
785
|
+
* Manual
|
|
786
|
+
*/
|
|
787
|
+
Manual: "manual",
|
|
788
|
+
/**
|
|
789
|
+
* Secret Key pair
|
|
790
|
+
*/
|
|
791
|
+
Secret: "secret",
|
|
792
|
+
} as const;
|
|
793
|
+
/**
|
|
794
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
795
|
+
*/
|
|
796
|
+
export type CollectorS3AuthenticationMethod1 = OpenEnum<
|
|
797
|
+
typeof CollectorS3AuthenticationMethod1
|
|
798
|
+
>;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Signature version to use for signing S3 requests
|
|
802
|
+
*/
|
|
803
|
+
export const CollectorS3SignatureVersion1 = {
|
|
804
|
+
V2: "v2",
|
|
805
|
+
V4: "v4",
|
|
806
|
+
} as const;
|
|
807
|
+
/**
|
|
808
|
+
* Signature version to use for signing S3 requests
|
|
809
|
+
*/
|
|
810
|
+
export type CollectorS3SignatureVersion1 = OpenEnum<
|
|
811
|
+
typeof CollectorS3SignatureVersion1
|
|
812
|
+
>;
|
|
813
|
+
|
|
814
|
+
export type CollectorS3S31 = {
|
|
815
|
+
/**
|
|
816
|
+
* Partitioning scheme used for this dataset. Using a known scheme like DDSS enables more efficient data reading and retrieval.
|
|
817
|
+
*/
|
|
818
|
+
partitioningScheme?: PartitioningScheme1 | undefined;
|
|
819
|
+
/**
|
|
820
|
+
* Collector type: s3
|
|
821
|
+
*/
|
|
822
|
+
type: CollectorS3Type1;
|
|
823
|
+
/**
|
|
824
|
+
* Name of the predefined Destination that will be used to auto-populate Collector settings
|
|
825
|
+
*/
|
|
826
|
+
outputName?: string | undefined;
|
|
827
|
+
/**
|
|
828
|
+
* S3 Bucket from which to collect data
|
|
829
|
+
*/
|
|
830
|
+
bucket: string;
|
|
831
|
+
/**
|
|
832
|
+
* Maximum file size for each Parquet chunk
|
|
833
|
+
*/
|
|
834
|
+
parquetChunkSizeMB?: number | undefined;
|
|
835
|
+
/**
|
|
836
|
+
* Maximum time allowed for downloading a Parquet chunk. Processing will stop if a chunk cannot be downloaded within the time specified.
|
|
837
|
+
*/
|
|
838
|
+
parquetChunkDownloadTimeout?: number | undefined;
|
|
839
|
+
/**
|
|
840
|
+
* Region from which to retrieve data
|
|
841
|
+
*/
|
|
842
|
+
region?: string | undefined;
|
|
843
|
+
/**
|
|
844
|
+
* Directory where data will be collected. Templating (such as 'myDir/${datacenter}/${host}/${app}/') and time-based tokens (such as 'myOtherDir/${_time:%Y}/${_time:%m}/${_time:%d}/') are supported. Can be a constant (enclosed in quotes) or a JavaScript expression.
|
|
845
|
+
*/
|
|
846
|
+
path?: string | undefined;
|
|
847
|
+
/**
|
|
848
|
+
* Allows using template tokens as context for expressions that enrich discovery results. For example, given a template /path/${epoch}, an extractor under key "epoch" with an expression {date: new Date(+value*1000)}, will enrich discovery results with a human readable "date" field.
|
|
849
|
+
*/
|
|
850
|
+
extractors?: Array<CollectorS3Extractor1> | undefined;
|
|
851
|
+
/**
|
|
852
|
+
* AWS authentication method. Choose Auto to use IAM roles.
|
|
853
|
+
*/
|
|
854
|
+
awsAuthenticationMethod?: CollectorS3AuthenticationMethod1 | undefined;
|
|
855
|
+
/**
|
|
856
|
+
* Must point to an S3-compatible endpoint. If empty, defaults to an AWS region-specific endpoint.
|
|
857
|
+
*/
|
|
858
|
+
endpoint?: string | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* Signature version to use for signing S3 requests
|
|
861
|
+
*/
|
|
862
|
+
signatureVersion?: CollectorS3SignatureVersion1 | undefined;
|
|
863
|
+
/**
|
|
864
|
+
* Use AssumeRole credentials
|
|
865
|
+
*/
|
|
866
|
+
enableAssumeRole?: boolean | undefined;
|
|
867
|
+
/**
|
|
868
|
+
* Amazon Resource Name (ARN) of the role to assume
|
|
869
|
+
*/
|
|
870
|
+
assumeRoleArn?: string | undefined;
|
|
871
|
+
/**
|
|
872
|
+
* External ID to use when assuming role
|
|
873
|
+
*/
|
|
874
|
+
assumeRoleExternalId?: string | undefined;
|
|
875
|
+
/**
|
|
876
|
+
* Duration of the Assumed Role's session, in seconds. Minimum is 900 (15 minutes), default is 3600 (1 hour), and maximum is 43200 (12 hours).
|
|
877
|
+
*/
|
|
878
|
+
durationSeconds?: number | undefined;
|
|
879
|
+
/**
|
|
880
|
+
* Maximum number of metadata objects to batch before recording as results
|
|
881
|
+
*/
|
|
882
|
+
maxBatchSize?: number | undefined;
|
|
883
|
+
/**
|
|
884
|
+
* Traverse and include files from subdirectories. Leave this option enabled to ensure that all nested directories are searched and their contents collected.
|
|
885
|
+
*/
|
|
886
|
+
recurse?: boolean | undefined;
|
|
887
|
+
/**
|
|
888
|
+
* Reuse connections between requests to improve performance
|
|
889
|
+
*/
|
|
890
|
+
reuseConnections?: boolean | undefined;
|
|
891
|
+
/**
|
|
892
|
+
* Reject certificates that cannot be verified against a valid CA (such as a self-signed certificate)
|
|
893
|
+
*/
|
|
894
|
+
rejectUnauthorized?: boolean | undefined;
|
|
895
|
+
/**
|
|
896
|
+
* Disable if you can access files within the bucket but not the bucket itself. Resolves errors of the form "discover task initialization failed...error: Forbidden".
|
|
897
|
+
*/
|
|
898
|
+
verifyPermissions?: boolean | undefined;
|
|
899
|
+
/**
|
|
900
|
+
* Disable Collector event time filtering when a date range is specified
|
|
901
|
+
*/
|
|
902
|
+
disableTimeFilter?: boolean | undefined;
|
|
903
|
+
/**
|
|
904
|
+
* Access key. If not present, will fall back to env.AWS_ACCESS_KEY_ID, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
905
|
+
*/
|
|
906
|
+
awsApiKey?: string | undefined;
|
|
907
|
+
/**
|
|
908
|
+
* Secret key. If not present, will fall back to env.AWS_SECRET_ACCESS_KEY, or to the metadata endpoint for IAM creds. Optional when running on AWS. This value can be a constant or a JavaScript expression.
|
|
909
|
+
*/
|
|
910
|
+
awsSecretKey?: string | undefined;
|
|
911
|
+
/**
|
|
912
|
+
* Select or create a stored secret that references AWS access key and secret key.
|
|
913
|
+
*/
|
|
914
|
+
awsSecret?: string | undefined;
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
export type CollectorS3 =
|
|
918
|
+
| CollectorS3S31
|
|
919
|
+
| CollectorS3S32
|
|
920
|
+
| CollectorS3S33
|
|
921
|
+
| CollectorS3S34
|
|
922
|
+
| CollectorS3S35;
|
|
923
|
+
|
|
924
|
+
/** @internal */
|
|
925
|
+
export const CollectorS3AuthenticationMethod5$inboundSchema: z.ZodType<
|
|
926
|
+
CollectorS3AuthenticationMethod5,
|
|
927
|
+
z.ZodTypeDef,
|
|
928
|
+
unknown
|
|
929
|
+
> = openEnums.inboundSchema(CollectorS3AuthenticationMethod5);
|
|
930
|
+
/** @internal */
|
|
931
|
+
export const CollectorS3AuthenticationMethod5$outboundSchema: z.ZodType<
|
|
932
|
+
string,
|
|
933
|
+
z.ZodTypeDef,
|
|
934
|
+
CollectorS3AuthenticationMethod5
|
|
935
|
+
> = openEnums.outboundSchema(CollectorS3AuthenticationMethod5);
|
|
936
|
+
|
|
937
|
+
/** @internal */
|
|
938
|
+
export const CollectorS3Type5$inboundSchema: z.ZodNativeEnum<
|
|
939
|
+
typeof CollectorS3Type5
|
|
940
|
+
> = z.nativeEnum(CollectorS3Type5);
|
|
941
|
+
/** @internal */
|
|
942
|
+
export const CollectorS3Type5$outboundSchema: z.ZodNativeEnum<
|
|
943
|
+
typeof CollectorS3Type5
|
|
944
|
+
> = CollectorS3Type5$inboundSchema;
|
|
945
|
+
|
|
946
|
+
/** @internal */
|
|
947
|
+
export const PartitioningScheme5$inboundSchema: z.ZodType<
|
|
948
|
+
PartitioningScheme5,
|
|
949
|
+
z.ZodTypeDef,
|
|
950
|
+
unknown
|
|
951
|
+
> = openEnums.inboundSchema(PartitioningScheme5);
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const PartitioningScheme5$outboundSchema: z.ZodType<
|
|
954
|
+
string,
|
|
955
|
+
z.ZodTypeDef,
|
|
956
|
+
PartitioningScheme5
|
|
957
|
+
> = openEnums.outboundSchema(PartitioningScheme5);
|
|
958
|
+
|
|
959
|
+
/** @internal */
|
|
960
|
+
export const CollectorS3Extractor5$inboundSchema: z.ZodType<
|
|
961
|
+
CollectorS3Extractor5,
|
|
962
|
+
z.ZodTypeDef,
|
|
963
|
+
unknown
|
|
964
|
+
> = z.object({
|
|
965
|
+
key: z.string(),
|
|
966
|
+
expression: z.string(),
|
|
967
|
+
});
|
|
968
|
+
/** @internal */
|
|
969
|
+
export type CollectorS3Extractor5$Outbound = {
|
|
970
|
+
key: string;
|
|
971
|
+
expression: string;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
/** @internal */
|
|
975
|
+
export const CollectorS3Extractor5$outboundSchema: z.ZodType<
|
|
976
|
+
CollectorS3Extractor5$Outbound,
|
|
977
|
+
z.ZodTypeDef,
|
|
978
|
+
CollectorS3Extractor5
|
|
979
|
+
> = z.object({
|
|
980
|
+
key: z.string(),
|
|
981
|
+
expression: z.string(),
|
|
982
|
+
});
|
|
983
|
+
|
|
984
|
+
export function collectorS3Extractor5ToJSON(
|
|
985
|
+
collectorS3Extractor5: CollectorS3Extractor5,
|
|
986
|
+
): string {
|
|
987
|
+
return JSON.stringify(
|
|
988
|
+
CollectorS3Extractor5$outboundSchema.parse(collectorS3Extractor5),
|
|
989
|
+
);
|
|
990
|
+
}
|
|
991
|
+
export function collectorS3Extractor5FromJSON(
|
|
992
|
+
jsonString: string,
|
|
993
|
+
): SafeParseResult<CollectorS3Extractor5, SDKValidationError> {
|
|
994
|
+
return safeParse(
|
|
995
|
+
jsonString,
|
|
996
|
+
(x) => CollectorS3Extractor5$inboundSchema.parse(JSON.parse(x)),
|
|
997
|
+
`Failed to parse 'CollectorS3Extractor5' from JSON`,
|
|
998
|
+
);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/** @internal */
|
|
1002
|
+
export const CollectorS3SignatureVersion5$inboundSchema: z.ZodType<
|
|
1003
|
+
CollectorS3SignatureVersion5,
|
|
1004
|
+
z.ZodTypeDef,
|
|
1005
|
+
unknown
|
|
1006
|
+
> = openEnums.inboundSchema(CollectorS3SignatureVersion5);
|
|
1007
|
+
/** @internal */
|
|
1008
|
+
export const CollectorS3SignatureVersion5$outboundSchema: z.ZodType<
|
|
1009
|
+
string,
|
|
1010
|
+
z.ZodTypeDef,
|
|
1011
|
+
CollectorS3SignatureVersion5
|
|
1012
|
+
> = openEnums.outboundSchema(CollectorS3SignatureVersion5);
|
|
1013
|
+
|
|
1014
|
+
/** @internal */
|
|
1015
|
+
export const CollectorS3S35$inboundSchema: z.ZodType<
|
|
1016
|
+
CollectorS3S35,
|
|
1017
|
+
z.ZodTypeDef,
|
|
1018
|
+
unknown
|
|
1019
|
+
> = z.object({
|
|
1020
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod5$inboundSchema
|
|
1021
|
+
.default("auto"),
|
|
1022
|
+
awsSecret: z.string().optional(),
|
|
1023
|
+
type: CollectorS3Type5$inboundSchema,
|
|
1024
|
+
outputName: z.string().optional(),
|
|
1025
|
+
bucket: z.string(),
|
|
1026
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1027
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1028
|
+
region: z.string().optional(),
|
|
1029
|
+
path: z.string().optional(),
|
|
1030
|
+
partitioningScheme: PartitioningScheme5$inboundSchema.default("none"),
|
|
1031
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor5$inboundSchema))
|
|
1032
|
+
.optional(),
|
|
1033
|
+
endpoint: z.string().optional(),
|
|
1034
|
+
signatureVersion: CollectorS3SignatureVersion5$inboundSchema.default("v4"),
|
|
1035
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1036
|
+
assumeRoleArn: z.string().optional(),
|
|
1037
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1038
|
+
durationSeconds: z.number().default(3600),
|
|
1039
|
+
maxBatchSize: z.number().default(10),
|
|
1040
|
+
recurse: z.boolean().default(true),
|
|
1041
|
+
reuseConnections: z.boolean().default(true),
|
|
1042
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1043
|
+
verifyPermissions: z.boolean().default(true),
|
|
1044
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1045
|
+
awsApiKey: z.string().optional(),
|
|
1046
|
+
awsSecretKey: z.string().optional(),
|
|
1047
|
+
});
|
|
1048
|
+
/** @internal */
|
|
1049
|
+
export type CollectorS3S35$Outbound = {
|
|
1050
|
+
awsAuthenticationMethod: string;
|
|
1051
|
+
awsSecret?: string | undefined;
|
|
1052
|
+
type: string;
|
|
1053
|
+
outputName?: string | undefined;
|
|
1054
|
+
bucket: string;
|
|
1055
|
+
parquetChunkSizeMB: number;
|
|
1056
|
+
parquetChunkDownloadTimeout: number;
|
|
1057
|
+
region?: string | undefined;
|
|
1058
|
+
path?: string | undefined;
|
|
1059
|
+
partitioningScheme: string;
|
|
1060
|
+
extractors?: Array<CollectorS3Extractor5$Outbound> | undefined;
|
|
1061
|
+
endpoint?: string | undefined;
|
|
1062
|
+
signatureVersion: string;
|
|
1063
|
+
enableAssumeRole: boolean;
|
|
1064
|
+
assumeRoleArn?: string | undefined;
|
|
1065
|
+
assumeRoleExternalId?: string | undefined;
|
|
1066
|
+
durationSeconds: number;
|
|
1067
|
+
maxBatchSize: number;
|
|
1068
|
+
recurse: boolean;
|
|
1069
|
+
reuseConnections: boolean;
|
|
1070
|
+
rejectUnauthorized: boolean;
|
|
1071
|
+
verifyPermissions: boolean;
|
|
1072
|
+
disableTimeFilter: boolean;
|
|
1073
|
+
awsApiKey?: string | undefined;
|
|
1074
|
+
awsSecretKey?: string | undefined;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
/** @internal */
|
|
1078
|
+
export const CollectorS3S35$outboundSchema: z.ZodType<
|
|
1079
|
+
CollectorS3S35$Outbound,
|
|
1080
|
+
z.ZodTypeDef,
|
|
1081
|
+
CollectorS3S35
|
|
1082
|
+
> = z.object({
|
|
1083
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod5$outboundSchema
|
|
1084
|
+
.default("auto"),
|
|
1085
|
+
awsSecret: z.string().optional(),
|
|
1086
|
+
type: CollectorS3Type5$outboundSchema,
|
|
1087
|
+
outputName: z.string().optional(),
|
|
1088
|
+
bucket: z.string(),
|
|
1089
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1090
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1091
|
+
region: z.string().optional(),
|
|
1092
|
+
path: z.string().optional(),
|
|
1093
|
+
partitioningScheme: PartitioningScheme5$outboundSchema.default("none"),
|
|
1094
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor5$outboundSchema))
|
|
1095
|
+
.optional(),
|
|
1096
|
+
endpoint: z.string().optional(),
|
|
1097
|
+
signatureVersion: CollectorS3SignatureVersion5$outboundSchema.default("v4"),
|
|
1098
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1099
|
+
assumeRoleArn: z.string().optional(),
|
|
1100
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1101
|
+
durationSeconds: z.number().default(3600),
|
|
1102
|
+
maxBatchSize: z.number().default(10),
|
|
1103
|
+
recurse: z.boolean().default(true),
|
|
1104
|
+
reuseConnections: z.boolean().default(true),
|
|
1105
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1106
|
+
verifyPermissions: z.boolean().default(true),
|
|
1107
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1108
|
+
awsApiKey: z.string().optional(),
|
|
1109
|
+
awsSecretKey: z.string().optional(),
|
|
1110
|
+
});
|
|
1111
|
+
|
|
1112
|
+
export function collectorS3S35ToJSON(collectorS3S35: CollectorS3S35): string {
|
|
1113
|
+
return JSON.stringify(CollectorS3S35$outboundSchema.parse(collectorS3S35));
|
|
1114
|
+
}
|
|
1115
|
+
export function collectorS3S35FromJSON(
|
|
1116
|
+
jsonString: string,
|
|
1117
|
+
): SafeParseResult<CollectorS3S35, SDKValidationError> {
|
|
1118
|
+
return safeParse(
|
|
1119
|
+
jsonString,
|
|
1120
|
+
(x) => CollectorS3S35$inboundSchema.parse(JSON.parse(x)),
|
|
1121
|
+
`Failed to parse 'CollectorS3S35' from JSON`,
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/** @internal */
|
|
1126
|
+
export const CollectorS3AuthenticationMethod4$inboundSchema: z.ZodType<
|
|
1127
|
+
CollectorS3AuthenticationMethod4,
|
|
1128
|
+
z.ZodTypeDef,
|
|
1129
|
+
unknown
|
|
1130
|
+
> = openEnums.inboundSchema(CollectorS3AuthenticationMethod4);
|
|
1131
|
+
/** @internal */
|
|
1132
|
+
export const CollectorS3AuthenticationMethod4$outboundSchema: z.ZodType<
|
|
1133
|
+
string,
|
|
1134
|
+
z.ZodTypeDef,
|
|
1135
|
+
CollectorS3AuthenticationMethod4
|
|
1136
|
+
> = openEnums.outboundSchema(CollectorS3AuthenticationMethod4);
|
|
1137
|
+
|
|
1138
|
+
/** @internal */
|
|
1139
|
+
export const CollectorS3Type4$inboundSchema: z.ZodNativeEnum<
|
|
1140
|
+
typeof CollectorS3Type4
|
|
1141
|
+
> = z.nativeEnum(CollectorS3Type4);
|
|
1142
|
+
/** @internal */
|
|
1143
|
+
export const CollectorS3Type4$outboundSchema: z.ZodNativeEnum<
|
|
1144
|
+
typeof CollectorS3Type4
|
|
1145
|
+
> = CollectorS3Type4$inboundSchema;
|
|
1146
|
+
|
|
1147
|
+
/** @internal */
|
|
1148
|
+
export const PartitioningScheme4$inboundSchema: z.ZodType<
|
|
1149
|
+
PartitioningScheme4,
|
|
1150
|
+
z.ZodTypeDef,
|
|
1151
|
+
unknown
|
|
1152
|
+
> = openEnums.inboundSchema(PartitioningScheme4);
|
|
1153
|
+
/** @internal */
|
|
1154
|
+
export const PartitioningScheme4$outboundSchema: z.ZodType<
|
|
1155
|
+
string,
|
|
1156
|
+
z.ZodTypeDef,
|
|
1157
|
+
PartitioningScheme4
|
|
1158
|
+
> = openEnums.outboundSchema(PartitioningScheme4);
|
|
1159
|
+
|
|
1160
|
+
/** @internal */
|
|
1161
|
+
export const CollectorS3Extractor4$inboundSchema: z.ZodType<
|
|
1162
|
+
CollectorS3Extractor4,
|
|
1163
|
+
z.ZodTypeDef,
|
|
1164
|
+
unknown
|
|
1165
|
+
> = z.object({
|
|
1166
|
+
key: z.string(),
|
|
1167
|
+
expression: z.string(),
|
|
1168
|
+
});
|
|
1169
|
+
/** @internal */
|
|
1170
|
+
export type CollectorS3Extractor4$Outbound = {
|
|
1171
|
+
key: string;
|
|
1172
|
+
expression: string;
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
/** @internal */
|
|
1176
|
+
export const CollectorS3Extractor4$outboundSchema: z.ZodType<
|
|
1177
|
+
CollectorS3Extractor4$Outbound,
|
|
1178
|
+
z.ZodTypeDef,
|
|
1179
|
+
CollectorS3Extractor4
|
|
1180
|
+
> = z.object({
|
|
1181
|
+
key: z.string(),
|
|
1182
|
+
expression: z.string(),
|
|
1183
|
+
});
|
|
1184
|
+
|
|
1185
|
+
export function collectorS3Extractor4ToJSON(
|
|
1186
|
+
collectorS3Extractor4: CollectorS3Extractor4,
|
|
1187
|
+
): string {
|
|
1188
|
+
return JSON.stringify(
|
|
1189
|
+
CollectorS3Extractor4$outboundSchema.parse(collectorS3Extractor4),
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1192
|
+
export function collectorS3Extractor4FromJSON(
|
|
1193
|
+
jsonString: string,
|
|
1194
|
+
): SafeParseResult<CollectorS3Extractor4, SDKValidationError> {
|
|
1195
|
+
return safeParse(
|
|
1196
|
+
jsonString,
|
|
1197
|
+
(x) => CollectorS3Extractor4$inboundSchema.parse(JSON.parse(x)),
|
|
1198
|
+
`Failed to parse 'CollectorS3Extractor4' from JSON`,
|
|
1199
|
+
);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
export const CollectorS3SignatureVersion4$inboundSchema: z.ZodType<
|
|
1204
|
+
CollectorS3SignatureVersion4,
|
|
1205
|
+
z.ZodTypeDef,
|
|
1206
|
+
unknown
|
|
1207
|
+
> = openEnums.inboundSchema(CollectorS3SignatureVersion4);
|
|
1208
|
+
/** @internal */
|
|
1209
|
+
export const CollectorS3SignatureVersion4$outboundSchema: z.ZodType<
|
|
1210
|
+
string,
|
|
1211
|
+
z.ZodTypeDef,
|
|
1212
|
+
CollectorS3SignatureVersion4
|
|
1213
|
+
> = openEnums.outboundSchema(CollectorS3SignatureVersion4);
|
|
1214
|
+
|
|
1215
|
+
/** @internal */
|
|
1216
|
+
export const CollectorS3S34$inboundSchema: z.ZodType<
|
|
1217
|
+
CollectorS3S34,
|
|
1218
|
+
z.ZodTypeDef,
|
|
1219
|
+
unknown
|
|
1220
|
+
> = z.object({
|
|
1221
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod4$inboundSchema
|
|
1222
|
+
.default("auto"),
|
|
1223
|
+
awsApiKey: z.string().optional(),
|
|
1224
|
+
awsSecretKey: z.string().optional(),
|
|
1225
|
+
type: CollectorS3Type4$inboundSchema,
|
|
1226
|
+
outputName: z.string().optional(),
|
|
1227
|
+
bucket: z.string(),
|
|
1228
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1229
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1230
|
+
region: z.string().optional(),
|
|
1231
|
+
path: z.string().optional(),
|
|
1232
|
+
partitioningScheme: PartitioningScheme4$inboundSchema.default("none"),
|
|
1233
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor4$inboundSchema))
|
|
1234
|
+
.optional(),
|
|
1235
|
+
endpoint: z.string().optional(),
|
|
1236
|
+
signatureVersion: CollectorS3SignatureVersion4$inboundSchema.default("v4"),
|
|
1237
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1238
|
+
assumeRoleArn: z.string().optional(),
|
|
1239
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1240
|
+
durationSeconds: z.number().default(3600),
|
|
1241
|
+
maxBatchSize: z.number().default(10),
|
|
1242
|
+
recurse: z.boolean().default(true),
|
|
1243
|
+
reuseConnections: z.boolean().default(true),
|
|
1244
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1245
|
+
verifyPermissions: z.boolean().default(true),
|
|
1246
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1247
|
+
awsSecret: z.string().optional(),
|
|
1248
|
+
});
|
|
1249
|
+
/** @internal */
|
|
1250
|
+
export type CollectorS3S34$Outbound = {
|
|
1251
|
+
awsAuthenticationMethod: string;
|
|
1252
|
+
awsApiKey?: string | undefined;
|
|
1253
|
+
awsSecretKey?: string | undefined;
|
|
1254
|
+
type: string;
|
|
1255
|
+
outputName?: string | undefined;
|
|
1256
|
+
bucket: string;
|
|
1257
|
+
parquetChunkSizeMB: number;
|
|
1258
|
+
parquetChunkDownloadTimeout: number;
|
|
1259
|
+
region?: string | undefined;
|
|
1260
|
+
path?: string | undefined;
|
|
1261
|
+
partitioningScheme: string;
|
|
1262
|
+
extractors?: Array<CollectorS3Extractor4$Outbound> | undefined;
|
|
1263
|
+
endpoint?: string | undefined;
|
|
1264
|
+
signatureVersion: string;
|
|
1265
|
+
enableAssumeRole: boolean;
|
|
1266
|
+
assumeRoleArn?: string | undefined;
|
|
1267
|
+
assumeRoleExternalId?: string | undefined;
|
|
1268
|
+
durationSeconds: number;
|
|
1269
|
+
maxBatchSize: number;
|
|
1270
|
+
recurse: boolean;
|
|
1271
|
+
reuseConnections: boolean;
|
|
1272
|
+
rejectUnauthorized: boolean;
|
|
1273
|
+
verifyPermissions: boolean;
|
|
1274
|
+
disableTimeFilter: boolean;
|
|
1275
|
+
awsSecret?: string | undefined;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
/** @internal */
|
|
1279
|
+
export const CollectorS3S34$outboundSchema: z.ZodType<
|
|
1280
|
+
CollectorS3S34$Outbound,
|
|
1281
|
+
z.ZodTypeDef,
|
|
1282
|
+
CollectorS3S34
|
|
1283
|
+
> = z.object({
|
|
1284
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod4$outboundSchema
|
|
1285
|
+
.default("auto"),
|
|
1286
|
+
awsApiKey: z.string().optional(),
|
|
1287
|
+
awsSecretKey: z.string().optional(),
|
|
1288
|
+
type: CollectorS3Type4$outboundSchema,
|
|
1289
|
+
outputName: z.string().optional(),
|
|
1290
|
+
bucket: z.string(),
|
|
1291
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1292
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1293
|
+
region: z.string().optional(),
|
|
1294
|
+
path: z.string().optional(),
|
|
1295
|
+
partitioningScheme: PartitioningScheme4$outboundSchema.default("none"),
|
|
1296
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor4$outboundSchema))
|
|
1297
|
+
.optional(),
|
|
1298
|
+
endpoint: z.string().optional(),
|
|
1299
|
+
signatureVersion: CollectorS3SignatureVersion4$outboundSchema.default("v4"),
|
|
1300
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1301
|
+
assumeRoleArn: z.string().optional(),
|
|
1302
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1303
|
+
durationSeconds: z.number().default(3600),
|
|
1304
|
+
maxBatchSize: z.number().default(10),
|
|
1305
|
+
recurse: z.boolean().default(true),
|
|
1306
|
+
reuseConnections: z.boolean().default(true),
|
|
1307
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1308
|
+
verifyPermissions: z.boolean().default(true),
|
|
1309
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1310
|
+
awsSecret: z.string().optional(),
|
|
1311
|
+
});
|
|
1312
|
+
|
|
1313
|
+
export function collectorS3S34ToJSON(collectorS3S34: CollectorS3S34): string {
|
|
1314
|
+
return JSON.stringify(CollectorS3S34$outboundSchema.parse(collectorS3S34));
|
|
1315
|
+
}
|
|
1316
|
+
export function collectorS3S34FromJSON(
|
|
1317
|
+
jsonString: string,
|
|
1318
|
+
): SafeParseResult<CollectorS3S34, SDKValidationError> {
|
|
1319
|
+
return safeParse(
|
|
1320
|
+
jsonString,
|
|
1321
|
+
(x) => CollectorS3S34$inboundSchema.parse(JSON.parse(x)),
|
|
1322
|
+
`Failed to parse 'CollectorS3S34' from JSON`,
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/** @internal */
|
|
1327
|
+
export const CollectorS3AuthenticationMethod3$inboundSchema: z.ZodType<
|
|
1328
|
+
CollectorS3AuthenticationMethod3,
|
|
1329
|
+
z.ZodTypeDef,
|
|
1330
|
+
unknown
|
|
1331
|
+
> = openEnums.inboundSchema(CollectorS3AuthenticationMethod3);
|
|
1332
|
+
/** @internal */
|
|
1333
|
+
export const CollectorS3AuthenticationMethod3$outboundSchema: z.ZodType<
|
|
1334
|
+
string,
|
|
1335
|
+
z.ZodTypeDef,
|
|
1336
|
+
CollectorS3AuthenticationMethod3
|
|
1337
|
+
> = openEnums.outboundSchema(CollectorS3AuthenticationMethod3);
|
|
1338
|
+
|
|
1339
|
+
/** @internal */
|
|
1340
|
+
export const CollectorS3Type3$inboundSchema: z.ZodNativeEnum<
|
|
1341
|
+
typeof CollectorS3Type3
|
|
1342
|
+
> = z.nativeEnum(CollectorS3Type3);
|
|
1343
|
+
/** @internal */
|
|
1344
|
+
export const CollectorS3Type3$outboundSchema: z.ZodNativeEnum<
|
|
1345
|
+
typeof CollectorS3Type3
|
|
1346
|
+
> = CollectorS3Type3$inboundSchema;
|
|
1347
|
+
|
|
1348
|
+
/** @internal */
|
|
1349
|
+
export const PartitioningScheme3$inboundSchema: z.ZodType<
|
|
1350
|
+
PartitioningScheme3,
|
|
1351
|
+
z.ZodTypeDef,
|
|
1352
|
+
unknown
|
|
1353
|
+
> = openEnums.inboundSchema(PartitioningScheme3);
|
|
1354
|
+
/** @internal */
|
|
1355
|
+
export const PartitioningScheme3$outboundSchema: z.ZodType<
|
|
1356
|
+
string,
|
|
1357
|
+
z.ZodTypeDef,
|
|
1358
|
+
PartitioningScheme3
|
|
1359
|
+
> = openEnums.outboundSchema(PartitioningScheme3);
|
|
1360
|
+
|
|
1361
|
+
/** @internal */
|
|
1362
|
+
export const CollectorS3Extractor3$inboundSchema: z.ZodType<
|
|
1363
|
+
CollectorS3Extractor3,
|
|
1364
|
+
z.ZodTypeDef,
|
|
1365
|
+
unknown
|
|
1366
|
+
> = z.object({
|
|
1367
|
+
key: z.string(),
|
|
1368
|
+
expression: z.string(),
|
|
1369
|
+
});
|
|
1370
|
+
/** @internal */
|
|
1371
|
+
export type CollectorS3Extractor3$Outbound = {
|
|
1372
|
+
key: string;
|
|
1373
|
+
expression: string;
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
/** @internal */
|
|
1377
|
+
export const CollectorS3Extractor3$outboundSchema: z.ZodType<
|
|
1378
|
+
CollectorS3Extractor3$Outbound,
|
|
1379
|
+
z.ZodTypeDef,
|
|
1380
|
+
CollectorS3Extractor3
|
|
1381
|
+
> = z.object({
|
|
1382
|
+
key: z.string(),
|
|
1383
|
+
expression: z.string(),
|
|
1384
|
+
});
|
|
1385
|
+
|
|
1386
|
+
export function collectorS3Extractor3ToJSON(
|
|
1387
|
+
collectorS3Extractor3: CollectorS3Extractor3,
|
|
1388
|
+
): string {
|
|
1389
|
+
return JSON.stringify(
|
|
1390
|
+
CollectorS3Extractor3$outboundSchema.parse(collectorS3Extractor3),
|
|
1391
|
+
);
|
|
1392
|
+
}
|
|
1393
|
+
export function collectorS3Extractor3FromJSON(
|
|
1394
|
+
jsonString: string,
|
|
1395
|
+
): SafeParseResult<CollectorS3Extractor3, SDKValidationError> {
|
|
1396
|
+
return safeParse(
|
|
1397
|
+
jsonString,
|
|
1398
|
+
(x) => CollectorS3Extractor3$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
+
`Failed to parse 'CollectorS3Extractor3' from JSON`,
|
|
1400
|
+
);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
/** @internal */
|
|
1404
|
+
export const CollectorS3SignatureVersion3$inboundSchema: z.ZodType<
|
|
1405
|
+
CollectorS3SignatureVersion3,
|
|
1406
|
+
z.ZodTypeDef,
|
|
1407
|
+
unknown
|
|
1408
|
+
> = openEnums.inboundSchema(CollectorS3SignatureVersion3);
|
|
1409
|
+
/** @internal */
|
|
1410
|
+
export const CollectorS3SignatureVersion3$outboundSchema: z.ZodType<
|
|
1411
|
+
string,
|
|
1412
|
+
z.ZodTypeDef,
|
|
1413
|
+
CollectorS3SignatureVersion3
|
|
1414
|
+
> = openEnums.outboundSchema(CollectorS3SignatureVersion3);
|
|
1415
|
+
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export const CollectorS3S33$inboundSchema: z.ZodType<
|
|
1418
|
+
CollectorS3S33,
|
|
1419
|
+
z.ZodTypeDef,
|
|
1420
|
+
unknown
|
|
1421
|
+
> = z.object({
|
|
1422
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod3$inboundSchema
|
|
1423
|
+
.default("auto"),
|
|
1424
|
+
type: CollectorS3Type3$inboundSchema,
|
|
1425
|
+
outputName: z.string().optional(),
|
|
1426
|
+
bucket: z.string(),
|
|
1427
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1428
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1429
|
+
region: z.string().optional(),
|
|
1430
|
+
path: z.string().optional(),
|
|
1431
|
+
partitioningScheme: PartitioningScheme3$inboundSchema.default("none"),
|
|
1432
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor3$inboundSchema))
|
|
1433
|
+
.optional(),
|
|
1434
|
+
endpoint: z.string().optional(),
|
|
1435
|
+
signatureVersion: CollectorS3SignatureVersion3$inboundSchema.default("v4"),
|
|
1436
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1437
|
+
assumeRoleArn: z.string().optional(),
|
|
1438
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1439
|
+
durationSeconds: z.number().default(3600),
|
|
1440
|
+
maxBatchSize: z.number().default(10),
|
|
1441
|
+
recurse: z.boolean().default(true),
|
|
1442
|
+
reuseConnections: z.boolean().default(true),
|
|
1443
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1444
|
+
verifyPermissions: z.boolean().default(true),
|
|
1445
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1446
|
+
awsApiKey: z.string().optional(),
|
|
1447
|
+
awsSecretKey: z.string().optional(),
|
|
1448
|
+
awsSecret: z.string().optional(),
|
|
1449
|
+
});
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export type CollectorS3S33$Outbound = {
|
|
1452
|
+
awsAuthenticationMethod: string;
|
|
1453
|
+
type: string;
|
|
1454
|
+
outputName?: string | undefined;
|
|
1455
|
+
bucket: string;
|
|
1456
|
+
parquetChunkSizeMB: number;
|
|
1457
|
+
parquetChunkDownloadTimeout: number;
|
|
1458
|
+
region?: string | undefined;
|
|
1459
|
+
path?: string | undefined;
|
|
1460
|
+
partitioningScheme: string;
|
|
1461
|
+
extractors?: Array<CollectorS3Extractor3$Outbound> | undefined;
|
|
1462
|
+
endpoint?: string | undefined;
|
|
1463
|
+
signatureVersion: string;
|
|
1464
|
+
enableAssumeRole: boolean;
|
|
1465
|
+
assumeRoleArn?: string | undefined;
|
|
1466
|
+
assumeRoleExternalId?: string | undefined;
|
|
1467
|
+
durationSeconds: number;
|
|
1468
|
+
maxBatchSize: number;
|
|
1469
|
+
recurse: boolean;
|
|
1470
|
+
reuseConnections: boolean;
|
|
1471
|
+
rejectUnauthorized: boolean;
|
|
1472
|
+
verifyPermissions: boolean;
|
|
1473
|
+
disableTimeFilter: boolean;
|
|
1474
|
+
awsApiKey?: string | undefined;
|
|
1475
|
+
awsSecretKey?: string | undefined;
|
|
1476
|
+
awsSecret?: string | undefined;
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
/** @internal */
|
|
1480
|
+
export const CollectorS3S33$outboundSchema: z.ZodType<
|
|
1481
|
+
CollectorS3S33$Outbound,
|
|
1482
|
+
z.ZodTypeDef,
|
|
1483
|
+
CollectorS3S33
|
|
1484
|
+
> = z.object({
|
|
1485
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod3$outboundSchema
|
|
1486
|
+
.default("auto"),
|
|
1487
|
+
type: CollectorS3Type3$outboundSchema,
|
|
1488
|
+
outputName: z.string().optional(),
|
|
1489
|
+
bucket: z.string(),
|
|
1490
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1491
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1492
|
+
region: z.string().optional(),
|
|
1493
|
+
path: z.string().optional(),
|
|
1494
|
+
partitioningScheme: PartitioningScheme3$outboundSchema.default("none"),
|
|
1495
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor3$outboundSchema))
|
|
1496
|
+
.optional(),
|
|
1497
|
+
endpoint: z.string().optional(),
|
|
1498
|
+
signatureVersion: CollectorS3SignatureVersion3$outboundSchema.default("v4"),
|
|
1499
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1500
|
+
assumeRoleArn: z.string().optional(),
|
|
1501
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1502
|
+
durationSeconds: z.number().default(3600),
|
|
1503
|
+
maxBatchSize: z.number().default(10),
|
|
1504
|
+
recurse: z.boolean().default(true),
|
|
1505
|
+
reuseConnections: z.boolean().default(true),
|
|
1506
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1507
|
+
verifyPermissions: z.boolean().default(true),
|
|
1508
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1509
|
+
awsApiKey: z.string().optional(),
|
|
1510
|
+
awsSecretKey: z.string().optional(),
|
|
1511
|
+
awsSecret: z.string().optional(),
|
|
1512
|
+
});
|
|
1513
|
+
|
|
1514
|
+
export function collectorS3S33ToJSON(collectorS3S33: CollectorS3S33): string {
|
|
1515
|
+
return JSON.stringify(CollectorS3S33$outboundSchema.parse(collectorS3S33));
|
|
1516
|
+
}
|
|
1517
|
+
export function collectorS3S33FromJSON(
|
|
1518
|
+
jsonString: string,
|
|
1519
|
+
): SafeParseResult<CollectorS3S33, SDKValidationError> {
|
|
215
1520
|
return safeParse(
|
|
216
1521
|
jsonString,
|
|
217
|
-
(x) =>
|
|
218
|
-
`Failed to parse '
|
|
1522
|
+
(x) => CollectorS3S33$inboundSchema.parse(JSON.parse(x)),
|
|
1523
|
+
`Failed to parse 'CollectorS3S33' from JSON`,
|
|
219
1524
|
);
|
|
220
1525
|
}
|
|
221
1526
|
|
|
222
1527
|
/** @internal */
|
|
223
|
-
export const
|
|
224
|
-
|
|
1528
|
+
export const PartitioningScheme2$inboundSchema: z.ZodType<
|
|
1529
|
+
PartitioningScheme2,
|
|
225
1530
|
z.ZodTypeDef,
|
|
226
1531
|
unknown
|
|
227
|
-
> = openEnums.inboundSchema(
|
|
1532
|
+
> = openEnums.inboundSchema(PartitioningScheme2);
|
|
228
1533
|
/** @internal */
|
|
229
|
-
export const
|
|
1534
|
+
export const PartitioningScheme2$outboundSchema: z.ZodType<
|
|
230
1535
|
string,
|
|
231
1536
|
z.ZodTypeDef,
|
|
232
|
-
|
|
233
|
-
> = openEnums.outboundSchema(
|
|
1537
|
+
PartitioningScheme2
|
|
1538
|
+
> = openEnums.outboundSchema(PartitioningScheme2);
|
|
234
1539
|
|
|
235
1540
|
/** @internal */
|
|
236
|
-
export const
|
|
237
|
-
|
|
1541
|
+
export const CollectorS3Type2$inboundSchema: z.ZodNativeEnum<
|
|
1542
|
+
typeof CollectorS3Type2
|
|
1543
|
+
> = z.nativeEnum(CollectorS3Type2);
|
|
1544
|
+
/** @internal */
|
|
1545
|
+
export const CollectorS3Type2$outboundSchema: z.ZodNativeEnum<
|
|
1546
|
+
typeof CollectorS3Type2
|
|
1547
|
+
> = CollectorS3Type2$inboundSchema;
|
|
1548
|
+
|
|
1549
|
+
/** @internal */
|
|
1550
|
+
export const CollectorS3Extractor2$inboundSchema: z.ZodType<
|
|
1551
|
+
CollectorS3Extractor2,
|
|
1552
|
+
z.ZodTypeDef,
|
|
1553
|
+
unknown
|
|
1554
|
+
> = z.object({
|
|
1555
|
+
key: z.string(),
|
|
1556
|
+
expression: z.string(),
|
|
1557
|
+
});
|
|
1558
|
+
/** @internal */
|
|
1559
|
+
export type CollectorS3Extractor2$Outbound = {
|
|
1560
|
+
key: string;
|
|
1561
|
+
expression: string;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
/** @internal */
|
|
1565
|
+
export const CollectorS3Extractor2$outboundSchema: z.ZodType<
|
|
1566
|
+
CollectorS3Extractor2$Outbound,
|
|
1567
|
+
z.ZodTypeDef,
|
|
1568
|
+
CollectorS3Extractor2
|
|
1569
|
+
> = z.object({
|
|
1570
|
+
key: z.string(),
|
|
1571
|
+
expression: z.string(),
|
|
1572
|
+
});
|
|
1573
|
+
|
|
1574
|
+
export function collectorS3Extractor2ToJSON(
|
|
1575
|
+
collectorS3Extractor2: CollectorS3Extractor2,
|
|
1576
|
+
): string {
|
|
1577
|
+
return JSON.stringify(
|
|
1578
|
+
CollectorS3Extractor2$outboundSchema.parse(collectorS3Extractor2),
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1581
|
+
export function collectorS3Extractor2FromJSON(
|
|
1582
|
+
jsonString: string,
|
|
1583
|
+
): SafeParseResult<CollectorS3Extractor2, SDKValidationError> {
|
|
1584
|
+
return safeParse(
|
|
1585
|
+
jsonString,
|
|
1586
|
+
(x) => CollectorS3Extractor2$inboundSchema.parse(JSON.parse(x)),
|
|
1587
|
+
`Failed to parse 'CollectorS3Extractor2' from JSON`,
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
/** @internal */
|
|
1592
|
+
export const CollectorS3AuthenticationMethod2$inboundSchema: z.ZodType<
|
|
1593
|
+
CollectorS3AuthenticationMethod2,
|
|
238
1594
|
z.ZodTypeDef,
|
|
239
1595
|
unknown
|
|
240
|
-
> = openEnums.inboundSchema(
|
|
1596
|
+
> = openEnums.inboundSchema(CollectorS3AuthenticationMethod2);
|
|
241
1597
|
/** @internal */
|
|
242
|
-
export const
|
|
1598
|
+
export const CollectorS3AuthenticationMethod2$outboundSchema: z.ZodType<
|
|
243
1599
|
string,
|
|
244
1600
|
z.ZodTypeDef,
|
|
245
|
-
|
|
246
|
-
> = openEnums.outboundSchema(
|
|
1601
|
+
CollectorS3AuthenticationMethod2
|
|
1602
|
+
> = openEnums.outboundSchema(CollectorS3AuthenticationMethod2);
|
|
247
1603
|
|
|
248
1604
|
/** @internal */
|
|
249
|
-
export const
|
|
250
|
-
|
|
1605
|
+
export const CollectorS3SignatureVersion2$inboundSchema: z.ZodType<
|
|
1606
|
+
CollectorS3SignatureVersion2,
|
|
1607
|
+
z.ZodTypeDef,
|
|
1608
|
+
unknown
|
|
1609
|
+
> = openEnums.inboundSchema(CollectorS3SignatureVersion2);
|
|
1610
|
+
/** @internal */
|
|
1611
|
+
export const CollectorS3SignatureVersion2$outboundSchema: z.ZodType<
|
|
1612
|
+
string,
|
|
1613
|
+
z.ZodTypeDef,
|
|
1614
|
+
CollectorS3SignatureVersion2
|
|
1615
|
+
> = openEnums.outboundSchema(CollectorS3SignatureVersion2);
|
|
1616
|
+
|
|
1617
|
+
/** @internal */
|
|
1618
|
+
export const CollectorS3S32$inboundSchema: z.ZodType<
|
|
1619
|
+
CollectorS3S32,
|
|
251
1620
|
z.ZodTypeDef,
|
|
252
1621
|
unknown
|
|
253
1622
|
> = z.object({
|
|
254
|
-
|
|
1623
|
+
partitioningScheme: PartitioningScheme2$inboundSchema.default("none"),
|
|
1624
|
+
recurse: z.boolean().default(true),
|
|
1625
|
+
type: CollectorS3Type2$inboundSchema,
|
|
255
1626
|
outputName: z.string().optional(),
|
|
256
1627
|
bucket: z.string(),
|
|
257
1628
|
parquetChunkSizeMB: z.number().default(5),
|
|
258
1629
|
parquetChunkDownloadTimeout: z.number().default(600),
|
|
259
1630
|
region: z.string().optional(),
|
|
260
1631
|
path: z.string().optional(),
|
|
261
|
-
|
|
262
|
-
extractors: z.array(z.lazy(() => CollectorS3Extractor$inboundSchema))
|
|
1632
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor2$inboundSchema))
|
|
263
1633
|
.optional(),
|
|
264
|
-
awsAuthenticationMethod:
|
|
1634
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod2$inboundSchema
|
|
265
1635
|
.default("auto"),
|
|
266
1636
|
endpoint: z.string().optional(),
|
|
267
|
-
signatureVersion:
|
|
1637
|
+
signatureVersion: CollectorS3SignatureVersion2$inboundSchema.default("v4"),
|
|
268
1638
|
enableAssumeRole: z.boolean().default(false),
|
|
269
1639
|
assumeRoleArn: z.string().optional(),
|
|
270
1640
|
assumeRoleExternalId: z.string().optional(),
|
|
271
1641
|
durationSeconds: z.number().default(3600),
|
|
272
1642
|
maxBatchSize: z.number().default(10),
|
|
273
|
-
recurse: z.any().optional(),
|
|
274
1643
|
reuseConnections: z.boolean().default(true),
|
|
275
1644
|
rejectUnauthorized: z.boolean().default(true),
|
|
276
1645
|
verifyPermissions: z.boolean().default(true),
|
|
277
1646
|
disableTimeFilter: z.boolean().default(false),
|
|
1647
|
+
awsApiKey: z.string().optional(),
|
|
1648
|
+
awsSecretKey: z.string().optional(),
|
|
1649
|
+
awsSecret: z.string().optional(),
|
|
278
1650
|
});
|
|
279
1651
|
/** @internal */
|
|
280
|
-
export type
|
|
281
|
-
|
|
1652
|
+
export type CollectorS3S32$Outbound = {
|
|
1653
|
+
partitioningScheme: string;
|
|
1654
|
+
recurse: boolean;
|
|
1655
|
+
type: string;
|
|
282
1656
|
outputName?: string | undefined;
|
|
283
1657
|
bucket: string;
|
|
284
1658
|
parquetChunkSizeMB: number;
|
|
285
1659
|
parquetChunkDownloadTimeout: number;
|
|
286
1660
|
region?: string | undefined;
|
|
287
1661
|
path?: string | undefined;
|
|
1662
|
+
extractors?: Array<CollectorS3Extractor2$Outbound> | undefined;
|
|
1663
|
+
awsAuthenticationMethod: string;
|
|
1664
|
+
endpoint?: string | undefined;
|
|
1665
|
+
signatureVersion: string;
|
|
1666
|
+
enableAssumeRole: boolean;
|
|
1667
|
+
assumeRoleArn?: string | undefined;
|
|
1668
|
+
assumeRoleExternalId?: string | undefined;
|
|
1669
|
+
durationSeconds: number;
|
|
1670
|
+
maxBatchSize: number;
|
|
1671
|
+
reuseConnections: boolean;
|
|
1672
|
+
rejectUnauthorized: boolean;
|
|
1673
|
+
verifyPermissions: boolean;
|
|
1674
|
+
disableTimeFilter: boolean;
|
|
1675
|
+
awsApiKey?: string | undefined;
|
|
1676
|
+
awsSecretKey?: string | undefined;
|
|
1677
|
+
awsSecret?: string | undefined;
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
/** @internal */
|
|
1681
|
+
export const CollectorS3S32$outboundSchema: z.ZodType<
|
|
1682
|
+
CollectorS3S32$Outbound,
|
|
1683
|
+
z.ZodTypeDef,
|
|
1684
|
+
CollectorS3S32
|
|
1685
|
+
> = z.object({
|
|
1686
|
+
partitioningScheme: PartitioningScheme2$outboundSchema.default("none"),
|
|
1687
|
+
recurse: z.boolean().default(true),
|
|
1688
|
+
type: CollectorS3Type2$outboundSchema,
|
|
1689
|
+
outputName: z.string().optional(),
|
|
1690
|
+
bucket: z.string(),
|
|
1691
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1692
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1693
|
+
region: z.string().optional(),
|
|
1694
|
+
path: z.string().optional(),
|
|
1695
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor2$outboundSchema))
|
|
1696
|
+
.optional(),
|
|
1697
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod2$outboundSchema
|
|
1698
|
+
.default("auto"),
|
|
1699
|
+
endpoint: z.string().optional(),
|
|
1700
|
+
signatureVersion: CollectorS3SignatureVersion2$outboundSchema.default("v4"),
|
|
1701
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1702
|
+
assumeRoleArn: z.string().optional(),
|
|
1703
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1704
|
+
durationSeconds: z.number().default(3600),
|
|
1705
|
+
maxBatchSize: z.number().default(10),
|
|
1706
|
+
reuseConnections: z.boolean().default(true),
|
|
1707
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1708
|
+
verifyPermissions: z.boolean().default(true),
|
|
1709
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1710
|
+
awsApiKey: z.string().optional(),
|
|
1711
|
+
awsSecretKey: z.string().optional(),
|
|
1712
|
+
awsSecret: z.string().optional(),
|
|
1713
|
+
});
|
|
1714
|
+
|
|
1715
|
+
export function collectorS3S32ToJSON(collectorS3S32: CollectorS3S32): string {
|
|
1716
|
+
return JSON.stringify(CollectorS3S32$outboundSchema.parse(collectorS3S32));
|
|
1717
|
+
}
|
|
1718
|
+
export function collectorS3S32FromJSON(
|
|
1719
|
+
jsonString: string,
|
|
1720
|
+
): SafeParseResult<CollectorS3S32, SDKValidationError> {
|
|
1721
|
+
return safeParse(
|
|
1722
|
+
jsonString,
|
|
1723
|
+
(x) => CollectorS3S32$inboundSchema.parse(JSON.parse(x)),
|
|
1724
|
+
`Failed to parse 'CollectorS3S32' from JSON`,
|
|
1725
|
+
);
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
/** @internal */
|
|
1729
|
+
export const PartitioningScheme1$inboundSchema: z.ZodType<
|
|
1730
|
+
PartitioningScheme1,
|
|
1731
|
+
z.ZodTypeDef,
|
|
1732
|
+
unknown
|
|
1733
|
+
> = openEnums.inboundSchema(PartitioningScheme1);
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export const PartitioningScheme1$outboundSchema: z.ZodType<
|
|
1736
|
+
string,
|
|
1737
|
+
z.ZodTypeDef,
|
|
1738
|
+
PartitioningScheme1
|
|
1739
|
+
> = openEnums.outboundSchema(PartitioningScheme1);
|
|
1740
|
+
|
|
1741
|
+
/** @internal */
|
|
1742
|
+
export const CollectorS3Type1$inboundSchema: z.ZodNativeEnum<
|
|
1743
|
+
typeof CollectorS3Type1
|
|
1744
|
+
> = z.nativeEnum(CollectorS3Type1);
|
|
1745
|
+
/** @internal */
|
|
1746
|
+
export const CollectorS3Type1$outboundSchema: z.ZodNativeEnum<
|
|
1747
|
+
typeof CollectorS3Type1
|
|
1748
|
+
> = CollectorS3Type1$inboundSchema;
|
|
1749
|
+
|
|
1750
|
+
/** @internal */
|
|
1751
|
+
export const CollectorS3Extractor1$inboundSchema: z.ZodType<
|
|
1752
|
+
CollectorS3Extractor1,
|
|
1753
|
+
z.ZodTypeDef,
|
|
1754
|
+
unknown
|
|
1755
|
+
> = z.object({
|
|
1756
|
+
key: z.string(),
|
|
1757
|
+
expression: z.string(),
|
|
1758
|
+
});
|
|
1759
|
+
/** @internal */
|
|
1760
|
+
export type CollectorS3Extractor1$Outbound = {
|
|
1761
|
+
key: string;
|
|
1762
|
+
expression: string;
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
/** @internal */
|
|
1766
|
+
export const CollectorS3Extractor1$outboundSchema: z.ZodType<
|
|
1767
|
+
CollectorS3Extractor1$Outbound,
|
|
1768
|
+
z.ZodTypeDef,
|
|
1769
|
+
CollectorS3Extractor1
|
|
1770
|
+
> = z.object({
|
|
1771
|
+
key: z.string(),
|
|
1772
|
+
expression: z.string(),
|
|
1773
|
+
});
|
|
1774
|
+
|
|
1775
|
+
export function collectorS3Extractor1ToJSON(
|
|
1776
|
+
collectorS3Extractor1: CollectorS3Extractor1,
|
|
1777
|
+
): string {
|
|
1778
|
+
return JSON.stringify(
|
|
1779
|
+
CollectorS3Extractor1$outboundSchema.parse(collectorS3Extractor1),
|
|
1780
|
+
);
|
|
1781
|
+
}
|
|
1782
|
+
export function collectorS3Extractor1FromJSON(
|
|
1783
|
+
jsonString: string,
|
|
1784
|
+
): SafeParseResult<CollectorS3Extractor1, SDKValidationError> {
|
|
1785
|
+
return safeParse(
|
|
1786
|
+
jsonString,
|
|
1787
|
+
(x) => CollectorS3Extractor1$inboundSchema.parse(JSON.parse(x)),
|
|
1788
|
+
`Failed to parse 'CollectorS3Extractor1' from JSON`,
|
|
1789
|
+
);
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/** @internal */
|
|
1793
|
+
export const CollectorS3AuthenticationMethod1$inboundSchema: z.ZodType<
|
|
1794
|
+
CollectorS3AuthenticationMethod1,
|
|
1795
|
+
z.ZodTypeDef,
|
|
1796
|
+
unknown
|
|
1797
|
+
> = openEnums.inboundSchema(CollectorS3AuthenticationMethod1);
|
|
1798
|
+
/** @internal */
|
|
1799
|
+
export const CollectorS3AuthenticationMethod1$outboundSchema: z.ZodType<
|
|
1800
|
+
string,
|
|
1801
|
+
z.ZodTypeDef,
|
|
1802
|
+
CollectorS3AuthenticationMethod1
|
|
1803
|
+
> = openEnums.outboundSchema(CollectorS3AuthenticationMethod1);
|
|
1804
|
+
|
|
1805
|
+
/** @internal */
|
|
1806
|
+
export const CollectorS3SignatureVersion1$inboundSchema: z.ZodType<
|
|
1807
|
+
CollectorS3SignatureVersion1,
|
|
1808
|
+
z.ZodTypeDef,
|
|
1809
|
+
unknown
|
|
1810
|
+
> = openEnums.inboundSchema(CollectorS3SignatureVersion1);
|
|
1811
|
+
/** @internal */
|
|
1812
|
+
export const CollectorS3SignatureVersion1$outboundSchema: z.ZodType<
|
|
1813
|
+
string,
|
|
1814
|
+
z.ZodTypeDef,
|
|
1815
|
+
CollectorS3SignatureVersion1
|
|
1816
|
+
> = openEnums.outboundSchema(CollectorS3SignatureVersion1);
|
|
1817
|
+
|
|
1818
|
+
/** @internal */
|
|
1819
|
+
export const CollectorS3S31$inboundSchema: z.ZodType<
|
|
1820
|
+
CollectorS3S31,
|
|
1821
|
+
z.ZodTypeDef,
|
|
1822
|
+
unknown
|
|
1823
|
+
> = z.object({
|
|
1824
|
+
partitioningScheme: PartitioningScheme1$inboundSchema.default("none"),
|
|
1825
|
+
type: CollectorS3Type1$inboundSchema,
|
|
1826
|
+
outputName: z.string().optional(),
|
|
1827
|
+
bucket: z.string(),
|
|
1828
|
+
parquetChunkSizeMB: z.number().default(5),
|
|
1829
|
+
parquetChunkDownloadTimeout: z.number().default(600),
|
|
1830
|
+
region: z.string().optional(),
|
|
1831
|
+
path: z.string().optional(),
|
|
1832
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor1$inboundSchema))
|
|
1833
|
+
.optional(),
|
|
1834
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod1$inboundSchema
|
|
1835
|
+
.default("auto"),
|
|
1836
|
+
endpoint: z.string().optional(),
|
|
1837
|
+
signatureVersion: CollectorS3SignatureVersion1$inboundSchema.default("v4"),
|
|
1838
|
+
enableAssumeRole: z.boolean().default(false),
|
|
1839
|
+
assumeRoleArn: z.string().optional(),
|
|
1840
|
+
assumeRoleExternalId: z.string().optional(),
|
|
1841
|
+
durationSeconds: z.number().default(3600),
|
|
1842
|
+
maxBatchSize: z.number().default(10),
|
|
1843
|
+
recurse: z.boolean().default(true),
|
|
1844
|
+
reuseConnections: z.boolean().default(true),
|
|
1845
|
+
rejectUnauthorized: z.boolean().default(true),
|
|
1846
|
+
verifyPermissions: z.boolean().default(true),
|
|
1847
|
+
disableTimeFilter: z.boolean().default(false),
|
|
1848
|
+
awsApiKey: z.string().optional(),
|
|
1849
|
+
awsSecretKey: z.string().optional(),
|
|
1850
|
+
awsSecret: z.string().optional(),
|
|
1851
|
+
});
|
|
1852
|
+
/** @internal */
|
|
1853
|
+
export type CollectorS3S31$Outbound = {
|
|
288
1854
|
partitioningScheme: string;
|
|
289
|
-
|
|
1855
|
+
type: string;
|
|
1856
|
+
outputName?: string | undefined;
|
|
1857
|
+
bucket: string;
|
|
1858
|
+
parquetChunkSizeMB: number;
|
|
1859
|
+
parquetChunkDownloadTimeout: number;
|
|
1860
|
+
region?: string | undefined;
|
|
1861
|
+
path?: string | undefined;
|
|
1862
|
+
extractors?: Array<CollectorS3Extractor1$Outbound> | undefined;
|
|
290
1863
|
awsAuthenticationMethod: string;
|
|
291
1864
|
endpoint?: string | undefined;
|
|
292
1865
|
signatureVersion: string;
|
|
@@ -295,45 +1868,97 @@ export type CollectorS3$Outbound = {
|
|
|
295
1868
|
assumeRoleExternalId?: string | undefined;
|
|
296
1869
|
durationSeconds: number;
|
|
297
1870
|
maxBatchSize: number;
|
|
298
|
-
recurse
|
|
1871
|
+
recurse: boolean;
|
|
299
1872
|
reuseConnections: boolean;
|
|
300
1873
|
rejectUnauthorized: boolean;
|
|
301
1874
|
verifyPermissions: boolean;
|
|
302
1875
|
disableTimeFilter: boolean;
|
|
1876
|
+
awsApiKey?: string | undefined;
|
|
1877
|
+
awsSecretKey?: string | undefined;
|
|
1878
|
+
awsSecret?: string | undefined;
|
|
303
1879
|
};
|
|
304
1880
|
|
|
305
1881
|
/** @internal */
|
|
306
|
-
export const
|
|
307
|
-
|
|
1882
|
+
export const CollectorS3S31$outboundSchema: z.ZodType<
|
|
1883
|
+
CollectorS3S31$Outbound,
|
|
308
1884
|
z.ZodTypeDef,
|
|
309
|
-
|
|
1885
|
+
CollectorS3S31
|
|
310
1886
|
> = z.object({
|
|
311
|
-
|
|
1887
|
+
partitioningScheme: PartitioningScheme1$outboundSchema.default("none"),
|
|
1888
|
+
type: CollectorS3Type1$outboundSchema,
|
|
312
1889
|
outputName: z.string().optional(),
|
|
313
1890
|
bucket: z.string(),
|
|
314
1891
|
parquetChunkSizeMB: z.number().default(5),
|
|
315
1892
|
parquetChunkDownloadTimeout: z.number().default(600),
|
|
316
1893
|
region: z.string().optional(),
|
|
317
1894
|
path: z.string().optional(),
|
|
318
|
-
|
|
319
|
-
extractors: z.array(z.lazy(() => CollectorS3Extractor$outboundSchema))
|
|
1895
|
+
extractors: z.array(z.lazy(() => CollectorS3Extractor1$outboundSchema))
|
|
320
1896
|
.optional(),
|
|
321
|
-
awsAuthenticationMethod:
|
|
1897
|
+
awsAuthenticationMethod: CollectorS3AuthenticationMethod1$outboundSchema
|
|
322
1898
|
.default("auto"),
|
|
323
1899
|
endpoint: z.string().optional(),
|
|
324
|
-
signatureVersion:
|
|
1900
|
+
signatureVersion: CollectorS3SignatureVersion1$outboundSchema.default("v4"),
|
|
325
1901
|
enableAssumeRole: z.boolean().default(false),
|
|
326
1902
|
assumeRoleArn: z.string().optional(),
|
|
327
1903
|
assumeRoleExternalId: z.string().optional(),
|
|
328
1904
|
durationSeconds: z.number().default(3600),
|
|
329
1905
|
maxBatchSize: z.number().default(10),
|
|
330
|
-
recurse: z.
|
|
1906
|
+
recurse: z.boolean().default(true),
|
|
331
1907
|
reuseConnections: z.boolean().default(true),
|
|
332
1908
|
rejectUnauthorized: z.boolean().default(true),
|
|
333
1909
|
verifyPermissions: z.boolean().default(true),
|
|
334
1910
|
disableTimeFilter: z.boolean().default(false),
|
|
1911
|
+
awsApiKey: z.string().optional(),
|
|
1912
|
+
awsSecretKey: z.string().optional(),
|
|
1913
|
+
awsSecret: z.string().optional(),
|
|
335
1914
|
});
|
|
336
1915
|
|
|
1916
|
+
export function collectorS3S31ToJSON(collectorS3S31: CollectorS3S31): string {
|
|
1917
|
+
return JSON.stringify(CollectorS3S31$outboundSchema.parse(collectorS3S31));
|
|
1918
|
+
}
|
|
1919
|
+
export function collectorS3S31FromJSON(
|
|
1920
|
+
jsonString: string,
|
|
1921
|
+
): SafeParseResult<CollectorS3S31, SDKValidationError> {
|
|
1922
|
+
return safeParse(
|
|
1923
|
+
jsonString,
|
|
1924
|
+
(x) => CollectorS3S31$inboundSchema.parse(JSON.parse(x)),
|
|
1925
|
+
`Failed to parse 'CollectorS3S31' from JSON`,
|
|
1926
|
+
);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/** @internal */
|
|
1930
|
+
export const CollectorS3$inboundSchema: z.ZodType<
|
|
1931
|
+
CollectorS3,
|
|
1932
|
+
z.ZodTypeDef,
|
|
1933
|
+
unknown
|
|
1934
|
+
> = z.union([
|
|
1935
|
+
z.lazy(() => CollectorS3S31$inboundSchema),
|
|
1936
|
+
z.lazy(() => CollectorS3S32$inboundSchema),
|
|
1937
|
+
z.lazy(() => CollectorS3S33$inboundSchema),
|
|
1938
|
+
z.lazy(() => CollectorS3S34$inboundSchema),
|
|
1939
|
+
z.lazy(() => CollectorS3S35$inboundSchema),
|
|
1940
|
+
]);
|
|
1941
|
+
/** @internal */
|
|
1942
|
+
export type CollectorS3$Outbound =
|
|
1943
|
+
| CollectorS3S31$Outbound
|
|
1944
|
+
| CollectorS3S32$Outbound
|
|
1945
|
+
| CollectorS3S33$Outbound
|
|
1946
|
+
| CollectorS3S34$Outbound
|
|
1947
|
+
| CollectorS3S35$Outbound;
|
|
1948
|
+
|
|
1949
|
+
/** @internal */
|
|
1950
|
+
export const CollectorS3$outboundSchema: z.ZodType<
|
|
1951
|
+
CollectorS3$Outbound,
|
|
1952
|
+
z.ZodTypeDef,
|
|
1953
|
+
CollectorS3
|
|
1954
|
+
> = z.union([
|
|
1955
|
+
z.lazy(() => CollectorS3S31$outboundSchema),
|
|
1956
|
+
z.lazy(() => CollectorS3S32$outboundSchema),
|
|
1957
|
+
z.lazy(() => CollectorS3S33$outboundSchema),
|
|
1958
|
+
z.lazy(() => CollectorS3S34$outboundSchema),
|
|
1959
|
+
z.lazy(() => CollectorS3S35$outboundSchema),
|
|
1960
|
+
]);
|
|
1961
|
+
|
|
337
1962
|
export function collectorS3ToJSON(collectorS3: CollectorS3): string {
|
|
338
1963
|
return JSON.stringify(CollectorS3$outboundSchema.parse(collectorS3));
|
|
339
1964
|
}
|