@aws-sdk/client-kinesis-analytics 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/KinesisAnalytics.js +0 -13
- package/dist-cjs/KinesisAnalyticsClient.js +0 -18
- package/dist-cjs/commands/AddApplicationCloudWatchLoggingOptionCommand.js +0 -31
- package/dist-cjs/commands/AddApplicationInputCommand.js +0 -41
- package/dist-cjs/commands/AddApplicationInputProcessingConfigurationCommand.js +0 -30
- package/dist-cjs/commands/AddApplicationOutputCommand.js +0 -44
- package/dist-cjs/commands/AddApplicationReferenceDataSourceCommand.js +0 -38
- package/dist-cjs/commands/CreateApplicationCommand.js +0 -51
- package/dist-cjs/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +0 -30
- package/dist-cjs/commands/DeleteApplicationCommand.js +0 -30
- package/dist-cjs/commands/DeleteApplicationInputProcessingConfigurationCommand.js +0 -28
- package/dist-cjs/commands/DeleteApplicationOutputCommand.js +0 -30
- package/dist-cjs/commands/DeleteApplicationReferenceDataSourceCommand.js +0 -33
- package/dist-cjs/commands/DescribeApplicationCommand.js +0 -34
- package/dist-cjs/commands/DiscoverInputSchemaCommand.js +0 -39
- package/dist-cjs/commands/ListApplicationsCommand.js +0 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/StartApplicationCommand.js +0 -36
- package/dist-cjs/commands/StopApplicationCommand.js +0 -35
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateApplicationCommand.js +0 -34
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -23
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -316
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/KinesisAnalytics.js +0 -1
- package/dist-es/KinesisAnalyticsClient.js +0 -1
- package/dist-es/commands/AddApplicationCloudWatchLoggingOptionCommand.js +0 -1
- package/dist-es/commands/AddApplicationInputCommand.js +0 -1
- package/dist-es/commands/AddApplicationInputProcessingConfigurationCommand.js +0 -1
- package/dist-es/commands/AddApplicationOutputCommand.js +0 -1
- package/dist-es/commands/AddApplicationReferenceDataSourceCommand.js +0 -1
- package/dist-es/commands/CreateApplicationCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationInputProcessingConfigurationCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationOutputCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationReferenceDataSourceCommand.js +0 -1
- package/dist-es/commands/DescribeApplicationCommand.js +0 -1
- package/dist-es/commands/DiscoverInputSchemaCommand.js +0 -1
- package/dist-es/commands/ListApplicationsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/StartApplicationCommand.js +0 -1
- package/dist-es/commands/StopApplicationCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js +0 -1
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -23
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/index.d.ts +3 -22
- package/dist-types/ts3.4/KinesisAnalytics.d.ts +21 -253
- package/dist-types/ts3.4/KinesisAnalyticsClient.d.ts +24 -98
- package/dist-types/ts3.4/commands/AddApplicationCloudWatchLoggingOptionCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/AddApplicationInputCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/AddApplicationInputProcessingConfigurationCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/AddApplicationOutputCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/AddApplicationReferenceDataSourceCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/DeleteApplicationCloudWatchLoggingOptionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteApplicationInputProcessingConfigurationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteApplicationOutputCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteApplicationReferenceDataSourceCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeApplicationCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DiscoverInputSchemaCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/index.d.ts +3 -22
- package/dist-types/ts3.4/models/models_0.d.ts +416 -1552
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/KinesisAnalytics.js.map +0 -1
- package/dist-cjs/KinesisAnalyticsClient.js.map +0 -1
- package/dist-cjs/commands/AddApplicationCloudWatchLoggingOptionCommand.js.map +0 -1
- package/dist-cjs/commands/AddApplicationInputCommand.js.map +0 -1
- package/dist-cjs/commands/AddApplicationInputProcessingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/AddApplicationOutputCommand.js.map +0 -1
- package/dist-cjs/commands/AddApplicationReferenceDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationInputProcessingConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationOutputCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationReferenceDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DiscoverInputSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/StartApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/StopApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/KinesisAnalytics.js.map +0 -1
- package/dist-es/KinesisAnalyticsClient.js.map +0 -1
- package/dist-es/commands/AddApplicationCloudWatchLoggingOptionCommand.js.map +0 -1
- package/dist-es/commands/AddApplicationInputCommand.js.map +0 -1
- package/dist-es/commands/AddApplicationInputProcessingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/AddApplicationOutputCommand.js.map +0 -1
- package/dist-es/commands/AddApplicationReferenceDataSourceCommand.js.map +0 -1
- package/dist-es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationInputProcessingConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationOutputCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationReferenceDataSourceCommand.js.map +0 -1
- package/dist-es/commands/DescribeApplicationCommand.js.map +0 -1
- package/dist-es/commands/DiscoverInputSchemaCommand.js.map +0 -1
- package/dist-es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/StartApplicationCommand.js.map +0 -1
- package/dist-es/commands/StopApplicationCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/KinesisAnalytics.ts +0 -936
- package/src/KinesisAnalyticsClient.ts +0 -341
- package/src/commands/AddApplicationCloudWatchLoggingOptionCommand.ts +0 -113
- package/src/commands/AddApplicationInputCommand.ts +0 -111
- package/src/commands/AddApplicationInputProcessingConfigurationCommand.ts +0 -115
- package/src/commands/AddApplicationOutputCommand.ts +0 -114
- package/src/commands/AddApplicationReferenceDataSourceCommand.ts +0 -119
- package/src/commands/CreateApplicationCommand.ts +0 -121
- package/src/commands/DeleteApplicationCloudWatchLoggingOptionCommand.ts +0 -115
- package/src/commands/DeleteApplicationCommand.ts +0 -100
- package/src/commands/DeleteApplicationInputProcessingConfigurationCommand.ts +0 -113
- package/src/commands/DeleteApplicationOutputCommand.ts +0 -100
- package/src/commands/DeleteApplicationReferenceDataSourceCommand.ts +0 -114
- package/src/commands/DescribeApplicationCommand.ts +0 -104
- package/src/commands/DiscoverInputSchemaCommand.ts +0 -109
- package/src/commands/ListApplicationsCommand.ts +0 -111
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/StartApplicationCommand.ts +0 -106
- package/src/commands/StopApplicationCommand.ts +0 -105
- package/src/commands/TagResourceCommand.ts +0 -96
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateApplicationCommand.ts +0 -104
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -23
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2899
- package/src/protocols/Aws_json1_1.ts +0 -3943
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,3943 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import {
|
|
3
|
-
expectBoolean as __expectBoolean,
|
|
4
|
-
expectInt32 as __expectInt32,
|
|
5
|
-
expectLong as __expectLong,
|
|
6
|
-
expectNonNull as __expectNonNull,
|
|
7
|
-
expectNumber as __expectNumber,
|
|
8
|
-
expectString as __expectString,
|
|
9
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
10
|
-
} from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
12
|
-
Endpoint as __Endpoint,
|
|
13
|
-
HeaderBag as __HeaderBag,
|
|
14
|
-
MetadataBearer as __MetadataBearer,
|
|
15
|
-
ResponseMetadata as __ResponseMetadata,
|
|
16
|
-
SerdeContext as __SerdeContext,
|
|
17
|
-
SmithyException as __SmithyException,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
AddApplicationCloudWatchLoggingOptionCommandInput,
|
|
22
|
-
AddApplicationCloudWatchLoggingOptionCommandOutput,
|
|
23
|
-
} from "../commands/AddApplicationCloudWatchLoggingOptionCommand";
|
|
24
|
-
import {
|
|
25
|
-
AddApplicationInputCommandInput,
|
|
26
|
-
AddApplicationInputCommandOutput,
|
|
27
|
-
} from "../commands/AddApplicationInputCommand";
|
|
28
|
-
import {
|
|
29
|
-
AddApplicationInputProcessingConfigurationCommandInput,
|
|
30
|
-
AddApplicationInputProcessingConfigurationCommandOutput,
|
|
31
|
-
} from "../commands/AddApplicationInputProcessingConfigurationCommand";
|
|
32
|
-
import {
|
|
33
|
-
AddApplicationOutputCommandInput,
|
|
34
|
-
AddApplicationOutputCommandOutput,
|
|
35
|
-
} from "../commands/AddApplicationOutputCommand";
|
|
36
|
-
import {
|
|
37
|
-
AddApplicationReferenceDataSourceCommandInput,
|
|
38
|
-
AddApplicationReferenceDataSourceCommandOutput,
|
|
39
|
-
} from "../commands/AddApplicationReferenceDataSourceCommand";
|
|
40
|
-
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
|
|
41
|
-
import {
|
|
42
|
-
DeleteApplicationCloudWatchLoggingOptionCommandInput,
|
|
43
|
-
DeleteApplicationCloudWatchLoggingOptionCommandOutput,
|
|
44
|
-
} from "../commands/DeleteApplicationCloudWatchLoggingOptionCommand";
|
|
45
|
-
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "../commands/DeleteApplicationCommand";
|
|
46
|
-
import {
|
|
47
|
-
DeleteApplicationInputProcessingConfigurationCommandInput,
|
|
48
|
-
DeleteApplicationInputProcessingConfigurationCommandOutput,
|
|
49
|
-
} from "../commands/DeleteApplicationInputProcessingConfigurationCommand";
|
|
50
|
-
import {
|
|
51
|
-
DeleteApplicationOutputCommandInput,
|
|
52
|
-
DeleteApplicationOutputCommandOutput,
|
|
53
|
-
} from "../commands/DeleteApplicationOutputCommand";
|
|
54
|
-
import {
|
|
55
|
-
DeleteApplicationReferenceDataSourceCommandInput,
|
|
56
|
-
DeleteApplicationReferenceDataSourceCommandOutput,
|
|
57
|
-
} from "../commands/DeleteApplicationReferenceDataSourceCommand";
|
|
58
|
-
import {
|
|
59
|
-
DescribeApplicationCommandInput,
|
|
60
|
-
DescribeApplicationCommandOutput,
|
|
61
|
-
} from "../commands/DescribeApplicationCommand";
|
|
62
|
-
import {
|
|
63
|
-
DiscoverInputSchemaCommandInput,
|
|
64
|
-
DiscoverInputSchemaCommandOutput,
|
|
65
|
-
} from "../commands/DiscoverInputSchemaCommand";
|
|
66
|
-
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../commands/ListApplicationsCommand";
|
|
67
|
-
import {
|
|
68
|
-
ListTagsForResourceCommandInput,
|
|
69
|
-
ListTagsForResourceCommandOutput,
|
|
70
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
71
|
-
import { StartApplicationCommandInput, StartApplicationCommandOutput } from "../commands/StartApplicationCommand";
|
|
72
|
-
import { StopApplicationCommandInput, StopApplicationCommandOutput } from "../commands/StopApplicationCommand";
|
|
73
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
74
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
75
|
-
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "../commands/UpdateApplicationCommand";
|
|
76
|
-
import {
|
|
77
|
-
AddApplicationCloudWatchLoggingOptionRequest,
|
|
78
|
-
AddApplicationCloudWatchLoggingOptionResponse,
|
|
79
|
-
AddApplicationInputProcessingConfigurationRequest,
|
|
80
|
-
AddApplicationInputProcessingConfigurationResponse,
|
|
81
|
-
AddApplicationInputRequest,
|
|
82
|
-
AddApplicationInputResponse,
|
|
83
|
-
AddApplicationOutputRequest,
|
|
84
|
-
AddApplicationOutputResponse,
|
|
85
|
-
AddApplicationReferenceDataSourceRequest,
|
|
86
|
-
AddApplicationReferenceDataSourceResponse,
|
|
87
|
-
ApplicationDetail,
|
|
88
|
-
ApplicationSummary,
|
|
89
|
-
ApplicationUpdate,
|
|
90
|
-
CloudWatchLoggingOption,
|
|
91
|
-
CloudWatchLoggingOptionDescription,
|
|
92
|
-
CloudWatchLoggingOptionUpdate,
|
|
93
|
-
CodeValidationException,
|
|
94
|
-
ConcurrentModificationException,
|
|
95
|
-
CreateApplicationRequest,
|
|
96
|
-
CreateApplicationResponse,
|
|
97
|
-
CSVMappingParameters,
|
|
98
|
-
DeleteApplicationCloudWatchLoggingOptionRequest,
|
|
99
|
-
DeleteApplicationCloudWatchLoggingOptionResponse,
|
|
100
|
-
DeleteApplicationInputProcessingConfigurationRequest,
|
|
101
|
-
DeleteApplicationInputProcessingConfigurationResponse,
|
|
102
|
-
DeleteApplicationOutputRequest,
|
|
103
|
-
DeleteApplicationOutputResponse,
|
|
104
|
-
DeleteApplicationReferenceDataSourceRequest,
|
|
105
|
-
DeleteApplicationReferenceDataSourceResponse,
|
|
106
|
-
DeleteApplicationRequest,
|
|
107
|
-
DeleteApplicationResponse,
|
|
108
|
-
DescribeApplicationRequest,
|
|
109
|
-
DescribeApplicationResponse,
|
|
110
|
-
DestinationSchema,
|
|
111
|
-
DiscoverInputSchemaRequest,
|
|
112
|
-
DiscoverInputSchemaResponse,
|
|
113
|
-
Input,
|
|
114
|
-
InputConfiguration,
|
|
115
|
-
InputDescription,
|
|
116
|
-
InputLambdaProcessor,
|
|
117
|
-
InputLambdaProcessorDescription,
|
|
118
|
-
InputLambdaProcessorUpdate,
|
|
119
|
-
InputParallelism,
|
|
120
|
-
InputParallelismUpdate,
|
|
121
|
-
InputProcessingConfiguration,
|
|
122
|
-
InputProcessingConfigurationDescription,
|
|
123
|
-
InputProcessingConfigurationUpdate,
|
|
124
|
-
InputSchemaUpdate,
|
|
125
|
-
InputStartingPositionConfiguration,
|
|
126
|
-
InputUpdate,
|
|
127
|
-
InvalidApplicationConfigurationException,
|
|
128
|
-
InvalidArgumentException,
|
|
129
|
-
JSONMappingParameters,
|
|
130
|
-
KinesisFirehoseInput,
|
|
131
|
-
KinesisFirehoseInputDescription,
|
|
132
|
-
KinesisFirehoseInputUpdate,
|
|
133
|
-
KinesisFirehoseOutput,
|
|
134
|
-
KinesisFirehoseOutputDescription,
|
|
135
|
-
KinesisFirehoseOutputUpdate,
|
|
136
|
-
KinesisStreamsInput,
|
|
137
|
-
KinesisStreamsInputDescription,
|
|
138
|
-
KinesisStreamsInputUpdate,
|
|
139
|
-
KinesisStreamsOutput,
|
|
140
|
-
KinesisStreamsOutputDescription,
|
|
141
|
-
KinesisStreamsOutputUpdate,
|
|
142
|
-
LambdaOutput,
|
|
143
|
-
LambdaOutputDescription,
|
|
144
|
-
LambdaOutputUpdate,
|
|
145
|
-
LimitExceededException,
|
|
146
|
-
ListApplicationsRequest,
|
|
147
|
-
ListApplicationsResponse,
|
|
148
|
-
ListTagsForResourceRequest,
|
|
149
|
-
ListTagsForResourceResponse,
|
|
150
|
-
MappingParameters,
|
|
151
|
-
Output,
|
|
152
|
-
OutputDescription,
|
|
153
|
-
OutputUpdate,
|
|
154
|
-
RecordColumn,
|
|
155
|
-
RecordFormat,
|
|
156
|
-
ReferenceDataSource,
|
|
157
|
-
ReferenceDataSourceDescription,
|
|
158
|
-
ReferenceDataSourceUpdate,
|
|
159
|
-
ResourceInUseException,
|
|
160
|
-
ResourceNotFoundException,
|
|
161
|
-
ResourceProvisionedThroughputExceededException,
|
|
162
|
-
S3Configuration,
|
|
163
|
-
S3ReferenceDataSource,
|
|
164
|
-
S3ReferenceDataSourceDescription,
|
|
165
|
-
S3ReferenceDataSourceUpdate,
|
|
166
|
-
ServiceUnavailableException,
|
|
167
|
-
SourceSchema,
|
|
168
|
-
StartApplicationRequest,
|
|
169
|
-
StartApplicationResponse,
|
|
170
|
-
StopApplicationRequest,
|
|
171
|
-
StopApplicationResponse,
|
|
172
|
-
Tag,
|
|
173
|
-
TagResourceRequest,
|
|
174
|
-
TagResourceResponse,
|
|
175
|
-
TooManyTagsException,
|
|
176
|
-
UnableToDetectSchemaException,
|
|
177
|
-
UnsupportedOperationException,
|
|
178
|
-
UntagResourceRequest,
|
|
179
|
-
UntagResourceResponse,
|
|
180
|
-
UpdateApplicationRequest,
|
|
181
|
-
UpdateApplicationResponse,
|
|
182
|
-
} from "../models/models_0";
|
|
183
|
-
|
|
184
|
-
export const serializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = async (
|
|
185
|
-
input: AddApplicationCloudWatchLoggingOptionCommandInput,
|
|
186
|
-
context: __SerdeContext
|
|
187
|
-
): Promise<__HttpRequest> => {
|
|
188
|
-
const headers: __HeaderBag = {
|
|
189
|
-
"content-type": "application/x-amz-json-1.1",
|
|
190
|
-
"x-amz-target": "KinesisAnalytics_20150814.AddApplicationCloudWatchLoggingOption",
|
|
191
|
-
};
|
|
192
|
-
let body: any;
|
|
193
|
-
body = JSON.stringify(serializeAws_json1_1AddApplicationCloudWatchLoggingOptionRequest(input, context));
|
|
194
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
export const serializeAws_json1_1AddApplicationInputCommand = async (
|
|
198
|
-
input: AddApplicationInputCommandInput,
|
|
199
|
-
context: __SerdeContext
|
|
200
|
-
): Promise<__HttpRequest> => {
|
|
201
|
-
const headers: __HeaderBag = {
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "KinesisAnalytics_20150814.AddApplicationInput",
|
|
204
|
-
};
|
|
205
|
-
let body: any;
|
|
206
|
-
body = JSON.stringify(serializeAws_json1_1AddApplicationInputRequest(input, context));
|
|
207
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export const serializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = async (
|
|
211
|
-
input: AddApplicationInputProcessingConfigurationCommandInput,
|
|
212
|
-
context: __SerdeContext
|
|
213
|
-
): Promise<__HttpRequest> => {
|
|
214
|
-
const headers: __HeaderBag = {
|
|
215
|
-
"content-type": "application/x-amz-json-1.1",
|
|
216
|
-
"x-amz-target": "KinesisAnalytics_20150814.AddApplicationInputProcessingConfiguration",
|
|
217
|
-
};
|
|
218
|
-
let body: any;
|
|
219
|
-
body = JSON.stringify(serializeAws_json1_1AddApplicationInputProcessingConfigurationRequest(input, context));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export const serializeAws_json1_1AddApplicationOutputCommand = async (
|
|
224
|
-
input: AddApplicationOutputCommandInput,
|
|
225
|
-
context: __SerdeContext
|
|
226
|
-
): Promise<__HttpRequest> => {
|
|
227
|
-
const headers: __HeaderBag = {
|
|
228
|
-
"content-type": "application/x-amz-json-1.1",
|
|
229
|
-
"x-amz-target": "KinesisAnalytics_20150814.AddApplicationOutput",
|
|
230
|
-
};
|
|
231
|
-
let body: any;
|
|
232
|
-
body = JSON.stringify(serializeAws_json1_1AddApplicationOutputRequest(input, context));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export const serializeAws_json1_1AddApplicationReferenceDataSourceCommand = async (
|
|
237
|
-
input: AddApplicationReferenceDataSourceCommandInput,
|
|
238
|
-
context: __SerdeContext
|
|
239
|
-
): Promise<__HttpRequest> => {
|
|
240
|
-
const headers: __HeaderBag = {
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "KinesisAnalytics_20150814.AddApplicationReferenceDataSource",
|
|
243
|
-
};
|
|
244
|
-
let body: any;
|
|
245
|
-
body = JSON.stringify(serializeAws_json1_1AddApplicationReferenceDataSourceRequest(input, context));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
export const serializeAws_json1_1CreateApplicationCommand = async (
|
|
250
|
-
input: CreateApplicationCommandInput,
|
|
251
|
-
context: __SerdeContext
|
|
252
|
-
): Promise<__HttpRequest> => {
|
|
253
|
-
const headers: __HeaderBag = {
|
|
254
|
-
"content-type": "application/x-amz-json-1.1",
|
|
255
|
-
"x-amz-target": "KinesisAnalytics_20150814.CreateApplication",
|
|
256
|
-
};
|
|
257
|
-
let body: any;
|
|
258
|
-
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
export const serializeAws_json1_1DeleteApplicationCommand = async (
|
|
263
|
-
input: DeleteApplicationCommandInput,
|
|
264
|
-
context: __SerdeContext
|
|
265
|
-
): Promise<__HttpRequest> => {
|
|
266
|
-
const headers: __HeaderBag = {
|
|
267
|
-
"content-type": "application/x-amz-json-1.1",
|
|
268
|
-
"x-amz-target": "KinesisAnalytics_20150814.DeleteApplication",
|
|
269
|
-
};
|
|
270
|
-
let body: any;
|
|
271
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
272
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
export const serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = async (
|
|
276
|
-
input: DeleteApplicationCloudWatchLoggingOptionCommandInput,
|
|
277
|
-
context: __SerdeContext
|
|
278
|
-
): Promise<__HttpRequest> => {
|
|
279
|
-
const headers: __HeaderBag = {
|
|
280
|
-
"content-type": "application/x-amz-json-1.1",
|
|
281
|
-
"x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationCloudWatchLoggingOption",
|
|
282
|
-
};
|
|
283
|
-
let body: any;
|
|
284
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionRequest(input, context));
|
|
285
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
export const serializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = async (
|
|
289
|
-
input: DeleteApplicationInputProcessingConfigurationCommandInput,
|
|
290
|
-
context: __SerdeContext
|
|
291
|
-
): Promise<__HttpRequest> => {
|
|
292
|
-
const headers: __HeaderBag = {
|
|
293
|
-
"content-type": "application/x-amz-json-1.1",
|
|
294
|
-
"x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationInputProcessingConfiguration",
|
|
295
|
-
};
|
|
296
|
-
let body: any;
|
|
297
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationInputProcessingConfigurationRequest(input, context));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
export const serializeAws_json1_1DeleteApplicationOutputCommand = async (
|
|
302
|
-
input: DeleteApplicationOutputCommandInput,
|
|
303
|
-
context: __SerdeContext
|
|
304
|
-
): Promise<__HttpRequest> => {
|
|
305
|
-
const headers: __HeaderBag = {
|
|
306
|
-
"content-type": "application/x-amz-json-1.1",
|
|
307
|
-
"x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationOutput",
|
|
308
|
-
};
|
|
309
|
-
let body: any;
|
|
310
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationOutputRequest(input, context));
|
|
311
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export const serializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = async (
|
|
315
|
-
input: DeleteApplicationReferenceDataSourceCommandInput,
|
|
316
|
-
context: __SerdeContext
|
|
317
|
-
): Promise<__HttpRequest> => {
|
|
318
|
-
const headers: __HeaderBag = {
|
|
319
|
-
"content-type": "application/x-amz-json-1.1",
|
|
320
|
-
"x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationReferenceDataSource",
|
|
321
|
-
};
|
|
322
|
-
let body: any;
|
|
323
|
-
body = JSON.stringify(serializeAws_json1_1DeleteApplicationReferenceDataSourceRequest(input, context));
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
export const serializeAws_json1_1DescribeApplicationCommand = async (
|
|
328
|
-
input: DescribeApplicationCommandInput,
|
|
329
|
-
context: __SerdeContext
|
|
330
|
-
): Promise<__HttpRequest> => {
|
|
331
|
-
const headers: __HeaderBag = {
|
|
332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
333
|
-
"x-amz-target": "KinesisAnalytics_20150814.DescribeApplication",
|
|
334
|
-
};
|
|
335
|
-
let body: any;
|
|
336
|
-
body = JSON.stringify(serializeAws_json1_1DescribeApplicationRequest(input, context));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
export const serializeAws_json1_1DiscoverInputSchemaCommand = async (
|
|
341
|
-
input: DiscoverInputSchemaCommandInput,
|
|
342
|
-
context: __SerdeContext
|
|
343
|
-
): Promise<__HttpRequest> => {
|
|
344
|
-
const headers: __HeaderBag = {
|
|
345
|
-
"content-type": "application/x-amz-json-1.1",
|
|
346
|
-
"x-amz-target": "KinesisAnalytics_20150814.DiscoverInputSchema",
|
|
347
|
-
};
|
|
348
|
-
let body: any;
|
|
349
|
-
body = JSON.stringify(serializeAws_json1_1DiscoverInputSchemaRequest(input, context));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
export const serializeAws_json1_1ListApplicationsCommand = async (
|
|
354
|
-
input: ListApplicationsCommandInput,
|
|
355
|
-
context: __SerdeContext
|
|
356
|
-
): Promise<__HttpRequest> => {
|
|
357
|
-
const headers: __HeaderBag = {
|
|
358
|
-
"content-type": "application/x-amz-json-1.1",
|
|
359
|
-
"x-amz-target": "KinesisAnalytics_20150814.ListApplications",
|
|
360
|
-
};
|
|
361
|
-
let body: any;
|
|
362
|
-
body = JSON.stringify(serializeAws_json1_1ListApplicationsRequest(input, context));
|
|
363
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
367
|
-
input: ListTagsForResourceCommandInput,
|
|
368
|
-
context: __SerdeContext
|
|
369
|
-
): Promise<__HttpRequest> => {
|
|
370
|
-
const headers: __HeaderBag = {
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "KinesisAnalytics_20150814.ListTagsForResource",
|
|
373
|
-
};
|
|
374
|
-
let body: any;
|
|
375
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
376
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
export const serializeAws_json1_1StartApplicationCommand = async (
|
|
380
|
-
input: StartApplicationCommandInput,
|
|
381
|
-
context: __SerdeContext
|
|
382
|
-
): Promise<__HttpRequest> => {
|
|
383
|
-
const headers: __HeaderBag = {
|
|
384
|
-
"content-type": "application/x-amz-json-1.1",
|
|
385
|
-
"x-amz-target": "KinesisAnalytics_20150814.StartApplication",
|
|
386
|
-
};
|
|
387
|
-
let body: any;
|
|
388
|
-
body = JSON.stringify(serializeAws_json1_1StartApplicationRequest(input, context));
|
|
389
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
export const serializeAws_json1_1StopApplicationCommand = async (
|
|
393
|
-
input: StopApplicationCommandInput,
|
|
394
|
-
context: __SerdeContext
|
|
395
|
-
): Promise<__HttpRequest> => {
|
|
396
|
-
const headers: __HeaderBag = {
|
|
397
|
-
"content-type": "application/x-amz-json-1.1",
|
|
398
|
-
"x-amz-target": "KinesisAnalytics_20150814.StopApplication",
|
|
399
|
-
};
|
|
400
|
-
let body: any;
|
|
401
|
-
body = JSON.stringify(serializeAws_json1_1StopApplicationRequest(input, context));
|
|
402
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
406
|
-
input: TagResourceCommandInput,
|
|
407
|
-
context: __SerdeContext
|
|
408
|
-
): Promise<__HttpRequest> => {
|
|
409
|
-
const headers: __HeaderBag = {
|
|
410
|
-
"content-type": "application/x-amz-json-1.1",
|
|
411
|
-
"x-amz-target": "KinesisAnalytics_20150814.TagResource",
|
|
412
|
-
};
|
|
413
|
-
let body: any;
|
|
414
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
415
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
419
|
-
input: UntagResourceCommandInput,
|
|
420
|
-
context: __SerdeContext
|
|
421
|
-
): Promise<__HttpRequest> => {
|
|
422
|
-
const headers: __HeaderBag = {
|
|
423
|
-
"content-type": "application/x-amz-json-1.1",
|
|
424
|
-
"x-amz-target": "KinesisAnalytics_20150814.UntagResource",
|
|
425
|
-
};
|
|
426
|
-
let body: any;
|
|
427
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
export const serializeAws_json1_1UpdateApplicationCommand = async (
|
|
432
|
-
input: UpdateApplicationCommandInput,
|
|
433
|
-
context: __SerdeContext
|
|
434
|
-
): Promise<__HttpRequest> => {
|
|
435
|
-
const headers: __HeaderBag = {
|
|
436
|
-
"content-type": "application/x-amz-json-1.1",
|
|
437
|
-
"x-amz-target": "KinesisAnalytics_20150814.UpdateApplication",
|
|
438
|
-
};
|
|
439
|
-
let body: any;
|
|
440
|
-
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
export const deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = async (
|
|
445
|
-
output: __HttpResponse,
|
|
446
|
-
context: __SerdeContext
|
|
447
|
-
): Promise<AddApplicationCloudWatchLoggingOptionCommandOutput> => {
|
|
448
|
-
if (output.statusCode >= 300) {
|
|
449
|
-
return deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError(output, context);
|
|
450
|
-
}
|
|
451
|
-
const data: any = await parseBody(output.body, context);
|
|
452
|
-
let contents: any = {};
|
|
453
|
-
contents = deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionResponse(data, context);
|
|
454
|
-
const response: AddApplicationCloudWatchLoggingOptionCommandOutput = {
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
...contents,
|
|
457
|
-
};
|
|
458
|
-
return Promise.resolve(response);
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
const deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError = async (
|
|
462
|
-
output: __HttpResponse,
|
|
463
|
-
context: __SerdeContext
|
|
464
|
-
): Promise<AddApplicationCloudWatchLoggingOptionCommandOutput> => {
|
|
465
|
-
const parsedOutput: any = {
|
|
466
|
-
...output,
|
|
467
|
-
body: await parseBody(output.body, context),
|
|
468
|
-
};
|
|
469
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
470
|
-
let errorCode = "UnknownError";
|
|
471
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
-
switch (errorCode) {
|
|
473
|
-
case "ConcurrentModificationException":
|
|
474
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
475
|
-
response = {
|
|
476
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
477
|
-
name: errorCode,
|
|
478
|
-
$metadata: deserializeMetadata(output),
|
|
479
|
-
};
|
|
480
|
-
break;
|
|
481
|
-
case "InvalidArgumentException":
|
|
482
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
483
|
-
response = {
|
|
484
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
485
|
-
name: errorCode,
|
|
486
|
-
$metadata: deserializeMetadata(output),
|
|
487
|
-
};
|
|
488
|
-
break;
|
|
489
|
-
case "ResourceInUseException":
|
|
490
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
491
|
-
response = {
|
|
492
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
493
|
-
name: errorCode,
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
};
|
|
496
|
-
break;
|
|
497
|
-
case "ResourceNotFoundException":
|
|
498
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
499
|
-
response = {
|
|
500
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
501
|
-
name: errorCode,
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
};
|
|
504
|
-
break;
|
|
505
|
-
case "UnsupportedOperationException":
|
|
506
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
507
|
-
response = {
|
|
508
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
509
|
-
name: errorCode,
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
};
|
|
512
|
-
break;
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
516
|
-
response = {
|
|
517
|
-
...parsedBody,
|
|
518
|
-
name: `${errorCode}`,
|
|
519
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
520
|
-
$fault: "client",
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
} as any;
|
|
523
|
-
}
|
|
524
|
-
const message = response.message || response.Message || errorCode;
|
|
525
|
-
response.message = message;
|
|
526
|
-
delete response.Message;
|
|
527
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
export const deserializeAws_json1_1AddApplicationInputCommand = async (
|
|
531
|
-
output: __HttpResponse,
|
|
532
|
-
context: __SerdeContext
|
|
533
|
-
): Promise<AddApplicationInputCommandOutput> => {
|
|
534
|
-
if (output.statusCode >= 300) {
|
|
535
|
-
return deserializeAws_json1_1AddApplicationInputCommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
const data: any = await parseBody(output.body, context);
|
|
538
|
-
let contents: any = {};
|
|
539
|
-
contents = deserializeAws_json1_1AddApplicationInputResponse(data, context);
|
|
540
|
-
const response: AddApplicationInputCommandOutput = {
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
...contents,
|
|
543
|
-
};
|
|
544
|
-
return Promise.resolve(response);
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
const deserializeAws_json1_1AddApplicationInputCommandError = async (
|
|
548
|
-
output: __HttpResponse,
|
|
549
|
-
context: __SerdeContext
|
|
550
|
-
): Promise<AddApplicationInputCommandOutput> => {
|
|
551
|
-
const parsedOutput: any = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
556
|
-
let errorCode = "UnknownError";
|
|
557
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
-
switch (errorCode) {
|
|
559
|
-
case "CodeValidationException":
|
|
560
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
561
|
-
response = {
|
|
562
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
563
|
-
name: errorCode,
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
566
|
-
break;
|
|
567
|
-
case "ConcurrentModificationException":
|
|
568
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
569
|
-
response = {
|
|
570
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
571
|
-
name: errorCode,
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
574
|
-
break;
|
|
575
|
-
case "InvalidArgumentException":
|
|
576
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
577
|
-
response = {
|
|
578
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
579
|
-
name: errorCode,
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
};
|
|
582
|
-
break;
|
|
583
|
-
case "ResourceInUseException":
|
|
584
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
585
|
-
response = {
|
|
586
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
587
|
-
name: errorCode,
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
};
|
|
590
|
-
break;
|
|
591
|
-
case "ResourceNotFoundException":
|
|
592
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
593
|
-
response = {
|
|
594
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
595
|
-
name: errorCode,
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
598
|
-
break;
|
|
599
|
-
case "UnsupportedOperationException":
|
|
600
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
601
|
-
response = {
|
|
602
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
603
|
-
name: errorCode,
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
};
|
|
606
|
-
break;
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
610
|
-
response = {
|
|
611
|
-
...parsedBody,
|
|
612
|
-
name: `${errorCode}`,
|
|
613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
614
|
-
$fault: "client",
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
} as any;
|
|
617
|
-
}
|
|
618
|
-
const message = response.message || response.Message || errorCode;
|
|
619
|
-
response.message = message;
|
|
620
|
-
delete response.Message;
|
|
621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
export const deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = async (
|
|
625
|
-
output: __HttpResponse,
|
|
626
|
-
context: __SerdeContext
|
|
627
|
-
): Promise<AddApplicationInputProcessingConfigurationCommandOutput> => {
|
|
628
|
-
if (output.statusCode >= 300) {
|
|
629
|
-
return deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const data: any = await parseBody(output.body, context);
|
|
632
|
-
let contents: any = {};
|
|
633
|
-
contents = deserializeAws_json1_1AddApplicationInputProcessingConfigurationResponse(data, context);
|
|
634
|
-
const response: AddApplicationInputProcessingConfigurationCommandOutput = {
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
...contents,
|
|
637
|
-
};
|
|
638
|
-
return Promise.resolve(response);
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
const deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandError = async (
|
|
642
|
-
output: __HttpResponse,
|
|
643
|
-
context: __SerdeContext
|
|
644
|
-
): Promise<AddApplicationInputProcessingConfigurationCommandOutput> => {
|
|
645
|
-
const parsedOutput: any = {
|
|
646
|
-
...output,
|
|
647
|
-
body: await parseBody(output.body, context),
|
|
648
|
-
};
|
|
649
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
650
|
-
let errorCode = "UnknownError";
|
|
651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
-
switch (errorCode) {
|
|
653
|
-
case "ConcurrentModificationException":
|
|
654
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
655
|
-
response = {
|
|
656
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
661
|
-
case "InvalidArgumentException":
|
|
662
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
663
|
-
response = {
|
|
664
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
669
|
-
case "ResourceInUseException":
|
|
670
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
671
|
-
response = {
|
|
672
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
673
|
-
name: errorCode,
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
677
|
-
case "ResourceNotFoundException":
|
|
678
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
679
|
-
response = {
|
|
680
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
681
|
-
name: errorCode,
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
685
|
-
case "UnsupportedOperationException":
|
|
686
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
687
|
-
response = {
|
|
688
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
689
|
-
name: errorCode,
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
};
|
|
692
|
-
break;
|
|
693
|
-
default:
|
|
694
|
-
const parsedBody = parsedOutput.body;
|
|
695
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
696
|
-
response = {
|
|
697
|
-
...parsedBody,
|
|
698
|
-
name: `${errorCode}`,
|
|
699
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
700
|
-
$fault: "client",
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
} as any;
|
|
703
|
-
}
|
|
704
|
-
const message = response.message || response.Message || errorCode;
|
|
705
|
-
response.message = message;
|
|
706
|
-
delete response.Message;
|
|
707
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
export const deserializeAws_json1_1AddApplicationOutputCommand = async (
|
|
711
|
-
output: __HttpResponse,
|
|
712
|
-
context: __SerdeContext
|
|
713
|
-
): Promise<AddApplicationOutputCommandOutput> => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return deserializeAws_json1_1AddApplicationOutputCommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data: any = await parseBody(output.body, context);
|
|
718
|
-
let contents: any = {};
|
|
719
|
-
contents = deserializeAws_json1_1AddApplicationOutputResponse(data, context);
|
|
720
|
-
const response: AddApplicationOutputCommandOutput = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return Promise.resolve(response);
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
const deserializeAws_json1_1AddApplicationOutputCommandError = async (
|
|
728
|
-
output: __HttpResponse,
|
|
729
|
-
context: __SerdeContext
|
|
730
|
-
): Promise<AddApplicationOutputCommandOutput> => {
|
|
731
|
-
const parsedOutput: any = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseBody(output.body, context),
|
|
734
|
-
};
|
|
735
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
736
|
-
let errorCode = "UnknownError";
|
|
737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
|
-
switch (errorCode) {
|
|
739
|
-
case "ConcurrentModificationException":
|
|
740
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
741
|
-
response = {
|
|
742
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
743
|
-
name: errorCode,
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
746
|
-
break;
|
|
747
|
-
case "InvalidArgumentException":
|
|
748
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
749
|
-
response = {
|
|
750
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
751
|
-
name: errorCode,
|
|
752
|
-
$metadata: deserializeMetadata(output),
|
|
753
|
-
};
|
|
754
|
-
break;
|
|
755
|
-
case "ResourceInUseException":
|
|
756
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
757
|
-
response = {
|
|
758
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
759
|
-
name: errorCode,
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
};
|
|
762
|
-
break;
|
|
763
|
-
case "ResourceNotFoundException":
|
|
764
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
765
|
-
response = {
|
|
766
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
767
|
-
name: errorCode,
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
break;
|
|
771
|
-
case "UnsupportedOperationException":
|
|
772
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
773
|
-
response = {
|
|
774
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
775
|
-
name: errorCode,
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
778
|
-
break;
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
782
|
-
response = {
|
|
783
|
-
...parsedBody,
|
|
784
|
-
name: `${errorCode}`,
|
|
785
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
786
|
-
$fault: "client",
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
} as any;
|
|
789
|
-
}
|
|
790
|
-
const message = response.message || response.Message || errorCode;
|
|
791
|
-
response.message = message;
|
|
792
|
-
delete response.Message;
|
|
793
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
export const deserializeAws_json1_1AddApplicationReferenceDataSourceCommand = async (
|
|
797
|
-
output: __HttpResponse,
|
|
798
|
-
context: __SerdeContext
|
|
799
|
-
): Promise<AddApplicationReferenceDataSourceCommandOutput> => {
|
|
800
|
-
if (output.statusCode >= 300) {
|
|
801
|
-
return deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError(output, context);
|
|
802
|
-
}
|
|
803
|
-
const data: any = await parseBody(output.body, context);
|
|
804
|
-
let contents: any = {};
|
|
805
|
-
contents = deserializeAws_json1_1AddApplicationReferenceDataSourceResponse(data, context);
|
|
806
|
-
const response: AddApplicationReferenceDataSourceCommandOutput = {
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
...contents,
|
|
809
|
-
};
|
|
810
|
-
return Promise.resolve(response);
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
const deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError = async (
|
|
814
|
-
output: __HttpResponse,
|
|
815
|
-
context: __SerdeContext
|
|
816
|
-
): Promise<AddApplicationReferenceDataSourceCommandOutput> => {
|
|
817
|
-
const parsedOutput: any = {
|
|
818
|
-
...output,
|
|
819
|
-
body: await parseBody(output.body, context),
|
|
820
|
-
};
|
|
821
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
822
|
-
let errorCode = "UnknownError";
|
|
823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "ConcurrentModificationException":
|
|
826
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
827
|
-
response = {
|
|
828
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
829
|
-
name: errorCode,
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
832
|
-
break;
|
|
833
|
-
case "InvalidArgumentException":
|
|
834
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
835
|
-
response = {
|
|
836
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
837
|
-
name: errorCode,
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
840
|
-
break;
|
|
841
|
-
case "ResourceInUseException":
|
|
842
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
843
|
-
response = {
|
|
844
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
845
|
-
name: errorCode,
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
848
|
-
break;
|
|
849
|
-
case "ResourceNotFoundException":
|
|
850
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
851
|
-
response = {
|
|
852
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
853
|
-
name: errorCode,
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
};
|
|
856
|
-
break;
|
|
857
|
-
case "UnsupportedOperationException":
|
|
858
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
859
|
-
response = {
|
|
860
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
861
|
-
name: errorCode,
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
};
|
|
864
|
-
break;
|
|
865
|
-
default:
|
|
866
|
-
const parsedBody = parsedOutput.body;
|
|
867
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
868
|
-
response = {
|
|
869
|
-
...parsedBody,
|
|
870
|
-
name: `${errorCode}`,
|
|
871
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
872
|
-
$fault: "client",
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
} as any;
|
|
875
|
-
}
|
|
876
|
-
const message = response.message || response.Message || errorCode;
|
|
877
|
-
response.message = message;
|
|
878
|
-
delete response.Message;
|
|
879
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
export const deserializeAws_json1_1CreateApplicationCommand = async (
|
|
883
|
-
output: __HttpResponse,
|
|
884
|
-
context: __SerdeContext
|
|
885
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
886
|
-
if (output.statusCode >= 300) {
|
|
887
|
-
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const data: any = await parseBody(output.body, context);
|
|
890
|
-
let contents: any = {};
|
|
891
|
-
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
892
|
-
const response: CreateApplicationCommandOutput = {
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
...contents,
|
|
895
|
-
};
|
|
896
|
-
return Promise.resolve(response);
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
const deserializeAws_json1_1CreateApplicationCommandError = async (
|
|
900
|
-
output: __HttpResponse,
|
|
901
|
-
context: __SerdeContext
|
|
902
|
-
): Promise<CreateApplicationCommandOutput> => {
|
|
903
|
-
const parsedOutput: any = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
908
|
-
let errorCode = "UnknownError";
|
|
909
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "CodeValidationException":
|
|
912
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
913
|
-
response = {
|
|
914
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
915
|
-
name: errorCode,
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
};
|
|
918
|
-
break;
|
|
919
|
-
case "ConcurrentModificationException":
|
|
920
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
921
|
-
response = {
|
|
922
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
923
|
-
name: errorCode,
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
};
|
|
926
|
-
break;
|
|
927
|
-
case "InvalidArgumentException":
|
|
928
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
929
|
-
response = {
|
|
930
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
931
|
-
name: errorCode,
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
};
|
|
934
|
-
break;
|
|
935
|
-
case "LimitExceededException":
|
|
936
|
-
case "com.amazonaws.kinesisanalytics#LimitExceededException":
|
|
937
|
-
response = {
|
|
938
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
943
|
-
case "ResourceInUseException":
|
|
944
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
945
|
-
response = {
|
|
946
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
951
|
-
case "TooManyTagsException":
|
|
952
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
953
|
-
response = {
|
|
954
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
959
|
-
default:
|
|
960
|
-
const parsedBody = parsedOutput.body;
|
|
961
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
962
|
-
response = {
|
|
963
|
-
...parsedBody,
|
|
964
|
-
name: `${errorCode}`,
|
|
965
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
966
|
-
$fault: "client",
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
} as any;
|
|
969
|
-
}
|
|
970
|
-
const message = response.message || response.Message || errorCode;
|
|
971
|
-
response.message = message;
|
|
972
|
-
delete response.Message;
|
|
973
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
export const deserializeAws_json1_1DeleteApplicationCommand = async (
|
|
977
|
-
output: __HttpResponse,
|
|
978
|
-
context: __SerdeContext
|
|
979
|
-
): Promise<DeleteApplicationCommandOutput> => {
|
|
980
|
-
if (output.statusCode >= 300) {
|
|
981
|
-
return deserializeAws_json1_1DeleteApplicationCommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const data: any = await parseBody(output.body, context);
|
|
984
|
-
let contents: any = {};
|
|
985
|
-
contents = deserializeAws_json1_1DeleteApplicationResponse(data, context);
|
|
986
|
-
const response: DeleteApplicationCommandOutput = {
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
...contents,
|
|
989
|
-
};
|
|
990
|
-
return Promise.resolve(response);
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
const deserializeAws_json1_1DeleteApplicationCommandError = async (
|
|
994
|
-
output: __HttpResponse,
|
|
995
|
-
context: __SerdeContext
|
|
996
|
-
): Promise<DeleteApplicationCommandOutput> => {
|
|
997
|
-
const parsedOutput: any = {
|
|
998
|
-
...output,
|
|
999
|
-
body: await parseBody(output.body, context),
|
|
1000
|
-
};
|
|
1001
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1002
|
-
let errorCode = "UnknownError";
|
|
1003
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "ConcurrentModificationException":
|
|
1006
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1007
|
-
response = {
|
|
1008
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1009
|
-
name: errorCode,
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
};
|
|
1012
|
-
break;
|
|
1013
|
-
case "ResourceInUseException":
|
|
1014
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1015
|
-
response = {
|
|
1016
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1017
|
-
name: errorCode,
|
|
1018
|
-
$metadata: deserializeMetadata(output),
|
|
1019
|
-
};
|
|
1020
|
-
break;
|
|
1021
|
-
case "ResourceNotFoundException":
|
|
1022
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1023
|
-
response = {
|
|
1024
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1025
|
-
name: errorCode,
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
};
|
|
1028
|
-
break;
|
|
1029
|
-
case "UnsupportedOperationException":
|
|
1030
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1031
|
-
response = {
|
|
1032
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1033
|
-
name: errorCode,
|
|
1034
|
-
$metadata: deserializeMetadata(output),
|
|
1035
|
-
};
|
|
1036
|
-
break;
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1040
|
-
response = {
|
|
1041
|
-
...parsedBody,
|
|
1042
|
-
name: `${errorCode}`,
|
|
1043
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1044
|
-
$fault: "client",
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
} as any;
|
|
1047
|
-
}
|
|
1048
|
-
const message = response.message || response.Message || errorCode;
|
|
1049
|
-
response.message = message;
|
|
1050
|
-
delete response.Message;
|
|
1051
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
export const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = async (
|
|
1055
|
-
output: __HttpResponse,
|
|
1056
|
-
context: __SerdeContext
|
|
1057
|
-
): Promise<DeleteApplicationCloudWatchLoggingOptionCommandOutput> => {
|
|
1058
|
-
if (output.statusCode >= 300) {
|
|
1059
|
-
return deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const data: any = await parseBody(output.body, context);
|
|
1062
|
-
let contents: any = {};
|
|
1063
|
-
contents = deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionResponse(data, context);
|
|
1064
|
-
const response: DeleteApplicationCloudWatchLoggingOptionCommandOutput = {
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
...contents,
|
|
1067
|
-
};
|
|
1068
|
-
return Promise.resolve(response);
|
|
1069
|
-
};
|
|
1070
|
-
|
|
1071
|
-
const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError = async (
|
|
1072
|
-
output: __HttpResponse,
|
|
1073
|
-
context: __SerdeContext
|
|
1074
|
-
): Promise<DeleteApplicationCloudWatchLoggingOptionCommandOutput> => {
|
|
1075
|
-
const parsedOutput: any = {
|
|
1076
|
-
...output,
|
|
1077
|
-
body: await parseBody(output.body, context),
|
|
1078
|
-
};
|
|
1079
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1080
|
-
let errorCode = "UnknownError";
|
|
1081
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
-
switch (errorCode) {
|
|
1083
|
-
case "ConcurrentModificationException":
|
|
1084
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1085
|
-
response = {
|
|
1086
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1087
|
-
name: errorCode,
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
};
|
|
1090
|
-
break;
|
|
1091
|
-
case "InvalidArgumentException":
|
|
1092
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1093
|
-
response = {
|
|
1094
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1095
|
-
name: errorCode,
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1098
|
-
break;
|
|
1099
|
-
case "ResourceInUseException":
|
|
1100
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1101
|
-
response = {
|
|
1102
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
1107
|
-
case "ResourceNotFoundException":
|
|
1108
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1109
|
-
response = {
|
|
1110
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
1115
|
-
case "UnsupportedOperationException":
|
|
1116
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1117
|
-
response = {
|
|
1118
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1126
|
-
response = {
|
|
1127
|
-
...parsedBody,
|
|
1128
|
-
name: `${errorCode}`,
|
|
1129
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1130
|
-
$fault: "client",
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
} as any;
|
|
1133
|
-
}
|
|
1134
|
-
const message = response.message || response.Message || errorCode;
|
|
1135
|
-
response.message = message;
|
|
1136
|
-
delete response.Message;
|
|
1137
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
export const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = async (
|
|
1141
|
-
output: __HttpResponse,
|
|
1142
|
-
context: __SerdeContext
|
|
1143
|
-
): Promise<DeleteApplicationInputProcessingConfigurationCommandOutput> => {
|
|
1144
|
-
if (output.statusCode >= 300) {
|
|
1145
|
-
return deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const data: any = await parseBody(output.body, context);
|
|
1148
|
-
let contents: any = {};
|
|
1149
|
-
contents = deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationResponse(data, context);
|
|
1150
|
-
const response: DeleteApplicationInputProcessingConfigurationCommandOutput = {
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
...contents,
|
|
1153
|
-
};
|
|
1154
|
-
return Promise.resolve(response);
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommandError = async (
|
|
1158
|
-
output: __HttpResponse,
|
|
1159
|
-
context: __SerdeContext
|
|
1160
|
-
): Promise<DeleteApplicationInputProcessingConfigurationCommandOutput> => {
|
|
1161
|
-
const parsedOutput: any = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1166
|
-
let errorCode = "UnknownError";
|
|
1167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "ConcurrentModificationException":
|
|
1170
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1171
|
-
response = {
|
|
1172
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
1177
|
-
case "InvalidArgumentException":
|
|
1178
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1179
|
-
response = {
|
|
1180
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
1185
|
-
case "ResourceInUseException":
|
|
1186
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1187
|
-
response = {
|
|
1188
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1189
|
-
name: errorCode,
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
};
|
|
1192
|
-
break;
|
|
1193
|
-
case "ResourceNotFoundException":
|
|
1194
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1195
|
-
response = {
|
|
1196
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1197
|
-
name: errorCode,
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
};
|
|
1200
|
-
break;
|
|
1201
|
-
case "UnsupportedOperationException":
|
|
1202
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1203
|
-
response = {
|
|
1204
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1205
|
-
name: errorCode,
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
};
|
|
1208
|
-
break;
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1212
|
-
response = {
|
|
1213
|
-
...parsedBody,
|
|
1214
|
-
name: `${errorCode}`,
|
|
1215
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1216
|
-
$fault: "client",
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
} as any;
|
|
1219
|
-
}
|
|
1220
|
-
const message = response.message || response.Message || errorCode;
|
|
1221
|
-
response.message = message;
|
|
1222
|
-
delete response.Message;
|
|
1223
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1224
|
-
};
|
|
1225
|
-
|
|
1226
|
-
export const deserializeAws_json1_1DeleteApplicationOutputCommand = async (
|
|
1227
|
-
output: __HttpResponse,
|
|
1228
|
-
context: __SerdeContext
|
|
1229
|
-
): Promise<DeleteApplicationOutputCommandOutput> => {
|
|
1230
|
-
if (output.statusCode >= 300) {
|
|
1231
|
-
return deserializeAws_json1_1DeleteApplicationOutputCommandError(output, context);
|
|
1232
|
-
}
|
|
1233
|
-
const data: any = await parseBody(output.body, context);
|
|
1234
|
-
let contents: any = {};
|
|
1235
|
-
contents = deserializeAws_json1_1DeleteApplicationOutputResponse(data, context);
|
|
1236
|
-
const response: DeleteApplicationOutputCommandOutput = {
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1238
|
-
...contents,
|
|
1239
|
-
};
|
|
1240
|
-
return Promise.resolve(response);
|
|
1241
|
-
};
|
|
1242
|
-
|
|
1243
|
-
const deserializeAws_json1_1DeleteApplicationOutputCommandError = async (
|
|
1244
|
-
output: __HttpResponse,
|
|
1245
|
-
context: __SerdeContext
|
|
1246
|
-
): Promise<DeleteApplicationOutputCommandOutput> => {
|
|
1247
|
-
const parsedOutput: any = {
|
|
1248
|
-
...output,
|
|
1249
|
-
body: await parseBody(output.body, context),
|
|
1250
|
-
};
|
|
1251
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1252
|
-
let errorCode = "UnknownError";
|
|
1253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
|
-
switch (errorCode) {
|
|
1255
|
-
case "ConcurrentModificationException":
|
|
1256
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1257
|
-
response = {
|
|
1258
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1263
|
-
case "InvalidArgumentException":
|
|
1264
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1265
|
-
response = {
|
|
1266
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
1271
|
-
case "ResourceInUseException":
|
|
1272
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1273
|
-
response = {
|
|
1274
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
1279
|
-
case "ResourceNotFoundException":
|
|
1280
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1281
|
-
response = {
|
|
1282
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
1287
|
-
case "UnsupportedOperationException":
|
|
1288
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1289
|
-
response = {
|
|
1290
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1298
|
-
response = {
|
|
1299
|
-
...parsedBody,
|
|
1300
|
-
name: `${errorCode}`,
|
|
1301
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1302
|
-
$fault: "client",
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
} as any;
|
|
1305
|
-
}
|
|
1306
|
-
const message = response.message || response.Message || errorCode;
|
|
1307
|
-
response.message = message;
|
|
1308
|
-
delete response.Message;
|
|
1309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
export const deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = async (
|
|
1313
|
-
output: __HttpResponse,
|
|
1314
|
-
context: __SerdeContext
|
|
1315
|
-
): Promise<DeleteApplicationReferenceDataSourceCommandOutput> => {
|
|
1316
|
-
if (output.statusCode >= 300) {
|
|
1317
|
-
return deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError(output, context);
|
|
1318
|
-
}
|
|
1319
|
-
const data: any = await parseBody(output.body, context);
|
|
1320
|
-
let contents: any = {};
|
|
1321
|
-
contents = deserializeAws_json1_1DeleteApplicationReferenceDataSourceResponse(data, context);
|
|
1322
|
-
const response: DeleteApplicationReferenceDataSourceCommandOutput = {
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1324
|
-
...contents,
|
|
1325
|
-
};
|
|
1326
|
-
return Promise.resolve(response);
|
|
1327
|
-
};
|
|
1328
|
-
|
|
1329
|
-
const deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError = async (
|
|
1330
|
-
output: __HttpResponse,
|
|
1331
|
-
context: __SerdeContext
|
|
1332
|
-
): Promise<DeleteApplicationReferenceDataSourceCommandOutput> => {
|
|
1333
|
-
const parsedOutput: any = {
|
|
1334
|
-
...output,
|
|
1335
|
-
body: await parseBody(output.body, context),
|
|
1336
|
-
};
|
|
1337
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1338
|
-
let errorCode = "UnknownError";
|
|
1339
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "ConcurrentModificationException":
|
|
1342
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1343
|
-
response = {
|
|
1344
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1345
|
-
name: errorCode,
|
|
1346
|
-
$metadata: deserializeMetadata(output),
|
|
1347
|
-
};
|
|
1348
|
-
break;
|
|
1349
|
-
case "InvalidArgumentException":
|
|
1350
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1351
|
-
response = {
|
|
1352
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1353
|
-
name: errorCode,
|
|
1354
|
-
$metadata: deserializeMetadata(output),
|
|
1355
|
-
};
|
|
1356
|
-
break;
|
|
1357
|
-
case "ResourceInUseException":
|
|
1358
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1359
|
-
response = {
|
|
1360
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1361
|
-
name: errorCode,
|
|
1362
|
-
$metadata: deserializeMetadata(output),
|
|
1363
|
-
};
|
|
1364
|
-
break;
|
|
1365
|
-
case "ResourceNotFoundException":
|
|
1366
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1367
|
-
response = {
|
|
1368
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1369
|
-
name: errorCode,
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
};
|
|
1372
|
-
break;
|
|
1373
|
-
case "UnsupportedOperationException":
|
|
1374
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1375
|
-
response = {
|
|
1376
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1377
|
-
name: errorCode,
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
};
|
|
1380
|
-
break;
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1384
|
-
response = {
|
|
1385
|
-
...parsedBody,
|
|
1386
|
-
name: `${errorCode}`,
|
|
1387
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1388
|
-
$fault: "client",
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
} as any;
|
|
1391
|
-
}
|
|
1392
|
-
const message = response.message || response.Message || errorCode;
|
|
1393
|
-
response.message = message;
|
|
1394
|
-
delete response.Message;
|
|
1395
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
|
-
export const deserializeAws_json1_1DescribeApplicationCommand = async (
|
|
1399
|
-
output: __HttpResponse,
|
|
1400
|
-
context: __SerdeContext
|
|
1401
|
-
): Promise<DescribeApplicationCommandOutput> => {
|
|
1402
|
-
if (output.statusCode >= 300) {
|
|
1403
|
-
return deserializeAws_json1_1DescribeApplicationCommandError(output, context);
|
|
1404
|
-
}
|
|
1405
|
-
const data: any = await parseBody(output.body, context);
|
|
1406
|
-
let contents: any = {};
|
|
1407
|
-
contents = deserializeAws_json1_1DescribeApplicationResponse(data, context);
|
|
1408
|
-
const response: DescribeApplicationCommandOutput = {
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
...contents,
|
|
1411
|
-
};
|
|
1412
|
-
return Promise.resolve(response);
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
|
-
const deserializeAws_json1_1DescribeApplicationCommandError = async (
|
|
1416
|
-
output: __HttpResponse,
|
|
1417
|
-
context: __SerdeContext
|
|
1418
|
-
): Promise<DescribeApplicationCommandOutput> => {
|
|
1419
|
-
const parsedOutput: any = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1424
|
-
let errorCode = "UnknownError";
|
|
1425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1429
|
-
response = {
|
|
1430
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1431
|
-
name: errorCode,
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1434
|
-
break;
|
|
1435
|
-
case "UnsupportedOperationException":
|
|
1436
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1437
|
-
response = {
|
|
1438
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1439
|
-
name: errorCode,
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1442
|
-
break;
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1446
|
-
response = {
|
|
1447
|
-
...parsedBody,
|
|
1448
|
-
name: `${errorCode}`,
|
|
1449
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1450
|
-
$fault: "client",
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
} as any;
|
|
1453
|
-
}
|
|
1454
|
-
const message = response.message || response.Message || errorCode;
|
|
1455
|
-
response.message = message;
|
|
1456
|
-
delete response.Message;
|
|
1457
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1458
|
-
};
|
|
1459
|
-
|
|
1460
|
-
export const deserializeAws_json1_1DiscoverInputSchemaCommand = async (
|
|
1461
|
-
output: __HttpResponse,
|
|
1462
|
-
context: __SerdeContext
|
|
1463
|
-
): Promise<DiscoverInputSchemaCommandOutput> => {
|
|
1464
|
-
if (output.statusCode >= 300) {
|
|
1465
|
-
return deserializeAws_json1_1DiscoverInputSchemaCommandError(output, context);
|
|
1466
|
-
}
|
|
1467
|
-
const data: any = await parseBody(output.body, context);
|
|
1468
|
-
let contents: any = {};
|
|
1469
|
-
contents = deserializeAws_json1_1DiscoverInputSchemaResponse(data, context);
|
|
1470
|
-
const response: DiscoverInputSchemaCommandOutput = {
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
...contents,
|
|
1473
|
-
};
|
|
1474
|
-
return Promise.resolve(response);
|
|
1475
|
-
};
|
|
1476
|
-
|
|
1477
|
-
const deserializeAws_json1_1DiscoverInputSchemaCommandError = async (
|
|
1478
|
-
output: __HttpResponse,
|
|
1479
|
-
context: __SerdeContext
|
|
1480
|
-
): Promise<DiscoverInputSchemaCommandOutput> => {
|
|
1481
|
-
const parsedOutput: any = {
|
|
1482
|
-
...output,
|
|
1483
|
-
body: await parseBody(output.body, context),
|
|
1484
|
-
};
|
|
1485
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1486
|
-
let errorCode = "UnknownError";
|
|
1487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "InvalidArgumentException":
|
|
1490
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1491
|
-
response = {
|
|
1492
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1493
|
-
name: errorCode,
|
|
1494
|
-
$metadata: deserializeMetadata(output),
|
|
1495
|
-
};
|
|
1496
|
-
break;
|
|
1497
|
-
case "ResourceProvisionedThroughputExceededException":
|
|
1498
|
-
case "com.amazonaws.kinesisanalytics#ResourceProvisionedThroughputExceededException":
|
|
1499
|
-
response = {
|
|
1500
|
-
...(await deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
1501
|
-
name: errorCode,
|
|
1502
|
-
$metadata: deserializeMetadata(output),
|
|
1503
|
-
};
|
|
1504
|
-
break;
|
|
1505
|
-
case "ServiceUnavailableException":
|
|
1506
|
-
case "com.amazonaws.kinesisanalytics#ServiceUnavailableException":
|
|
1507
|
-
response = {
|
|
1508
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1509
|
-
name: errorCode,
|
|
1510
|
-
$metadata: deserializeMetadata(output),
|
|
1511
|
-
};
|
|
1512
|
-
break;
|
|
1513
|
-
case "UnableToDetectSchemaException":
|
|
1514
|
-
case "com.amazonaws.kinesisanalytics#UnableToDetectSchemaException":
|
|
1515
|
-
response = {
|
|
1516
|
-
...(await deserializeAws_json1_1UnableToDetectSchemaExceptionResponse(parsedOutput, context)),
|
|
1517
|
-
name: errorCode,
|
|
1518
|
-
$metadata: deserializeMetadata(output),
|
|
1519
|
-
};
|
|
1520
|
-
break;
|
|
1521
|
-
default:
|
|
1522
|
-
const parsedBody = parsedOutput.body;
|
|
1523
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1524
|
-
response = {
|
|
1525
|
-
...parsedBody,
|
|
1526
|
-
name: `${errorCode}`,
|
|
1527
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1528
|
-
$fault: "client",
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
} as any;
|
|
1531
|
-
}
|
|
1532
|
-
const message = response.message || response.Message || errorCode;
|
|
1533
|
-
response.message = message;
|
|
1534
|
-
delete response.Message;
|
|
1535
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1536
|
-
};
|
|
1537
|
-
|
|
1538
|
-
export const deserializeAws_json1_1ListApplicationsCommand = async (
|
|
1539
|
-
output: __HttpResponse,
|
|
1540
|
-
context: __SerdeContext
|
|
1541
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
1542
|
-
if (output.statusCode >= 300) {
|
|
1543
|
-
return deserializeAws_json1_1ListApplicationsCommandError(output, context);
|
|
1544
|
-
}
|
|
1545
|
-
const data: any = await parseBody(output.body, context);
|
|
1546
|
-
let contents: any = {};
|
|
1547
|
-
contents = deserializeAws_json1_1ListApplicationsResponse(data, context);
|
|
1548
|
-
const response: ListApplicationsCommandOutput = {
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
...contents,
|
|
1551
|
-
};
|
|
1552
|
-
return Promise.resolve(response);
|
|
1553
|
-
};
|
|
1554
|
-
|
|
1555
|
-
const deserializeAws_json1_1ListApplicationsCommandError = async (
|
|
1556
|
-
output: __HttpResponse,
|
|
1557
|
-
context: __SerdeContext
|
|
1558
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
1559
|
-
const parsedOutput: any = {
|
|
1560
|
-
...output,
|
|
1561
|
-
body: await parseBody(output.body, context),
|
|
1562
|
-
};
|
|
1563
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1564
|
-
let errorCode = "UnknownError";
|
|
1565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
-
switch (errorCode) {
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1570
|
-
response = {
|
|
1571
|
-
...parsedBody,
|
|
1572
|
-
name: `${errorCode}`,
|
|
1573
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1574
|
-
$fault: "client",
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
} as any;
|
|
1577
|
-
}
|
|
1578
|
-
const message = response.message || response.Message || errorCode;
|
|
1579
|
-
response.message = message;
|
|
1580
|
-
delete response.Message;
|
|
1581
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1582
|
-
};
|
|
1583
|
-
|
|
1584
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
1585
|
-
output: __HttpResponse,
|
|
1586
|
-
context: __SerdeContext
|
|
1587
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1588
|
-
if (output.statusCode >= 300) {
|
|
1589
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1590
|
-
}
|
|
1591
|
-
const data: any = await parseBody(output.body, context);
|
|
1592
|
-
let contents: any = {};
|
|
1593
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1594
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
...contents,
|
|
1597
|
-
};
|
|
1598
|
-
return Promise.resolve(response);
|
|
1599
|
-
};
|
|
1600
|
-
|
|
1601
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
1602
|
-
output: __HttpResponse,
|
|
1603
|
-
context: __SerdeContext
|
|
1604
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1605
|
-
const parsedOutput: any = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseBody(output.body, context),
|
|
1608
|
-
};
|
|
1609
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1610
|
-
let errorCode = "UnknownError";
|
|
1611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "ConcurrentModificationException":
|
|
1614
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1615
|
-
response = {
|
|
1616
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1617
|
-
name: errorCode,
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
};
|
|
1620
|
-
break;
|
|
1621
|
-
case "InvalidArgumentException":
|
|
1622
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1623
|
-
response = {
|
|
1624
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1629
|
-
case "ResourceNotFoundException":
|
|
1630
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1631
|
-
response = {
|
|
1632
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1640
|
-
response = {
|
|
1641
|
-
...parsedBody,
|
|
1642
|
-
name: `${errorCode}`,
|
|
1643
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1644
|
-
$fault: "client",
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
} as any;
|
|
1647
|
-
}
|
|
1648
|
-
const message = response.message || response.Message || errorCode;
|
|
1649
|
-
response.message = message;
|
|
1650
|
-
delete response.Message;
|
|
1651
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1652
|
-
};
|
|
1653
|
-
|
|
1654
|
-
export const deserializeAws_json1_1StartApplicationCommand = async (
|
|
1655
|
-
output: __HttpResponse,
|
|
1656
|
-
context: __SerdeContext
|
|
1657
|
-
): Promise<StartApplicationCommandOutput> => {
|
|
1658
|
-
if (output.statusCode >= 300) {
|
|
1659
|
-
return deserializeAws_json1_1StartApplicationCommandError(output, context);
|
|
1660
|
-
}
|
|
1661
|
-
const data: any = await parseBody(output.body, context);
|
|
1662
|
-
let contents: any = {};
|
|
1663
|
-
contents = deserializeAws_json1_1StartApplicationResponse(data, context);
|
|
1664
|
-
const response: StartApplicationCommandOutput = {
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
...contents,
|
|
1667
|
-
};
|
|
1668
|
-
return Promise.resolve(response);
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
const deserializeAws_json1_1StartApplicationCommandError = async (
|
|
1672
|
-
output: __HttpResponse,
|
|
1673
|
-
context: __SerdeContext
|
|
1674
|
-
): Promise<StartApplicationCommandOutput> => {
|
|
1675
|
-
const parsedOutput: any = {
|
|
1676
|
-
...output,
|
|
1677
|
-
body: await parseBody(output.body, context),
|
|
1678
|
-
};
|
|
1679
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1680
|
-
let errorCode = "UnknownError";
|
|
1681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
-
switch (errorCode) {
|
|
1683
|
-
case "InvalidApplicationConfigurationException":
|
|
1684
|
-
case "com.amazonaws.kinesisanalytics#InvalidApplicationConfigurationException":
|
|
1685
|
-
response = {
|
|
1686
|
-
...(await deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)),
|
|
1687
|
-
name: errorCode,
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
};
|
|
1690
|
-
break;
|
|
1691
|
-
case "InvalidArgumentException":
|
|
1692
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1693
|
-
response = {
|
|
1694
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1695
|
-
name: errorCode,
|
|
1696
|
-
$metadata: deserializeMetadata(output),
|
|
1697
|
-
};
|
|
1698
|
-
break;
|
|
1699
|
-
case "ResourceInUseException":
|
|
1700
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1701
|
-
response = {
|
|
1702
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1703
|
-
name: errorCode,
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
};
|
|
1706
|
-
break;
|
|
1707
|
-
case "ResourceNotFoundException":
|
|
1708
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1709
|
-
response = {
|
|
1710
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1711
|
-
name: errorCode,
|
|
1712
|
-
$metadata: deserializeMetadata(output),
|
|
1713
|
-
};
|
|
1714
|
-
break;
|
|
1715
|
-
case "UnsupportedOperationException":
|
|
1716
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1717
|
-
response = {
|
|
1718
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1719
|
-
name: errorCode,
|
|
1720
|
-
$metadata: deserializeMetadata(output),
|
|
1721
|
-
};
|
|
1722
|
-
break;
|
|
1723
|
-
default:
|
|
1724
|
-
const parsedBody = parsedOutput.body;
|
|
1725
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1726
|
-
response = {
|
|
1727
|
-
...parsedBody,
|
|
1728
|
-
name: `${errorCode}`,
|
|
1729
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1730
|
-
$fault: "client",
|
|
1731
|
-
$metadata: deserializeMetadata(output),
|
|
1732
|
-
} as any;
|
|
1733
|
-
}
|
|
1734
|
-
const message = response.message || response.Message || errorCode;
|
|
1735
|
-
response.message = message;
|
|
1736
|
-
delete response.Message;
|
|
1737
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1738
|
-
};
|
|
1739
|
-
|
|
1740
|
-
export const deserializeAws_json1_1StopApplicationCommand = async (
|
|
1741
|
-
output: __HttpResponse,
|
|
1742
|
-
context: __SerdeContext
|
|
1743
|
-
): Promise<StopApplicationCommandOutput> => {
|
|
1744
|
-
if (output.statusCode >= 300) {
|
|
1745
|
-
return deserializeAws_json1_1StopApplicationCommandError(output, context);
|
|
1746
|
-
}
|
|
1747
|
-
const data: any = await parseBody(output.body, context);
|
|
1748
|
-
let contents: any = {};
|
|
1749
|
-
contents = deserializeAws_json1_1StopApplicationResponse(data, context);
|
|
1750
|
-
const response: StopApplicationCommandOutput = {
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
...contents,
|
|
1753
|
-
};
|
|
1754
|
-
return Promise.resolve(response);
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
const deserializeAws_json1_1StopApplicationCommandError = async (
|
|
1758
|
-
output: __HttpResponse,
|
|
1759
|
-
context: __SerdeContext
|
|
1760
|
-
): Promise<StopApplicationCommandOutput> => {
|
|
1761
|
-
const parsedOutput: any = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseBody(output.body, context),
|
|
1764
|
-
};
|
|
1765
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1766
|
-
let errorCode = "UnknownError";
|
|
1767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
-
switch (errorCode) {
|
|
1769
|
-
case "ResourceInUseException":
|
|
1770
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1771
|
-
response = {
|
|
1772
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1773
|
-
name: errorCode,
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
};
|
|
1776
|
-
break;
|
|
1777
|
-
case "ResourceNotFoundException":
|
|
1778
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1779
|
-
response = {
|
|
1780
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1781
|
-
name: errorCode,
|
|
1782
|
-
$metadata: deserializeMetadata(output),
|
|
1783
|
-
};
|
|
1784
|
-
break;
|
|
1785
|
-
case "UnsupportedOperationException":
|
|
1786
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1787
|
-
response = {
|
|
1788
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1789
|
-
name: errorCode,
|
|
1790
|
-
$metadata: deserializeMetadata(output),
|
|
1791
|
-
};
|
|
1792
|
-
break;
|
|
1793
|
-
default:
|
|
1794
|
-
const parsedBody = parsedOutput.body;
|
|
1795
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1796
|
-
response = {
|
|
1797
|
-
...parsedBody,
|
|
1798
|
-
name: `${errorCode}`,
|
|
1799
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1800
|
-
$fault: "client",
|
|
1801
|
-
$metadata: deserializeMetadata(output),
|
|
1802
|
-
} as any;
|
|
1803
|
-
}
|
|
1804
|
-
const message = response.message || response.Message || errorCode;
|
|
1805
|
-
response.message = message;
|
|
1806
|
-
delete response.Message;
|
|
1807
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1808
|
-
};
|
|
1809
|
-
|
|
1810
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
1811
|
-
output: __HttpResponse,
|
|
1812
|
-
context: __SerdeContext
|
|
1813
|
-
): Promise<TagResourceCommandOutput> => {
|
|
1814
|
-
if (output.statusCode >= 300) {
|
|
1815
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1816
|
-
}
|
|
1817
|
-
const data: any = await parseBody(output.body, context);
|
|
1818
|
-
let contents: any = {};
|
|
1819
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1820
|
-
const response: TagResourceCommandOutput = {
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
...contents,
|
|
1823
|
-
};
|
|
1824
|
-
return Promise.resolve(response);
|
|
1825
|
-
};
|
|
1826
|
-
|
|
1827
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
1828
|
-
output: __HttpResponse,
|
|
1829
|
-
context: __SerdeContext
|
|
1830
|
-
): Promise<TagResourceCommandOutput> => {
|
|
1831
|
-
const parsedOutput: any = {
|
|
1832
|
-
...output,
|
|
1833
|
-
body: await parseBody(output.body, context),
|
|
1834
|
-
};
|
|
1835
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1836
|
-
let errorCode = "UnknownError";
|
|
1837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
-
switch (errorCode) {
|
|
1839
|
-
case "ConcurrentModificationException":
|
|
1840
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1841
|
-
response = {
|
|
1842
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1843
|
-
name: errorCode,
|
|
1844
|
-
$metadata: deserializeMetadata(output),
|
|
1845
|
-
};
|
|
1846
|
-
break;
|
|
1847
|
-
case "InvalidArgumentException":
|
|
1848
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1849
|
-
response = {
|
|
1850
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1851
|
-
name: errorCode,
|
|
1852
|
-
$metadata: deserializeMetadata(output),
|
|
1853
|
-
};
|
|
1854
|
-
break;
|
|
1855
|
-
case "ResourceInUseException":
|
|
1856
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1857
|
-
response = {
|
|
1858
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1859
|
-
name: errorCode,
|
|
1860
|
-
$metadata: deserializeMetadata(output),
|
|
1861
|
-
};
|
|
1862
|
-
break;
|
|
1863
|
-
case "ResourceNotFoundException":
|
|
1864
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1865
|
-
response = {
|
|
1866
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1867
|
-
name: errorCode,
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
};
|
|
1870
|
-
break;
|
|
1871
|
-
case "TooManyTagsException":
|
|
1872
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
1873
|
-
response = {
|
|
1874
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1875
|
-
name: errorCode,
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
};
|
|
1878
|
-
break;
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1882
|
-
response = {
|
|
1883
|
-
...parsedBody,
|
|
1884
|
-
name: `${errorCode}`,
|
|
1885
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1886
|
-
$fault: "client",
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
} as any;
|
|
1889
|
-
}
|
|
1890
|
-
const message = response.message || response.Message || errorCode;
|
|
1891
|
-
response.message = message;
|
|
1892
|
-
delete response.Message;
|
|
1893
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1894
|
-
};
|
|
1895
|
-
|
|
1896
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
1897
|
-
output: __HttpResponse,
|
|
1898
|
-
context: __SerdeContext
|
|
1899
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
1900
|
-
if (output.statusCode >= 300) {
|
|
1901
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1902
|
-
}
|
|
1903
|
-
const data: any = await parseBody(output.body, context);
|
|
1904
|
-
let contents: any = {};
|
|
1905
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1906
|
-
const response: UntagResourceCommandOutput = {
|
|
1907
|
-
$metadata: deserializeMetadata(output),
|
|
1908
|
-
...contents,
|
|
1909
|
-
};
|
|
1910
|
-
return Promise.resolve(response);
|
|
1911
|
-
};
|
|
1912
|
-
|
|
1913
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
1914
|
-
output: __HttpResponse,
|
|
1915
|
-
context: __SerdeContext
|
|
1916
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
1917
|
-
const parsedOutput: any = {
|
|
1918
|
-
...output,
|
|
1919
|
-
body: await parseBody(output.body, context),
|
|
1920
|
-
};
|
|
1921
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1922
|
-
let errorCode = "UnknownError";
|
|
1923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "ConcurrentModificationException":
|
|
1926
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1927
|
-
response = {
|
|
1928
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1929
|
-
name: errorCode,
|
|
1930
|
-
$metadata: deserializeMetadata(output),
|
|
1931
|
-
};
|
|
1932
|
-
break;
|
|
1933
|
-
case "InvalidArgumentException":
|
|
1934
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1935
|
-
response = {
|
|
1936
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1937
|
-
name: errorCode,
|
|
1938
|
-
$metadata: deserializeMetadata(output),
|
|
1939
|
-
};
|
|
1940
|
-
break;
|
|
1941
|
-
case "ResourceInUseException":
|
|
1942
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1943
|
-
response = {
|
|
1944
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1945
|
-
name: errorCode,
|
|
1946
|
-
$metadata: deserializeMetadata(output),
|
|
1947
|
-
};
|
|
1948
|
-
break;
|
|
1949
|
-
case "ResourceNotFoundException":
|
|
1950
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1951
|
-
response = {
|
|
1952
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1953
|
-
name: errorCode,
|
|
1954
|
-
$metadata: deserializeMetadata(output),
|
|
1955
|
-
};
|
|
1956
|
-
break;
|
|
1957
|
-
case "TooManyTagsException":
|
|
1958
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
1959
|
-
response = {
|
|
1960
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1961
|
-
name: errorCode,
|
|
1962
|
-
$metadata: deserializeMetadata(output),
|
|
1963
|
-
};
|
|
1964
|
-
break;
|
|
1965
|
-
default:
|
|
1966
|
-
const parsedBody = parsedOutput.body;
|
|
1967
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1968
|
-
response = {
|
|
1969
|
-
...parsedBody,
|
|
1970
|
-
name: `${errorCode}`,
|
|
1971
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1972
|
-
$fault: "client",
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
} as any;
|
|
1975
|
-
}
|
|
1976
|
-
const message = response.message || response.Message || errorCode;
|
|
1977
|
-
response.message = message;
|
|
1978
|
-
delete response.Message;
|
|
1979
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1980
|
-
};
|
|
1981
|
-
|
|
1982
|
-
export const deserializeAws_json1_1UpdateApplicationCommand = async (
|
|
1983
|
-
output: __HttpResponse,
|
|
1984
|
-
context: __SerdeContext
|
|
1985
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
1986
|
-
if (output.statusCode >= 300) {
|
|
1987
|
-
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
1988
|
-
}
|
|
1989
|
-
const data: any = await parseBody(output.body, context);
|
|
1990
|
-
let contents: any = {};
|
|
1991
|
-
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
1992
|
-
const response: UpdateApplicationCommandOutput = {
|
|
1993
|
-
$metadata: deserializeMetadata(output),
|
|
1994
|
-
...contents,
|
|
1995
|
-
};
|
|
1996
|
-
return Promise.resolve(response);
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
|
-
const deserializeAws_json1_1UpdateApplicationCommandError = async (
|
|
2000
|
-
output: __HttpResponse,
|
|
2001
|
-
context: __SerdeContext
|
|
2002
|
-
): Promise<UpdateApplicationCommandOutput> => {
|
|
2003
|
-
const parsedOutput: any = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseBody(output.body, context),
|
|
2006
|
-
};
|
|
2007
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2008
|
-
let errorCode = "UnknownError";
|
|
2009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
-
switch (errorCode) {
|
|
2011
|
-
case "CodeValidationException":
|
|
2012
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
2013
|
-
response = {
|
|
2014
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
2019
|
-
case "ConcurrentModificationException":
|
|
2020
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
2021
|
-
response = {
|
|
2022
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2023
|
-
name: errorCode,
|
|
2024
|
-
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
2026
|
-
break;
|
|
2027
|
-
case "InvalidArgumentException":
|
|
2028
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
2029
|
-
response = {
|
|
2030
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
2031
|
-
name: errorCode,
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
};
|
|
2034
|
-
break;
|
|
2035
|
-
case "ResourceInUseException":
|
|
2036
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
2037
|
-
response = {
|
|
2038
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2039
|
-
name: errorCode,
|
|
2040
|
-
$metadata: deserializeMetadata(output),
|
|
2041
|
-
};
|
|
2042
|
-
break;
|
|
2043
|
-
case "ResourceNotFoundException":
|
|
2044
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
2045
|
-
response = {
|
|
2046
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2047
|
-
name: errorCode,
|
|
2048
|
-
$metadata: deserializeMetadata(output),
|
|
2049
|
-
};
|
|
2050
|
-
break;
|
|
2051
|
-
case "UnsupportedOperationException":
|
|
2052
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
2053
|
-
response = {
|
|
2054
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2055
|
-
name: errorCode,
|
|
2056
|
-
$metadata: deserializeMetadata(output),
|
|
2057
|
-
};
|
|
2058
|
-
break;
|
|
2059
|
-
default:
|
|
2060
|
-
const parsedBody = parsedOutput.body;
|
|
2061
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2062
|
-
response = {
|
|
2063
|
-
...parsedBody,
|
|
2064
|
-
name: `${errorCode}`,
|
|
2065
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2066
|
-
$fault: "client",
|
|
2067
|
-
$metadata: deserializeMetadata(output),
|
|
2068
|
-
} as any;
|
|
2069
|
-
}
|
|
2070
|
-
const message = response.message || response.Message || errorCode;
|
|
2071
|
-
response.message = message;
|
|
2072
|
-
delete response.Message;
|
|
2073
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2074
|
-
};
|
|
2075
|
-
|
|
2076
|
-
const deserializeAws_json1_1CodeValidationExceptionResponse = async (
|
|
2077
|
-
parsedOutput: any,
|
|
2078
|
-
context: __SerdeContext
|
|
2079
|
-
): Promise<CodeValidationException> => {
|
|
2080
|
-
const body = parsedOutput.body;
|
|
2081
|
-
const deserialized: any = deserializeAws_json1_1CodeValidationException(body, context);
|
|
2082
|
-
const contents: CodeValidationException = {
|
|
2083
|
-
name: "CodeValidationException",
|
|
2084
|
-
$fault: "client",
|
|
2085
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2086
|
-
...deserialized,
|
|
2087
|
-
};
|
|
2088
|
-
return contents;
|
|
2089
|
-
};
|
|
2090
|
-
|
|
2091
|
-
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (
|
|
2092
|
-
parsedOutput: any,
|
|
2093
|
-
context: __SerdeContext
|
|
2094
|
-
): Promise<ConcurrentModificationException> => {
|
|
2095
|
-
const body = parsedOutput.body;
|
|
2096
|
-
const deserialized: any = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
2097
|
-
const contents: ConcurrentModificationException = {
|
|
2098
|
-
name: "ConcurrentModificationException",
|
|
2099
|
-
$fault: "client",
|
|
2100
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2101
|
-
...deserialized,
|
|
2102
|
-
};
|
|
2103
|
-
return contents;
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
const deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse = async (
|
|
2107
|
-
parsedOutput: any,
|
|
2108
|
-
context: __SerdeContext
|
|
2109
|
-
): Promise<InvalidApplicationConfigurationException> => {
|
|
2110
|
-
const body = parsedOutput.body;
|
|
2111
|
-
const deserialized: any = deserializeAws_json1_1InvalidApplicationConfigurationException(body, context);
|
|
2112
|
-
const contents: InvalidApplicationConfigurationException = {
|
|
2113
|
-
name: "InvalidApplicationConfigurationException",
|
|
2114
|
-
$fault: "client",
|
|
2115
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2116
|
-
...deserialized,
|
|
2117
|
-
};
|
|
2118
|
-
return contents;
|
|
2119
|
-
};
|
|
2120
|
-
|
|
2121
|
-
const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (
|
|
2122
|
-
parsedOutput: any,
|
|
2123
|
-
context: __SerdeContext
|
|
2124
|
-
): Promise<InvalidArgumentException> => {
|
|
2125
|
-
const body = parsedOutput.body;
|
|
2126
|
-
const deserialized: any = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
2127
|
-
const contents: InvalidArgumentException = {
|
|
2128
|
-
name: "InvalidArgumentException",
|
|
2129
|
-
$fault: "client",
|
|
2130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2131
|
-
...deserialized,
|
|
2132
|
-
};
|
|
2133
|
-
return contents;
|
|
2134
|
-
};
|
|
2135
|
-
|
|
2136
|
-
const deserializeAws_json1_1LimitExceededExceptionResponse = async (
|
|
2137
|
-
parsedOutput: any,
|
|
2138
|
-
context: __SerdeContext
|
|
2139
|
-
): Promise<LimitExceededException> => {
|
|
2140
|
-
const body = parsedOutput.body;
|
|
2141
|
-
const deserialized: any = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2142
|
-
const contents: LimitExceededException = {
|
|
2143
|
-
name: "LimitExceededException",
|
|
2144
|
-
$fault: "client",
|
|
2145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2146
|
-
...deserialized,
|
|
2147
|
-
};
|
|
2148
|
-
return contents;
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (
|
|
2152
|
-
parsedOutput: any,
|
|
2153
|
-
context: __SerdeContext
|
|
2154
|
-
): Promise<ResourceInUseException> => {
|
|
2155
|
-
const body = parsedOutput.body;
|
|
2156
|
-
const deserialized: any = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
2157
|
-
const contents: ResourceInUseException = {
|
|
2158
|
-
name: "ResourceInUseException",
|
|
2159
|
-
$fault: "client",
|
|
2160
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2161
|
-
...deserialized,
|
|
2162
|
-
};
|
|
2163
|
-
return contents;
|
|
2164
|
-
};
|
|
2165
|
-
|
|
2166
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
2167
|
-
parsedOutput: any,
|
|
2168
|
-
context: __SerdeContext
|
|
2169
|
-
): Promise<ResourceNotFoundException> => {
|
|
2170
|
-
const body = parsedOutput.body;
|
|
2171
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2172
|
-
const contents: ResourceNotFoundException = {
|
|
2173
|
-
name: "ResourceNotFoundException",
|
|
2174
|
-
$fault: "client",
|
|
2175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2176
|
-
...deserialized,
|
|
2177
|
-
};
|
|
2178
|
-
return contents;
|
|
2179
|
-
};
|
|
2180
|
-
|
|
2181
|
-
const deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse = async (
|
|
2182
|
-
parsedOutput: any,
|
|
2183
|
-
context: __SerdeContext
|
|
2184
|
-
): Promise<ResourceProvisionedThroughputExceededException> => {
|
|
2185
|
-
const body = parsedOutput.body;
|
|
2186
|
-
const deserialized: any = deserializeAws_json1_1ResourceProvisionedThroughputExceededException(body, context);
|
|
2187
|
-
const contents: ResourceProvisionedThroughputExceededException = {
|
|
2188
|
-
name: "ResourceProvisionedThroughputExceededException",
|
|
2189
|
-
$fault: "client",
|
|
2190
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2191
|
-
...deserialized,
|
|
2192
|
-
};
|
|
2193
|
-
return contents;
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (
|
|
2197
|
-
parsedOutput: any,
|
|
2198
|
-
context: __SerdeContext
|
|
2199
|
-
): Promise<ServiceUnavailableException> => {
|
|
2200
|
-
const body = parsedOutput.body;
|
|
2201
|
-
const deserialized: any = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2202
|
-
const contents: ServiceUnavailableException = {
|
|
2203
|
-
name: "ServiceUnavailableException",
|
|
2204
|
-
$fault: "server",
|
|
2205
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2206
|
-
...deserialized,
|
|
2207
|
-
};
|
|
2208
|
-
return contents;
|
|
2209
|
-
};
|
|
2210
|
-
|
|
2211
|
-
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (
|
|
2212
|
-
parsedOutput: any,
|
|
2213
|
-
context: __SerdeContext
|
|
2214
|
-
): Promise<TooManyTagsException> => {
|
|
2215
|
-
const body = parsedOutput.body;
|
|
2216
|
-
const deserialized: any = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2217
|
-
const contents: TooManyTagsException = {
|
|
2218
|
-
name: "TooManyTagsException",
|
|
2219
|
-
$fault: "client",
|
|
2220
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2221
|
-
...deserialized,
|
|
2222
|
-
};
|
|
2223
|
-
return contents;
|
|
2224
|
-
};
|
|
2225
|
-
|
|
2226
|
-
const deserializeAws_json1_1UnableToDetectSchemaExceptionResponse = async (
|
|
2227
|
-
parsedOutput: any,
|
|
2228
|
-
context: __SerdeContext
|
|
2229
|
-
): Promise<UnableToDetectSchemaException> => {
|
|
2230
|
-
const body = parsedOutput.body;
|
|
2231
|
-
const deserialized: any = deserializeAws_json1_1UnableToDetectSchemaException(body, context);
|
|
2232
|
-
const contents: UnableToDetectSchemaException = {
|
|
2233
|
-
name: "UnableToDetectSchemaException",
|
|
2234
|
-
$fault: "client",
|
|
2235
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2236
|
-
...deserialized,
|
|
2237
|
-
};
|
|
2238
|
-
return contents;
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (
|
|
2242
|
-
parsedOutput: any,
|
|
2243
|
-
context: __SerdeContext
|
|
2244
|
-
): Promise<UnsupportedOperationException> => {
|
|
2245
|
-
const body = parsedOutput.body;
|
|
2246
|
-
const deserialized: any = deserializeAws_json1_1UnsupportedOperationException(body, context);
|
|
2247
|
-
const contents: UnsupportedOperationException = {
|
|
2248
|
-
name: "UnsupportedOperationException",
|
|
2249
|
-
$fault: "client",
|
|
2250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2251
|
-
...deserialized,
|
|
2252
|
-
};
|
|
2253
|
-
return contents;
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
const serializeAws_json1_1AddApplicationCloudWatchLoggingOptionRequest = (
|
|
2257
|
-
input: AddApplicationCloudWatchLoggingOptionRequest,
|
|
2258
|
-
context: __SerdeContext
|
|
2259
|
-
): any => {
|
|
2260
|
-
return {
|
|
2261
|
-
...(input.ApplicationName !== undefined &&
|
|
2262
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2263
|
-
...(input.CloudWatchLoggingOption !== undefined &&
|
|
2264
|
-
input.CloudWatchLoggingOption !== null && {
|
|
2265
|
-
CloudWatchLoggingOption: serializeAws_json1_1CloudWatchLoggingOption(input.CloudWatchLoggingOption, context),
|
|
2266
|
-
}),
|
|
2267
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2268
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2269
|
-
};
|
|
2270
|
-
};
|
|
2271
|
-
|
|
2272
|
-
const serializeAws_json1_1AddApplicationInputProcessingConfigurationRequest = (
|
|
2273
|
-
input: AddApplicationInputProcessingConfigurationRequest,
|
|
2274
|
-
context: __SerdeContext
|
|
2275
|
-
): any => {
|
|
2276
|
-
return {
|
|
2277
|
-
...(input.ApplicationName !== undefined &&
|
|
2278
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2279
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2280
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2281
|
-
...(input.InputId !== undefined && input.InputId !== null && { InputId: input.InputId }),
|
|
2282
|
-
...(input.InputProcessingConfiguration !== undefined &&
|
|
2283
|
-
input.InputProcessingConfiguration !== null && {
|
|
2284
|
-
InputProcessingConfiguration: serializeAws_json1_1InputProcessingConfiguration(
|
|
2285
|
-
input.InputProcessingConfiguration,
|
|
2286
|
-
context
|
|
2287
|
-
),
|
|
2288
|
-
}),
|
|
2289
|
-
};
|
|
2290
|
-
};
|
|
2291
|
-
|
|
2292
|
-
const serializeAws_json1_1AddApplicationInputRequest = (
|
|
2293
|
-
input: AddApplicationInputRequest,
|
|
2294
|
-
context: __SerdeContext
|
|
2295
|
-
): any => {
|
|
2296
|
-
return {
|
|
2297
|
-
...(input.ApplicationName !== undefined &&
|
|
2298
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2299
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2300
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2301
|
-
...(input.Input !== undefined &&
|
|
2302
|
-
input.Input !== null && { Input: serializeAws_json1_1Input(input.Input, context) }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
const serializeAws_json1_1AddApplicationOutputRequest = (
|
|
2307
|
-
input: AddApplicationOutputRequest,
|
|
2308
|
-
context: __SerdeContext
|
|
2309
|
-
): any => {
|
|
2310
|
-
return {
|
|
2311
|
-
...(input.ApplicationName !== undefined &&
|
|
2312
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2313
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2314
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2315
|
-
...(input.Output !== undefined &&
|
|
2316
|
-
input.Output !== null && { Output: serializeAws_json1_1Output(input.Output, context) }),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
|
|
2320
|
-
const serializeAws_json1_1AddApplicationReferenceDataSourceRequest = (
|
|
2321
|
-
input: AddApplicationReferenceDataSourceRequest,
|
|
2322
|
-
context: __SerdeContext
|
|
2323
|
-
): any => {
|
|
2324
|
-
return {
|
|
2325
|
-
...(input.ApplicationName !== undefined &&
|
|
2326
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2327
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2328
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2329
|
-
...(input.ReferenceDataSource !== undefined &&
|
|
2330
|
-
input.ReferenceDataSource !== null && {
|
|
2331
|
-
ReferenceDataSource: serializeAws_json1_1ReferenceDataSource(input.ReferenceDataSource, context),
|
|
2332
|
-
}),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
|
|
2336
|
-
const serializeAws_json1_1ApplicationUpdate = (input: ApplicationUpdate, context: __SerdeContext): any => {
|
|
2337
|
-
return {
|
|
2338
|
-
...(input.ApplicationCodeUpdate !== undefined &&
|
|
2339
|
-
input.ApplicationCodeUpdate !== null && { ApplicationCodeUpdate: input.ApplicationCodeUpdate }),
|
|
2340
|
-
...(input.CloudWatchLoggingOptionUpdates !== undefined &&
|
|
2341
|
-
input.CloudWatchLoggingOptionUpdates !== null && {
|
|
2342
|
-
CloudWatchLoggingOptionUpdates: serializeAws_json1_1CloudWatchLoggingOptionUpdates(
|
|
2343
|
-
input.CloudWatchLoggingOptionUpdates,
|
|
2344
|
-
context
|
|
2345
|
-
),
|
|
2346
|
-
}),
|
|
2347
|
-
...(input.InputUpdates !== undefined &&
|
|
2348
|
-
input.InputUpdates !== null && { InputUpdates: serializeAws_json1_1InputUpdates(input.InputUpdates, context) }),
|
|
2349
|
-
...(input.OutputUpdates !== undefined &&
|
|
2350
|
-
input.OutputUpdates !== null && {
|
|
2351
|
-
OutputUpdates: serializeAws_json1_1OutputUpdates(input.OutputUpdates, context),
|
|
2352
|
-
}),
|
|
2353
|
-
...(input.ReferenceDataSourceUpdates !== undefined &&
|
|
2354
|
-
input.ReferenceDataSourceUpdates !== null && {
|
|
2355
|
-
ReferenceDataSourceUpdates: serializeAws_json1_1ReferenceDataSourceUpdates(
|
|
2356
|
-
input.ReferenceDataSourceUpdates,
|
|
2357
|
-
context
|
|
2358
|
-
),
|
|
2359
|
-
}),
|
|
2360
|
-
};
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
const serializeAws_json1_1CloudWatchLoggingOption = (input: CloudWatchLoggingOption, context: __SerdeContext): any => {
|
|
2364
|
-
return {
|
|
2365
|
-
...(input.LogStreamARN !== undefined && input.LogStreamARN !== null && { LogStreamARN: input.LogStreamARN }),
|
|
2366
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2367
|
-
};
|
|
2368
|
-
};
|
|
2369
|
-
|
|
2370
|
-
const serializeAws_json1_1CloudWatchLoggingOptions = (
|
|
2371
|
-
input: CloudWatchLoggingOption[],
|
|
2372
|
-
context: __SerdeContext
|
|
2373
|
-
): any => {
|
|
2374
|
-
return input
|
|
2375
|
-
.filter((e: any) => e != null)
|
|
2376
|
-
.map((entry) => {
|
|
2377
|
-
if (entry === null) {
|
|
2378
|
-
return null as any;
|
|
2379
|
-
}
|
|
2380
|
-
return serializeAws_json1_1CloudWatchLoggingOption(entry, context);
|
|
2381
|
-
});
|
|
2382
|
-
};
|
|
2383
|
-
|
|
2384
|
-
const serializeAws_json1_1CloudWatchLoggingOptionUpdate = (
|
|
2385
|
-
input: CloudWatchLoggingOptionUpdate,
|
|
2386
|
-
context: __SerdeContext
|
|
2387
|
-
): any => {
|
|
2388
|
-
return {
|
|
2389
|
-
...(input.CloudWatchLoggingOptionId !== undefined &&
|
|
2390
|
-
input.CloudWatchLoggingOptionId !== null && { CloudWatchLoggingOptionId: input.CloudWatchLoggingOptionId }),
|
|
2391
|
-
...(input.LogStreamARNUpdate !== undefined &&
|
|
2392
|
-
input.LogStreamARNUpdate !== null && { LogStreamARNUpdate: input.LogStreamARNUpdate }),
|
|
2393
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
|
|
2397
|
-
const serializeAws_json1_1CloudWatchLoggingOptionUpdates = (
|
|
2398
|
-
input: CloudWatchLoggingOptionUpdate[],
|
|
2399
|
-
context: __SerdeContext
|
|
2400
|
-
): any => {
|
|
2401
|
-
return input
|
|
2402
|
-
.filter((e: any) => e != null)
|
|
2403
|
-
.map((entry) => {
|
|
2404
|
-
if (entry === null) {
|
|
2405
|
-
return null as any;
|
|
2406
|
-
}
|
|
2407
|
-
return serializeAws_json1_1CloudWatchLoggingOptionUpdate(entry, context);
|
|
2408
|
-
});
|
|
2409
|
-
};
|
|
2410
|
-
|
|
2411
|
-
const serializeAws_json1_1CreateApplicationRequest = (
|
|
2412
|
-
input: CreateApplicationRequest,
|
|
2413
|
-
context: __SerdeContext
|
|
2414
|
-
): any => {
|
|
2415
|
-
return {
|
|
2416
|
-
...(input.ApplicationCode !== undefined &&
|
|
2417
|
-
input.ApplicationCode !== null && { ApplicationCode: input.ApplicationCode }),
|
|
2418
|
-
...(input.ApplicationDescription !== undefined &&
|
|
2419
|
-
input.ApplicationDescription !== null && { ApplicationDescription: input.ApplicationDescription }),
|
|
2420
|
-
...(input.ApplicationName !== undefined &&
|
|
2421
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2422
|
-
...(input.CloudWatchLoggingOptions !== undefined &&
|
|
2423
|
-
input.CloudWatchLoggingOptions !== null && {
|
|
2424
|
-
CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
|
|
2425
|
-
}),
|
|
2426
|
-
...(input.Inputs !== undefined &&
|
|
2427
|
-
input.Inputs !== null && { Inputs: serializeAws_json1_1Inputs(input.Inputs, context) }),
|
|
2428
|
-
...(input.Outputs !== undefined &&
|
|
2429
|
-
input.Outputs !== null && { Outputs: serializeAws_json1_1Outputs(input.Outputs, context) }),
|
|
2430
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
|
|
2434
|
-
const serializeAws_json1_1CSVMappingParameters = (input: CSVMappingParameters, context: __SerdeContext): any => {
|
|
2435
|
-
return {
|
|
2436
|
-
...(input.RecordColumnDelimiter !== undefined &&
|
|
2437
|
-
input.RecordColumnDelimiter !== null && { RecordColumnDelimiter: input.RecordColumnDelimiter }),
|
|
2438
|
-
...(input.RecordRowDelimiter !== undefined &&
|
|
2439
|
-
input.RecordRowDelimiter !== null && { RecordRowDelimiter: input.RecordRowDelimiter }),
|
|
2440
|
-
};
|
|
2441
|
-
};
|
|
2442
|
-
|
|
2443
|
-
const serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionRequest = (
|
|
2444
|
-
input: DeleteApplicationCloudWatchLoggingOptionRequest,
|
|
2445
|
-
context: __SerdeContext
|
|
2446
|
-
): any => {
|
|
2447
|
-
return {
|
|
2448
|
-
...(input.ApplicationName !== undefined &&
|
|
2449
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2450
|
-
...(input.CloudWatchLoggingOptionId !== undefined &&
|
|
2451
|
-
input.CloudWatchLoggingOptionId !== null && { CloudWatchLoggingOptionId: input.CloudWatchLoggingOptionId }),
|
|
2452
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2453
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2454
|
-
};
|
|
2455
|
-
};
|
|
2456
|
-
|
|
2457
|
-
const serializeAws_json1_1DeleteApplicationInputProcessingConfigurationRequest = (
|
|
2458
|
-
input: DeleteApplicationInputProcessingConfigurationRequest,
|
|
2459
|
-
context: __SerdeContext
|
|
2460
|
-
): any => {
|
|
2461
|
-
return {
|
|
2462
|
-
...(input.ApplicationName !== undefined &&
|
|
2463
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2464
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2465
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2466
|
-
...(input.InputId !== undefined && input.InputId !== null && { InputId: input.InputId }),
|
|
2467
|
-
};
|
|
2468
|
-
};
|
|
2469
|
-
|
|
2470
|
-
const serializeAws_json1_1DeleteApplicationOutputRequest = (
|
|
2471
|
-
input: DeleteApplicationOutputRequest,
|
|
2472
|
-
context: __SerdeContext
|
|
2473
|
-
): any => {
|
|
2474
|
-
return {
|
|
2475
|
-
...(input.ApplicationName !== undefined &&
|
|
2476
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2477
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2478
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2479
|
-
...(input.OutputId !== undefined && input.OutputId !== null && { OutputId: input.OutputId }),
|
|
2480
|
-
};
|
|
2481
|
-
};
|
|
2482
|
-
|
|
2483
|
-
const serializeAws_json1_1DeleteApplicationReferenceDataSourceRequest = (
|
|
2484
|
-
input: DeleteApplicationReferenceDataSourceRequest,
|
|
2485
|
-
context: __SerdeContext
|
|
2486
|
-
): any => {
|
|
2487
|
-
return {
|
|
2488
|
-
...(input.ApplicationName !== undefined &&
|
|
2489
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2490
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
2491
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
2492
|
-
...(input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId }),
|
|
2493
|
-
};
|
|
2494
|
-
};
|
|
2495
|
-
|
|
2496
|
-
const serializeAws_json1_1DeleteApplicationRequest = (
|
|
2497
|
-
input: DeleteApplicationRequest,
|
|
2498
|
-
context: __SerdeContext
|
|
2499
|
-
): any => {
|
|
2500
|
-
return {
|
|
2501
|
-
...(input.ApplicationName !== undefined &&
|
|
2502
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2503
|
-
...(input.CreateTimestamp !== undefined &&
|
|
2504
|
-
input.CreateTimestamp !== null && { CreateTimestamp: Math.round(input.CreateTimestamp.getTime() / 1000) }),
|
|
2505
|
-
};
|
|
2506
|
-
};
|
|
2507
|
-
|
|
2508
|
-
const serializeAws_json1_1DescribeApplicationRequest = (
|
|
2509
|
-
input: DescribeApplicationRequest,
|
|
2510
|
-
context: __SerdeContext
|
|
2511
|
-
): any => {
|
|
2512
|
-
return {
|
|
2513
|
-
...(input.ApplicationName !== undefined &&
|
|
2514
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
2515
|
-
};
|
|
2516
|
-
};
|
|
2517
|
-
|
|
2518
|
-
const serializeAws_json1_1DestinationSchema = (input: DestinationSchema, context: __SerdeContext): any => {
|
|
2519
|
-
return {
|
|
2520
|
-
...(input.RecordFormatType !== undefined &&
|
|
2521
|
-
input.RecordFormatType !== null && { RecordFormatType: input.RecordFormatType }),
|
|
2522
|
-
};
|
|
2523
|
-
};
|
|
2524
|
-
|
|
2525
|
-
const serializeAws_json1_1DiscoverInputSchemaRequest = (
|
|
2526
|
-
input: DiscoverInputSchemaRequest,
|
|
2527
|
-
context: __SerdeContext
|
|
2528
|
-
): any => {
|
|
2529
|
-
return {
|
|
2530
|
-
...(input.InputProcessingConfiguration !== undefined &&
|
|
2531
|
-
input.InputProcessingConfiguration !== null && {
|
|
2532
|
-
InputProcessingConfiguration: serializeAws_json1_1InputProcessingConfiguration(
|
|
2533
|
-
input.InputProcessingConfiguration,
|
|
2534
|
-
context
|
|
2535
|
-
),
|
|
2536
|
-
}),
|
|
2537
|
-
...(input.InputStartingPositionConfiguration !== undefined &&
|
|
2538
|
-
input.InputStartingPositionConfiguration !== null && {
|
|
2539
|
-
InputStartingPositionConfiguration: serializeAws_json1_1InputStartingPositionConfiguration(
|
|
2540
|
-
input.InputStartingPositionConfiguration,
|
|
2541
|
-
context
|
|
2542
|
-
),
|
|
2543
|
-
}),
|
|
2544
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2545
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2546
|
-
...(input.S3Configuration !== undefined &&
|
|
2547
|
-
input.S3Configuration !== null && {
|
|
2548
|
-
S3Configuration: serializeAws_json1_1S3Configuration(input.S3Configuration, context),
|
|
2549
|
-
}),
|
|
2550
|
-
};
|
|
2551
|
-
};
|
|
2552
|
-
|
|
2553
|
-
const serializeAws_json1_1Input = (input: Input, context: __SerdeContext): any => {
|
|
2554
|
-
return {
|
|
2555
|
-
...(input.InputParallelism !== undefined &&
|
|
2556
|
-
input.InputParallelism !== null && {
|
|
2557
|
-
InputParallelism: serializeAws_json1_1InputParallelism(input.InputParallelism, context),
|
|
2558
|
-
}),
|
|
2559
|
-
...(input.InputProcessingConfiguration !== undefined &&
|
|
2560
|
-
input.InputProcessingConfiguration !== null && {
|
|
2561
|
-
InputProcessingConfiguration: serializeAws_json1_1InputProcessingConfiguration(
|
|
2562
|
-
input.InputProcessingConfiguration,
|
|
2563
|
-
context
|
|
2564
|
-
),
|
|
2565
|
-
}),
|
|
2566
|
-
...(input.InputSchema !== undefined &&
|
|
2567
|
-
input.InputSchema !== null && { InputSchema: serializeAws_json1_1SourceSchema(input.InputSchema, context) }),
|
|
2568
|
-
...(input.KinesisFirehoseInput !== undefined &&
|
|
2569
|
-
input.KinesisFirehoseInput !== null && {
|
|
2570
|
-
KinesisFirehoseInput: serializeAws_json1_1KinesisFirehoseInput(input.KinesisFirehoseInput, context),
|
|
2571
|
-
}),
|
|
2572
|
-
...(input.KinesisStreamsInput !== undefined &&
|
|
2573
|
-
input.KinesisStreamsInput !== null && {
|
|
2574
|
-
KinesisStreamsInput: serializeAws_json1_1KinesisStreamsInput(input.KinesisStreamsInput, context),
|
|
2575
|
-
}),
|
|
2576
|
-
...(input.NamePrefix !== undefined && input.NamePrefix !== null && { NamePrefix: input.NamePrefix }),
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
|
|
2580
|
-
const serializeAws_json1_1InputConfiguration = (input: InputConfiguration, context: __SerdeContext): any => {
|
|
2581
|
-
return {
|
|
2582
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
2583
|
-
...(input.InputStartingPositionConfiguration !== undefined &&
|
|
2584
|
-
input.InputStartingPositionConfiguration !== null && {
|
|
2585
|
-
InputStartingPositionConfiguration: serializeAws_json1_1InputStartingPositionConfiguration(
|
|
2586
|
-
input.InputStartingPositionConfiguration,
|
|
2587
|
-
context
|
|
2588
|
-
),
|
|
2589
|
-
}),
|
|
2590
|
-
};
|
|
2591
|
-
};
|
|
2592
|
-
|
|
2593
|
-
const serializeAws_json1_1InputConfigurations = (input: InputConfiguration[], context: __SerdeContext): any => {
|
|
2594
|
-
return input
|
|
2595
|
-
.filter((e: any) => e != null)
|
|
2596
|
-
.map((entry) => {
|
|
2597
|
-
if (entry === null) {
|
|
2598
|
-
return null as any;
|
|
2599
|
-
}
|
|
2600
|
-
return serializeAws_json1_1InputConfiguration(entry, context);
|
|
2601
|
-
});
|
|
2602
|
-
};
|
|
2603
|
-
|
|
2604
|
-
const serializeAws_json1_1InputLambdaProcessor = (input: InputLambdaProcessor, context: __SerdeContext): any => {
|
|
2605
|
-
return {
|
|
2606
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2607
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
const serializeAws_json1_1InputLambdaProcessorUpdate = (
|
|
2612
|
-
input: InputLambdaProcessorUpdate,
|
|
2613
|
-
context: __SerdeContext
|
|
2614
|
-
): any => {
|
|
2615
|
-
return {
|
|
2616
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2617
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2618
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2619
|
-
};
|
|
2620
|
-
};
|
|
2621
|
-
|
|
2622
|
-
const serializeAws_json1_1InputParallelism = (input: InputParallelism, context: __SerdeContext): any => {
|
|
2623
|
-
return {
|
|
2624
|
-
...(input.Count !== undefined && input.Count !== null && { Count: input.Count }),
|
|
2625
|
-
};
|
|
2626
|
-
};
|
|
2627
|
-
|
|
2628
|
-
const serializeAws_json1_1InputParallelismUpdate = (input: InputParallelismUpdate, context: __SerdeContext): any => {
|
|
2629
|
-
return {
|
|
2630
|
-
...(input.CountUpdate !== undefined && input.CountUpdate !== null && { CountUpdate: input.CountUpdate }),
|
|
2631
|
-
};
|
|
2632
|
-
};
|
|
2633
|
-
|
|
2634
|
-
const serializeAws_json1_1InputProcessingConfiguration = (
|
|
2635
|
-
input: InputProcessingConfiguration,
|
|
2636
|
-
context: __SerdeContext
|
|
2637
|
-
): any => {
|
|
2638
|
-
return {
|
|
2639
|
-
...(input.InputLambdaProcessor !== undefined &&
|
|
2640
|
-
input.InputLambdaProcessor !== null && {
|
|
2641
|
-
InputLambdaProcessor: serializeAws_json1_1InputLambdaProcessor(input.InputLambdaProcessor, context),
|
|
2642
|
-
}),
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
|
|
2646
|
-
const serializeAws_json1_1InputProcessingConfigurationUpdate = (
|
|
2647
|
-
input: InputProcessingConfigurationUpdate,
|
|
2648
|
-
context: __SerdeContext
|
|
2649
|
-
): any => {
|
|
2650
|
-
return {
|
|
2651
|
-
...(input.InputLambdaProcessorUpdate !== undefined &&
|
|
2652
|
-
input.InputLambdaProcessorUpdate !== null && {
|
|
2653
|
-
InputLambdaProcessorUpdate: serializeAws_json1_1InputLambdaProcessorUpdate(
|
|
2654
|
-
input.InputLambdaProcessorUpdate,
|
|
2655
|
-
context
|
|
2656
|
-
),
|
|
2657
|
-
}),
|
|
2658
|
-
};
|
|
2659
|
-
};
|
|
2660
|
-
|
|
2661
|
-
const serializeAws_json1_1Inputs = (input: Input[], context: __SerdeContext): any => {
|
|
2662
|
-
return input
|
|
2663
|
-
.filter((e: any) => e != null)
|
|
2664
|
-
.map((entry) => {
|
|
2665
|
-
if (entry === null) {
|
|
2666
|
-
return null as any;
|
|
2667
|
-
}
|
|
2668
|
-
return serializeAws_json1_1Input(entry, context);
|
|
2669
|
-
});
|
|
2670
|
-
};
|
|
2671
|
-
|
|
2672
|
-
const serializeAws_json1_1InputSchemaUpdate = (input: InputSchemaUpdate, context: __SerdeContext): any => {
|
|
2673
|
-
return {
|
|
2674
|
-
...(input.RecordColumnUpdates !== undefined &&
|
|
2675
|
-
input.RecordColumnUpdates !== null && {
|
|
2676
|
-
RecordColumnUpdates: serializeAws_json1_1RecordColumns(input.RecordColumnUpdates, context),
|
|
2677
|
-
}),
|
|
2678
|
-
...(input.RecordEncodingUpdate !== undefined &&
|
|
2679
|
-
input.RecordEncodingUpdate !== null && { RecordEncodingUpdate: input.RecordEncodingUpdate }),
|
|
2680
|
-
...(input.RecordFormatUpdate !== undefined &&
|
|
2681
|
-
input.RecordFormatUpdate !== null && {
|
|
2682
|
-
RecordFormatUpdate: serializeAws_json1_1RecordFormat(input.RecordFormatUpdate, context),
|
|
2683
|
-
}),
|
|
2684
|
-
};
|
|
2685
|
-
};
|
|
2686
|
-
|
|
2687
|
-
const serializeAws_json1_1InputStartingPositionConfiguration = (
|
|
2688
|
-
input: InputStartingPositionConfiguration,
|
|
2689
|
-
context: __SerdeContext
|
|
2690
|
-
): any => {
|
|
2691
|
-
return {
|
|
2692
|
-
...(input.InputStartingPosition !== undefined &&
|
|
2693
|
-
input.InputStartingPosition !== null && { InputStartingPosition: input.InputStartingPosition }),
|
|
2694
|
-
};
|
|
2695
|
-
};
|
|
2696
|
-
|
|
2697
|
-
const serializeAws_json1_1InputUpdate = (input: InputUpdate, context: __SerdeContext): any => {
|
|
2698
|
-
return {
|
|
2699
|
-
...(input.InputId !== undefined && input.InputId !== null && { InputId: input.InputId }),
|
|
2700
|
-
...(input.InputParallelismUpdate !== undefined &&
|
|
2701
|
-
input.InputParallelismUpdate !== null && {
|
|
2702
|
-
InputParallelismUpdate: serializeAws_json1_1InputParallelismUpdate(input.InputParallelismUpdate, context),
|
|
2703
|
-
}),
|
|
2704
|
-
...(input.InputProcessingConfigurationUpdate !== undefined &&
|
|
2705
|
-
input.InputProcessingConfigurationUpdate !== null && {
|
|
2706
|
-
InputProcessingConfigurationUpdate: serializeAws_json1_1InputProcessingConfigurationUpdate(
|
|
2707
|
-
input.InputProcessingConfigurationUpdate,
|
|
2708
|
-
context
|
|
2709
|
-
),
|
|
2710
|
-
}),
|
|
2711
|
-
...(input.InputSchemaUpdate !== undefined &&
|
|
2712
|
-
input.InputSchemaUpdate !== null && {
|
|
2713
|
-
InputSchemaUpdate: serializeAws_json1_1InputSchemaUpdate(input.InputSchemaUpdate, context),
|
|
2714
|
-
}),
|
|
2715
|
-
...(input.KinesisFirehoseInputUpdate !== undefined &&
|
|
2716
|
-
input.KinesisFirehoseInputUpdate !== null && {
|
|
2717
|
-
KinesisFirehoseInputUpdate: serializeAws_json1_1KinesisFirehoseInputUpdate(
|
|
2718
|
-
input.KinesisFirehoseInputUpdate,
|
|
2719
|
-
context
|
|
2720
|
-
),
|
|
2721
|
-
}),
|
|
2722
|
-
...(input.KinesisStreamsInputUpdate !== undefined &&
|
|
2723
|
-
input.KinesisStreamsInputUpdate !== null && {
|
|
2724
|
-
KinesisStreamsInputUpdate: serializeAws_json1_1KinesisStreamsInputUpdate(
|
|
2725
|
-
input.KinesisStreamsInputUpdate,
|
|
2726
|
-
context
|
|
2727
|
-
),
|
|
2728
|
-
}),
|
|
2729
|
-
...(input.NamePrefixUpdate !== undefined &&
|
|
2730
|
-
input.NamePrefixUpdate !== null && { NamePrefixUpdate: input.NamePrefixUpdate }),
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
|
|
2734
|
-
const serializeAws_json1_1InputUpdates = (input: InputUpdate[], context: __SerdeContext): any => {
|
|
2735
|
-
return input
|
|
2736
|
-
.filter((e: any) => e != null)
|
|
2737
|
-
.map((entry) => {
|
|
2738
|
-
if (entry === null) {
|
|
2739
|
-
return null as any;
|
|
2740
|
-
}
|
|
2741
|
-
return serializeAws_json1_1InputUpdate(entry, context);
|
|
2742
|
-
});
|
|
2743
|
-
};
|
|
2744
|
-
|
|
2745
|
-
const serializeAws_json1_1JSONMappingParameters = (input: JSONMappingParameters, context: __SerdeContext): any => {
|
|
2746
|
-
return {
|
|
2747
|
-
...(input.RecordRowPath !== undefined && input.RecordRowPath !== null && { RecordRowPath: input.RecordRowPath }),
|
|
2748
|
-
};
|
|
2749
|
-
};
|
|
2750
|
-
|
|
2751
|
-
const serializeAws_json1_1KinesisFirehoseInput = (input: KinesisFirehoseInput, context: __SerdeContext): any => {
|
|
2752
|
-
return {
|
|
2753
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2754
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
|
|
2758
|
-
const serializeAws_json1_1KinesisFirehoseInputUpdate = (
|
|
2759
|
-
input: KinesisFirehoseInputUpdate,
|
|
2760
|
-
context: __SerdeContext
|
|
2761
|
-
): any => {
|
|
2762
|
-
return {
|
|
2763
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2764
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2765
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2766
|
-
};
|
|
2767
|
-
};
|
|
2768
|
-
|
|
2769
|
-
const serializeAws_json1_1KinesisFirehoseOutput = (input: KinesisFirehoseOutput, context: __SerdeContext): any => {
|
|
2770
|
-
return {
|
|
2771
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2772
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2773
|
-
};
|
|
2774
|
-
};
|
|
2775
|
-
|
|
2776
|
-
const serializeAws_json1_1KinesisFirehoseOutputUpdate = (
|
|
2777
|
-
input: KinesisFirehoseOutputUpdate,
|
|
2778
|
-
context: __SerdeContext
|
|
2779
|
-
): any => {
|
|
2780
|
-
return {
|
|
2781
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2782
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2783
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2784
|
-
};
|
|
2785
|
-
};
|
|
2786
|
-
|
|
2787
|
-
const serializeAws_json1_1KinesisStreamsInput = (input: KinesisStreamsInput, context: __SerdeContext): any => {
|
|
2788
|
-
return {
|
|
2789
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2790
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2791
|
-
};
|
|
2792
|
-
};
|
|
2793
|
-
|
|
2794
|
-
const serializeAws_json1_1KinesisStreamsInputUpdate = (
|
|
2795
|
-
input: KinesisStreamsInputUpdate,
|
|
2796
|
-
context: __SerdeContext
|
|
2797
|
-
): any => {
|
|
2798
|
-
return {
|
|
2799
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2800
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2801
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2802
|
-
};
|
|
2803
|
-
};
|
|
2804
|
-
|
|
2805
|
-
const serializeAws_json1_1KinesisStreamsOutput = (input: KinesisStreamsOutput, context: __SerdeContext): any => {
|
|
2806
|
-
return {
|
|
2807
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2808
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2809
|
-
};
|
|
2810
|
-
};
|
|
2811
|
-
|
|
2812
|
-
const serializeAws_json1_1KinesisStreamsOutputUpdate = (
|
|
2813
|
-
input: KinesisStreamsOutputUpdate,
|
|
2814
|
-
context: __SerdeContext
|
|
2815
|
-
): any => {
|
|
2816
|
-
return {
|
|
2817
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2818
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2819
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2820
|
-
};
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
const serializeAws_json1_1LambdaOutput = (input: LambdaOutput, context: __SerdeContext): any => {
|
|
2824
|
-
return {
|
|
2825
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2826
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
2827
|
-
};
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
const serializeAws_json1_1LambdaOutputUpdate = (input: LambdaOutputUpdate, context: __SerdeContext): any => {
|
|
2831
|
-
return {
|
|
2832
|
-
...(input.ResourceARNUpdate !== undefined &&
|
|
2833
|
-
input.ResourceARNUpdate !== null && { ResourceARNUpdate: input.ResourceARNUpdate }),
|
|
2834
|
-
...(input.RoleARNUpdate !== undefined && input.RoleARNUpdate !== null && { RoleARNUpdate: input.RoleARNUpdate }),
|
|
2835
|
-
};
|
|
2836
|
-
};
|
|
2837
|
-
|
|
2838
|
-
const serializeAws_json1_1ListApplicationsRequest = (input: ListApplicationsRequest, context: __SerdeContext): any => {
|
|
2839
|
-
return {
|
|
2840
|
-
...(input.ExclusiveStartApplicationName !== undefined &&
|
|
2841
|
-
input.ExclusiveStartApplicationName !== null && {
|
|
2842
|
-
ExclusiveStartApplicationName: input.ExclusiveStartApplicationName,
|
|
2843
|
-
}),
|
|
2844
|
-
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
2845
|
-
};
|
|
2846
|
-
};
|
|
2847
|
-
|
|
2848
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
2849
|
-
input: ListTagsForResourceRequest,
|
|
2850
|
-
context: __SerdeContext
|
|
2851
|
-
): any => {
|
|
2852
|
-
return {
|
|
2853
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
2854
|
-
};
|
|
2855
|
-
};
|
|
2856
|
-
|
|
2857
|
-
const serializeAws_json1_1MappingParameters = (input: MappingParameters, context: __SerdeContext): any => {
|
|
2858
|
-
return {
|
|
2859
|
-
...(input.CSVMappingParameters !== undefined &&
|
|
2860
|
-
input.CSVMappingParameters !== null && {
|
|
2861
|
-
CSVMappingParameters: serializeAws_json1_1CSVMappingParameters(input.CSVMappingParameters, context),
|
|
2862
|
-
}),
|
|
2863
|
-
...(input.JSONMappingParameters !== undefined &&
|
|
2864
|
-
input.JSONMappingParameters !== null && {
|
|
2865
|
-
JSONMappingParameters: serializeAws_json1_1JSONMappingParameters(input.JSONMappingParameters, context),
|
|
2866
|
-
}),
|
|
2867
|
-
};
|
|
2868
|
-
};
|
|
2869
|
-
|
|
2870
|
-
const serializeAws_json1_1Output = (input: Output, context: __SerdeContext): any => {
|
|
2871
|
-
return {
|
|
2872
|
-
...(input.DestinationSchema !== undefined &&
|
|
2873
|
-
input.DestinationSchema !== null && {
|
|
2874
|
-
DestinationSchema: serializeAws_json1_1DestinationSchema(input.DestinationSchema, context),
|
|
2875
|
-
}),
|
|
2876
|
-
...(input.KinesisFirehoseOutput !== undefined &&
|
|
2877
|
-
input.KinesisFirehoseOutput !== null && {
|
|
2878
|
-
KinesisFirehoseOutput: serializeAws_json1_1KinesisFirehoseOutput(input.KinesisFirehoseOutput, context),
|
|
2879
|
-
}),
|
|
2880
|
-
...(input.KinesisStreamsOutput !== undefined &&
|
|
2881
|
-
input.KinesisStreamsOutput !== null && {
|
|
2882
|
-
KinesisStreamsOutput: serializeAws_json1_1KinesisStreamsOutput(input.KinesisStreamsOutput, context),
|
|
2883
|
-
}),
|
|
2884
|
-
...(input.LambdaOutput !== undefined &&
|
|
2885
|
-
input.LambdaOutput !== null && { LambdaOutput: serializeAws_json1_1LambdaOutput(input.LambdaOutput, context) }),
|
|
2886
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2887
|
-
};
|
|
2888
|
-
};
|
|
2889
|
-
|
|
2890
|
-
const serializeAws_json1_1Outputs = (input: Output[], context: __SerdeContext): any => {
|
|
2891
|
-
return input
|
|
2892
|
-
.filter((e: any) => e != null)
|
|
2893
|
-
.map((entry) => {
|
|
2894
|
-
if (entry === null) {
|
|
2895
|
-
return null as any;
|
|
2896
|
-
}
|
|
2897
|
-
return serializeAws_json1_1Output(entry, context);
|
|
2898
|
-
});
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
|
-
const serializeAws_json1_1OutputUpdate = (input: OutputUpdate, context: __SerdeContext): any => {
|
|
2902
|
-
return {
|
|
2903
|
-
...(input.DestinationSchemaUpdate !== undefined &&
|
|
2904
|
-
input.DestinationSchemaUpdate !== null && {
|
|
2905
|
-
DestinationSchemaUpdate: serializeAws_json1_1DestinationSchema(input.DestinationSchemaUpdate, context),
|
|
2906
|
-
}),
|
|
2907
|
-
...(input.KinesisFirehoseOutputUpdate !== undefined &&
|
|
2908
|
-
input.KinesisFirehoseOutputUpdate !== null && {
|
|
2909
|
-
KinesisFirehoseOutputUpdate: serializeAws_json1_1KinesisFirehoseOutputUpdate(
|
|
2910
|
-
input.KinesisFirehoseOutputUpdate,
|
|
2911
|
-
context
|
|
2912
|
-
),
|
|
2913
|
-
}),
|
|
2914
|
-
...(input.KinesisStreamsOutputUpdate !== undefined &&
|
|
2915
|
-
input.KinesisStreamsOutputUpdate !== null && {
|
|
2916
|
-
KinesisStreamsOutputUpdate: serializeAws_json1_1KinesisStreamsOutputUpdate(
|
|
2917
|
-
input.KinesisStreamsOutputUpdate,
|
|
2918
|
-
context
|
|
2919
|
-
),
|
|
2920
|
-
}),
|
|
2921
|
-
...(input.LambdaOutputUpdate !== undefined &&
|
|
2922
|
-
input.LambdaOutputUpdate !== null && {
|
|
2923
|
-
LambdaOutputUpdate: serializeAws_json1_1LambdaOutputUpdate(input.LambdaOutputUpdate, context),
|
|
2924
|
-
}),
|
|
2925
|
-
...(input.NameUpdate !== undefined && input.NameUpdate !== null && { NameUpdate: input.NameUpdate }),
|
|
2926
|
-
...(input.OutputId !== undefined && input.OutputId !== null && { OutputId: input.OutputId }),
|
|
2927
|
-
};
|
|
2928
|
-
};
|
|
2929
|
-
|
|
2930
|
-
const serializeAws_json1_1OutputUpdates = (input: OutputUpdate[], context: __SerdeContext): any => {
|
|
2931
|
-
return input
|
|
2932
|
-
.filter((e: any) => e != null)
|
|
2933
|
-
.map((entry) => {
|
|
2934
|
-
if (entry === null) {
|
|
2935
|
-
return null as any;
|
|
2936
|
-
}
|
|
2937
|
-
return serializeAws_json1_1OutputUpdate(entry, context);
|
|
2938
|
-
});
|
|
2939
|
-
};
|
|
2940
|
-
|
|
2941
|
-
const serializeAws_json1_1RecordColumn = (input: RecordColumn, context: __SerdeContext): any => {
|
|
2942
|
-
return {
|
|
2943
|
-
...(input.Mapping !== undefined && input.Mapping !== null && { Mapping: input.Mapping }),
|
|
2944
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2945
|
-
...(input.SqlType !== undefined && input.SqlType !== null && { SqlType: input.SqlType }),
|
|
2946
|
-
};
|
|
2947
|
-
};
|
|
2948
|
-
|
|
2949
|
-
const serializeAws_json1_1RecordColumns = (input: RecordColumn[], context: __SerdeContext): any => {
|
|
2950
|
-
return input
|
|
2951
|
-
.filter((e: any) => e != null)
|
|
2952
|
-
.map((entry) => {
|
|
2953
|
-
if (entry === null) {
|
|
2954
|
-
return null as any;
|
|
2955
|
-
}
|
|
2956
|
-
return serializeAws_json1_1RecordColumn(entry, context);
|
|
2957
|
-
});
|
|
2958
|
-
};
|
|
2959
|
-
|
|
2960
|
-
const serializeAws_json1_1RecordFormat = (input: RecordFormat, context: __SerdeContext): any => {
|
|
2961
|
-
return {
|
|
2962
|
-
...(input.MappingParameters !== undefined &&
|
|
2963
|
-
input.MappingParameters !== null && {
|
|
2964
|
-
MappingParameters: serializeAws_json1_1MappingParameters(input.MappingParameters, context),
|
|
2965
|
-
}),
|
|
2966
|
-
...(input.RecordFormatType !== undefined &&
|
|
2967
|
-
input.RecordFormatType !== null && { RecordFormatType: input.RecordFormatType }),
|
|
2968
|
-
};
|
|
2969
|
-
};
|
|
2970
|
-
|
|
2971
|
-
const serializeAws_json1_1ReferenceDataSource = (input: ReferenceDataSource, context: __SerdeContext): any => {
|
|
2972
|
-
return {
|
|
2973
|
-
...(input.ReferenceSchema !== undefined &&
|
|
2974
|
-
input.ReferenceSchema !== null && {
|
|
2975
|
-
ReferenceSchema: serializeAws_json1_1SourceSchema(input.ReferenceSchema, context),
|
|
2976
|
-
}),
|
|
2977
|
-
...(input.S3ReferenceDataSource !== undefined &&
|
|
2978
|
-
input.S3ReferenceDataSource !== null && {
|
|
2979
|
-
S3ReferenceDataSource: serializeAws_json1_1S3ReferenceDataSource(input.S3ReferenceDataSource, context),
|
|
2980
|
-
}),
|
|
2981
|
-
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
2982
|
-
};
|
|
2983
|
-
};
|
|
2984
|
-
|
|
2985
|
-
const serializeAws_json1_1ReferenceDataSourceUpdate = (
|
|
2986
|
-
input: ReferenceDataSourceUpdate,
|
|
2987
|
-
context: __SerdeContext
|
|
2988
|
-
): any => {
|
|
2989
|
-
return {
|
|
2990
|
-
...(input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId }),
|
|
2991
|
-
...(input.ReferenceSchemaUpdate !== undefined &&
|
|
2992
|
-
input.ReferenceSchemaUpdate !== null && {
|
|
2993
|
-
ReferenceSchemaUpdate: serializeAws_json1_1SourceSchema(input.ReferenceSchemaUpdate, context),
|
|
2994
|
-
}),
|
|
2995
|
-
...(input.S3ReferenceDataSourceUpdate !== undefined &&
|
|
2996
|
-
input.S3ReferenceDataSourceUpdate !== null && {
|
|
2997
|
-
S3ReferenceDataSourceUpdate: serializeAws_json1_1S3ReferenceDataSourceUpdate(
|
|
2998
|
-
input.S3ReferenceDataSourceUpdate,
|
|
2999
|
-
context
|
|
3000
|
-
),
|
|
3001
|
-
}),
|
|
3002
|
-
...(input.TableNameUpdate !== undefined &&
|
|
3003
|
-
input.TableNameUpdate !== null && { TableNameUpdate: input.TableNameUpdate }),
|
|
3004
|
-
};
|
|
3005
|
-
};
|
|
3006
|
-
|
|
3007
|
-
const serializeAws_json1_1ReferenceDataSourceUpdates = (
|
|
3008
|
-
input: ReferenceDataSourceUpdate[],
|
|
3009
|
-
context: __SerdeContext
|
|
3010
|
-
): any => {
|
|
3011
|
-
return input
|
|
3012
|
-
.filter((e: any) => e != null)
|
|
3013
|
-
.map((entry) => {
|
|
3014
|
-
if (entry === null) {
|
|
3015
|
-
return null as any;
|
|
3016
|
-
}
|
|
3017
|
-
return serializeAws_json1_1ReferenceDataSourceUpdate(entry, context);
|
|
3018
|
-
});
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
const serializeAws_json1_1S3Configuration = (input: S3Configuration, context: __SerdeContext): any => {
|
|
3022
|
-
return {
|
|
3023
|
-
...(input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN }),
|
|
3024
|
-
...(input.FileKey !== undefined && input.FileKey !== null && { FileKey: input.FileKey }),
|
|
3025
|
-
...(input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }),
|
|
3026
|
-
};
|
|
3027
|
-
};
|
|
3028
|
-
|
|
3029
|
-
const serializeAws_json1_1S3ReferenceDataSource = (input: S3ReferenceDataSource, context: __SerdeContext): any => {
|
|
3030
|
-
return {
|
|
3031
|
-
...(input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN }),
|
|
3032
|
-
...(input.FileKey !== undefined && input.FileKey !== null && { FileKey: input.FileKey }),
|
|
3033
|
-
...(input.ReferenceRoleARN !== undefined &&
|
|
3034
|
-
input.ReferenceRoleARN !== null && { ReferenceRoleARN: input.ReferenceRoleARN }),
|
|
3035
|
-
};
|
|
3036
|
-
};
|
|
3037
|
-
|
|
3038
|
-
const serializeAws_json1_1S3ReferenceDataSourceUpdate = (
|
|
3039
|
-
input: S3ReferenceDataSourceUpdate,
|
|
3040
|
-
context: __SerdeContext
|
|
3041
|
-
): any => {
|
|
3042
|
-
return {
|
|
3043
|
-
...(input.BucketARNUpdate !== undefined &&
|
|
3044
|
-
input.BucketARNUpdate !== null && { BucketARNUpdate: input.BucketARNUpdate }),
|
|
3045
|
-
...(input.FileKeyUpdate !== undefined && input.FileKeyUpdate !== null && { FileKeyUpdate: input.FileKeyUpdate }),
|
|
3046
|
-
...(input.ReferenceRoleARNUpdate !== undefined &&
|
|
3047
|
-
input.ReferenceRoleARNUpdate !== null && { ReferenceRoleARNUpdate: input.ReferenceRoleARNUpdate }),
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
|
|
3051
|
-
const serializeAws_json1_1SourceSchema = (input: SourceSchema, context: __SerdeContext): any => {
|
|
3052
|
-
return {
|
|
3053
|
-
...(input.RecordColumns !== undefined &&
|
|
3054
|
-
input.RecordColumns !== null && {
|
|
3055
|
-
RecordColumns: serializeAws_json1_1RecordColumns(input.RecordColumns, context),
|
|
3056
|
-
}),
|
|
3057
|
-
...(input.RecordEncoding !== undefined &&
|
|
3058
|
-
input.RecordEncoding !== null && { RecordEncoding: input.RecordEncoding }),
|
|
3059
|
-
...(input.RecordFormat !== undefined &&
|
|
3060
|
-
input.RecordFormat !== null && { RecordFormat: serializeAws_json1_1RecordFormat(input.RecordFormat, context) }),
|
|
3061
|
-
};
|
|
3062
|
-
};
|
|
3063
|
-
|
|
3064
|
-
const serializeAws_json1_1StartApplicationRequest = (input: StartApplicationRequest, context: __SerdeContext): any => {
|
|
3065
|
-
return {
|
|
3066
|
-
...(input.ApplicationName !== undefined &&
|
|
3067
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
3068
|
-
...(input.InputConfigurations !== undefined &&
|
|
3069
|
-
input.InputConfigurations !== null && {
|
|
3070
|
-
InputConfigurations: serializeAws_json1_1InputConfigurations(input.InputConfigurations, context),
|
|
3071
|
-
}),
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
|
|
3075
|
-
const serializeAws_json1_1StopApplicationRequest = (input: StopApplicationRequest, context: __SerdeContext): any => {
|
|
3076
|
-
return {
|
|
3077
|
-
...(input.ApplicationName !== undefined &&
|
|
3078
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
3079
|
-
};
|
|
3080
|
-
};
|
|
3081
|
-
|
|
3082
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3083
|
-
return {
|
|
3084
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
3085
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3086
|
-
};
|
|
3087
|
-
};
|
|
3088
|
-
|
|
3089
|
-
const serializeAws_json1_1TagKeys = (input: string[], context: __SerdeContext): any => {
|
|
3090
|
-
return input
|
|
3091
|
-
.filter((e: any) => e != null)
|
|
3092
|
-
.map((entry) => {
|
|
3093
|
-
if (entry === null) {
|
|
3094
|
-
return null as any;
|
|
3095
|
-
}
|
|
3096
|
-
return entry;
|
|
3097
|
-
});
|
|
3098
|
-
};
|
|
3099
|
-
|
|
3100
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
3101
|
-
return {
|
|
3102
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
3103
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3104
|
-
};
|
|
3105
|
-
};
|
|
3106
|
-
|
|
3107
|
-
const serializeAws_json1_1Tags = (input: Tag[], context: __SerdeContext): any => {
|
|
3108
|
-
return input
|
|
3109
|
-
.filter((e: any) => e != null)
|
|
3110
|
-
.map((entry) => {
|
|
3111
|
-
if (entry === null) {
|
|
3112
|
-
return null as any;
|
|
3113
|
-
}
|
|
3114
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3115
|
-
});
|
|
3116
|
-
};
|
|
3117
|
-
|
|
3118
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
3119
|
-
return {
|
|
3120
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
3121
|
-
...(input.TagKeys !== undefined &&
|
|
3122
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
|
|
3126
|
-
const serializeAws_json1_1UpdateApplicationRequest = (
|
|
3127
|
-
input: UpdateApplicationRequest,
|
|
3128
|
-
context: __SerdeContext
|
|
3129
|
-
): any => {
|
|
3130
|
-
return {
|
|
3131
|
-
...(input.ApplicationName !== undefined &&
|
|
3132
|
-
input.ApplicationName !== null && { ApplicationName: input.ApplicationName }),
|
|
3133
|
-
...(input.ApplicationUpdate !== undefined &&
|
|
3134
|
-
input.ApplicationUpdate !== null && {
|
|
3135
|
-
ApplicationUpdate: serializeAws_json1_1ApplicationUpdate(input.ApplicationUpdate, context),
|
|
3136
|
-
}),
|
|
3137
|
-
...(input.CurrentApplicationVersionId !== undefined &&
|
|
3138
|
-
input.CurrentApplicationVersionId !== null && { CurrentApplicationVersionId: input.CurrentApplicationVersionId }),
|
|
3139
|
-
};
|
|
3140
|
-
};
|
|
3141
|
-
|
|
3142
|
-
const deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionResponse = (
|
|
3143
|
-
output: any,
|
|
3144
|
-
context: __SerdeContext
|
|
3145
|
-
): AddApplicationCloudWatchLoggingOptionResponse => {
|
|
3146
|
-
return {} as any;
|
|
3147
|
-
};
|
|
3148
|
-
|
|
3149
|
-
const deserializeAws_json1_1AddApplicationInputProcessingConfigurationResponse = (
|
|
3150
|
-
output: any,
|
|
3151
|
-
context: __SerdeContext
|
|
3152
|
-
): AddApplicationInputProcessingConfigurationResponse => {
|
|
3153
|
-
return {} as any;
|
|
3154
|
-
};
|
|
3155
|
-
|
|
3156
|
-
const deserializeAws_json1_1AddApplicationInputResponse = (
|
|
3157
|
-
output: any,
|
|
3158
|
-
context: __SerdeContext
|
|
3159
|
-
): AddApplicationInputResponse => {
|
|
3160
|
-
return {} as any;
|
|
3161
|
-
};
|
|
3162
|
-
|
|
3163
|
-
const deserializeAws_json1_1AddApplicationOutputResponse = (
|
|
3164
|
-
output: any,
|
|
3165
|
-
context: __SerdeContext
|
|
3166
|
-
): AddApplicationOutputResponse => {
|
|
3167
|
-
return {} as any;
|
|
3168
|
-
};
|
|
3169
|
-
|
|
3170
|
-
const deserializeAws_json1_1AddApplicationReferenceDataSourceResponse = (
|
|
3171
|
-
output: any,
|
|
3172
|
-
context: __SerdeContext
|
|
3173
|
-
): AddApplicationReferenceDataSourceResponse => {
|
|
3174
|
-
return {} as any;
|
|
3175
|
-
};
|
|
3176
|
-
|
|
3177
|
-
const deserializeAws_json1_1ApplicationDetail = (output: any, context: __SerdeContext): ApplicationDetail => {
|
|
3178
|
-
return {
|
|
3179
|
-
ApplicationARN: __expectString(output.ApplicationARN),
|
|
3180
|
-
ApplicationCode: __expectString(output.ApplicationCode),
|
|
3181
|
-
ApplicationDescription: __expectString(output.ApplicationDescription),
|
|
3182
|
-
ApplicationName: __expectString(output.ApplicationName),
|
|
3183
|
-
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
3184
|
-
ApplicationVersionId: __expectLong(output.ApplicationVersionId),
|
|
3185
|
-
CloudWatchLoggingOptionDescriptions:
|
|
3186
|
-
output.CloudWatchLoggingOptionDescriptions !== undefined && output.CloudWatchLoggingOptionDescriptions !== null
|
|
3187
|
-
? deserializeAws_json1_1CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context)
|
|
3188
|
-
: undefined,
|
|
3189
|
-
CreateTimestamp:
|
|
3190
|
-
output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
|
|
3191
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
|
|
3192
|
-
: undefined,
|
|
3193
|
-
InputDescriptions:
|
|
3194
|
-
output.InputDescriptions !== undefined && output.InputDescriptions !== null
|
|
3195
|
-
? deserializeAws_json1_1InputDescriptions(output.InputDescriptions, context)
|
|
3196
|
-
: undefined,
|
|
3197
|
-
LastUpdateTimestamp:
|
|
3198
|
-
output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
|
|
3199
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
|
|
3200
|
-
: undefined,
|
|
3201
|
-
OutputDescriptions:
|
|
3202
|
-
output.OutputDescriptions !== undefined && output.OutputDescriptions !== null
|
|
3203
|
-
? deserializeAws_json1_1OutputDescriptions(output.OutputDescriptions, context)
|
|
3204
|
-
: undefined,
|
|
3205
|
-
ReferenceDataSourceDescriptions:
|
|
3206
|
-
output.ReferenceDataSourceDescriptions !== undefined && output.ReferenceDataSourceDescriptions !== null
|
|
3207
|
-
? deserializeAws_json1_1ReferenceDataSourceDescriptions(output.ReferenceDataSourceDescriptions, context)
|
|
3208
|
-
: undefined,
|
|
3209
|
-
} as any;
|
|
3210
|
-
};
|
|
3211
|
-
|
|
3212
|
-
const deserializeAws_json1_1ApplicationSummaries = (output: any, context: __SerdeContext): ApplicationSummary[] => {
|
|
3213
|
-
return (output || [])
|
|
3214
|
-
.filter((e: any) => e != null)
|
|
3215
|
-
.map((entry: any) => {
|
|
3216
|
-
if (entry === null) {
|
|
3217
|
-
return null as any;
|
|
3218
|
-
}
|
|
3219
|
-
return deserializeAws_json1_1ApplicationSummary(entry, context);
|
|
3220
|
-
});
|
|
3221
|
-
};
|
|
3222
|
-
|
|
3223
|
-
const deserializeAws_json1_1ApplicationSummary = (output: any, context: __SerdeContext): ApplicationSummary => {
|
|
3224
|
-
return {
|
|
3225
|
-
ApplicationARN: __expectString(output.ApplicationARN),
|
|
3226
|
-
ApplicationName: __expectString(output.ApplicationName),
|
|
3227
|
-
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
3228
|
-
} as any;
|
|
3229
|
-
};
|
|
3230
|
-
|
|
3231
|
-
const deserializeAws_json1_1CloudWatchLoggingOptionDescription = (
|
|
3232
|
-
output: any,
|
|
3233
|
-
context: __SerdeContext
|
|
3234
|
-
): CloudWatchLoggingOptionDescription => {
|
|
3235
|
-
return {
|
|
3236
|
-
CloudWatchLoggingOptionId: __expectString(output.CloudWatchLoggingOptionId),
|
|
3237
|
-
LogStreamARN: __expectString(output.LogStreamARN),
|
|
3238
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3239
|
-
} as any;
|
|
3240
|
-
};
|
|
3241
|
-
|
|
3242
|
-
const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = (
|
|
3243
|
-
output: any,
|
|
3244
|
-
context: __SerdeContext
|
|
3245
|
-
): CloudWatchLoggingOptionDescription[] => {
|
|
3246
|
-
return (output || [])
|
|
3247
|
-
.filter((e: any) => e != null)
|
|
3248
|
-
.map((entry: any) => {
|
|
3249
|
-
if (entry === null) {
|
|
3250
|
-
return null as any;
|
|
3251
|
-
}
|
|
3252
|
-
return deserializeAws_json1_1CloudWatchLoggingOptionDescription(entry, context);
|
|
3253
|
-
});
|
|
3254
|
-
};
|
|
3255
|
-
|
|
3256
|
-
const deserializeAws_json1_1CodeValidationException = (
|
|
3257
|
-
output: any,
|
|
3258
|
-
context: __SerdeContext
|
|
3259
|
-
): CodeValidationException => {
|
|
3260
|
-
return {
|
|
3261
|
-
message: __expectString(output.message),
|
|
3262
|
-
} as any;
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const deserializeAws_json1_1ConcurrentModificationException = (
|
|
3266
|
-
output: any,
|
|
3267
|
-
context: __SerdeContext
|
|
3268
|
-
): ConcurrentModificationException => {
|
|
3269
|
-
return {
|
|
3270
|
-
message: __expectString(output.message),
|
|
3271
|
-
} as any;
|
|
3272
|
-
};
|
|
3273
|
-
|
|
3274
|
-
const deserializeAws_json1_1CreateApplicationResponse = (
|
|
3275
|
-
output: any,
|
|
3276
|
-
context: __SerdeContext
|
|
3277
|
-
): CreateApplicationResponse => {
|
|
3278
|
-
return {
|
|
3279
|
-
ApplicationSummary:
|
|
3280
|
-
output.ApplicationSummary !== undefined && output.ApplicationSummary !== null
|
|
3281
|
-
? deserializeAws_json1_1ApplicationSummary(output.ApplicationSummary, context)
|
|
3282
|
-
: undefined,
|
|
3283
|
-
} as any;
|
|
3284
|
-
};
|
|
3285
|
-
|
|
3286
|
-
const deserializeAws_json1_1CSVMappingParameters = (output: any, context: __SerdeContext): CSVMappingParameters => {
|
|
3287
|
-
return {
|
|
3288
|
-
RecordColumnDelimiter: __expectString(output.RecordColumnDelimiter),
|
|
3289
|
-
RecordRowDelimiter: __expectString(output.RecordRowDelimiter),
|
|
3290
|
-
} as any;
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionResponse = (
|
|
3294
|
-
output: any,
|
|
3295
|
-
context: __SerdeContext
|
|
3296
|
-
): DeleteApplicationCloudWatchLoggingOptionResponse => {
|
|
3297
|
-
return {} as any;
|
|
3298
|
-
};
|
|
3299
|
-
|
|
3300
|
-
const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationResponse = (
|
|
3301
|
-
output: any,
|
|
3302
|
-
context: __SerdeContext
|
|
3303
|
-
): DeleteApplicationInputProcessingConfigurationResponse => {
|
|
3304
|
-
return {} as any;
|
|
3305
|
-
};
|
|
3306
|
-
|
|
3307
|
-
const deserializeAws_json1_1DeleteApplicationOutputResponse = (
|
|
3308
|
-
output: any,
|
|
3309
|
-
context: __SerdeContext
|
|
3310
|
-
): DeleteApplicationOutputResponse => {
|
|
3311
|
-
return {} as any;
|
|
3312
|
-
};
|
|
3313
|
-
|
|
3314
|
-
const deserializeAws_json1_1DeleteApplicationReferenceDataSourceResponse = (
|
|
3315
|
-
output: any,
|
|
3316
|
-
context: __SerdeContext
|
|
3317
|
-
): DeleteApplicationReferenceDataSourceResponse => {
|
|
3318
|
-
return {} as any;
|
|
3319
|
-
};
|
|
3320
|
-
|
|
3321
|
-
const deserializeAws_json1_1DeleteApplicationResponse = (
|
|
3322
|
-
output: any,
|
|
3323
|
-
context: __SerdeContext
|
|
3324
|
-
): DeleteApplicationResponse => {
|
|
3325
|
-
return {} as any;
|
|
3326
|
-
};
|
|
3327
|
-
|
|
3328
|
-
const deserializeAws_json1_1DescribeApplicationResponse = (
|
|
3329
|
-
output: any,
|
|
3330
|
-
context: __SerdeContext
|
|
3331
|
-
): DescribeApplicationResponse => {
|
|
3332
|
-
return {
|
|
3333
|
-
ApplicationDetail:
|
|
3334
|
-
output.ApplicationDetail !== undefined && output.ApplicationDetail !== null
|
|
3335
|
-
? deserializeAws_json1_1ApplicationDetail(output.ApplicationDetail, context)
|
|
3336
|
-
: undefined,
|
|
3337
|
-
} as any;
|
|
3338
|
-
};
|
|
3339
|
-
|
|
3340
|
-
const deserializeAws_json1_1DestinationSchema = (output: any, context: __SerdeContext): DestinationSchema => {
|
|
3341
|
-
return {
|
|
3342
|
-
RecordFormatType: __expectString(output.RecordFormatType),
|
|
3343
|
-
} as any;
|
|
3344
|
-
};
|
|
3345
|
-
|
|
3346
|
-
const deserializeAws_json1_1DiscoverInputSchemaResponse = (
|
|
3347
|
-
output: any,
|
|
3348
|
-
context: __SerdeContext
|
|
3349
|
-
): DiscoverInputSchemaResponse => {
|
|
3350
|
-
return {
|
|
3351
|
-
InputSchema:
|
|
3352
|
-
output.InputSchema !== undefined && output.InputSchema !== null
|
|
3353
|
-
? deserializeAws_json1_1SourceSchema(output.InputSchema, context)
|
|
3354
|
-
: undefined,
|
|
3355
|
-
ParsedInputRecords:
|
|
3356
|
-
output.ParsedInputRecords !== undefined && output.ParsedInputRecords !== null
|
|
3357
|
-
? deserializeAws_json1_1ParsedInputRecords(output.ParsedInputRecords, context)
|
|
3358
|
-
: undefined,
|
|
3359
|
-
ProcessedInputRecords:
|
|
3360
|
-
output.ProcessedInputRecords !== undefined && output.ProcessedInputRecords !== null
|
|
3361
|
-
? deserializeAws_json1_1ProcessedInputRecords(output.ProcessedInputRecords, context)
|
|
3362
|
-
: undefined,
|
|
3363
|
-
RawInputRecords:
|
|
3364
|
-
output.RawInputRecords !== undefined && output.RawInputRecords !== null
|
|
3365
|
-
? deserializeAws_json1_1RawInputRecords(output.RawInputRecords, context)
|
|
3366
|
-
: undefined,
|
|
3367
|
-
} as any;
|
|
3368
|
-
};
|
|
3369
|
-
|
|
3370
|
-
const deserializeAws_json1_1InAppStreamNames = (output: any, context: __SerdeContext): string[] => {
|
|
3371
|
-
return (output || [])
|
|
3372
|
-
.filter((e: any) => e != null)
|
|
3373
|
-
.map((entry: any) => {
|
|
3374
|
-
if (entry === null) {
|
|
3375
|
-
return null as any;
|
|
3376
|
-
}
|
|
3377
|
-
return __expectString(entry) as any;
|
|
3378
|
-
});
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
const deserializeAws_json1_1InputDescription = (output: any, context: __SerdeContext): InputDescription => {
|
|
3382
|
-
return {
|
|
3383
|
-
InAppStreamNames:
|
|
3384
|
-
output.InAppStreamNames !== undefined && output.InAppStreamNames !== null
|
|
3385
|
-
? deserializeAws_json1_1InAppStreamNames(output.InAppStreamNames, context)
|
|
3386
|
-
: undefined,
|
|
3387
|
-
InputId: __expectString(output.InputId),
|
|
3388
|
-
InputParallelism:
|
|
3389
|
-
output.InputParallelism !== undefined && output.InputParallelism !== null
|
|
3390
|
-
? deserializeAws_json1_1InputParallelism(output.InputParallelism, context)
|
|
3391
|
-
: undefined,
|
|
3392
|
-
InputProcessingConfigurationDescription:
|
|
3393
|
-
output.InputProcessingConfigurationDescription !== undefined &&
|
|
3394
|
-
output.InputProcessingConfigurationDescription !== null
|
|
3395
|
-
? deserializeAws_json1_1InputProcessingConfigurationDescription(
|
|
3396
|
-
output.InputProcessingConfigurationDescription,
|
|
3397
|
-
context
|
|
3398
|
-
)
|
|
3399
|
-
: undefined,
|
|
3400
|
-
InputSchema:
|
|
3401
|
-
output.InputSchema !== undefined && output.InputSchema !== null
|
|
3402
|
-
? deserializeAws_json1_1SourceSchema(output.InputSchema, context)
|
|
3403
|
-
: undefined,
|
|
3404
|
-
InputStartingPositionConfiguration:
|
|
3405
|
-
output.InputStartingPositionConfiguration !== undefined && output.InputStartingPositionConfiguration !== null
|
|
3406
|
-
? deserializeAws_json1_1InputStartingPositionConfiguration(output.InputStartingPositionConfiguration, context)
|
|
3407
|
-
: undefined,
|
|
3408
|
-
KinesisFirehoseInputDescription:
|
|
3409
|
-
output.KinesisFirehoseInputDescription !== undefined && output.KinesisFirehoseInputDescription !== null
|
|
3410
|
-
? deserializeAws_json1_1KinesisFirehoseInputDescription(output.KinesisFirehoseInputDescription, context)
|
|
3411
|
-
: undefined,
|
|
3412
|
-
KinesisStreamsInputDescription:
|
|
3413
|
-
output.KinesisStreamsInputDescription !== undefined && output.KinesisStreamsInputDescription !== null
|
|
3414
|
-
? deserializeAws_json1_1KinesisStreamsInputDescription(output.KinesisStreamsInputDescription, context)
|
|
3415
|
-
: undefined,
|
|
3416
|
-
NamePrefix: __expectString(output.NamePrefix),
|
|
3417
|
-
} as any;
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
const deserializeAws_json1_1InputDescriptions = (output: any, context: __SerdeContext): InputDescription[] => {
|
|
3421
|
-
return (output || [])
|
|
3422
|
-
.filter((e: any) => e != null)
|
|
3423
|
-
.map((entry: any) => {
|
|
3424
|
-
if (entry === null) {
|
|
3425
|
-
return null as any;
|
|
3426
|
-
}
|
|
3427
|
-
return deserializeAws_json1_1InputDescription(entry, context);
|
|
3428
|
-
});
|
|
3429
|
-
};
|
|
3430
|
-
|
|
3431
|
-
const deserializeAws_json1_1InputLambdaProcessorDescription = (
|
|
3432
|
-
output: any,
|
|
3433
|
-
context: __SerdeContext
|
|
3434
|
-
): InputLambdaProcessorDescription => {
|
|
3435
|
-
return {
|
|
3436
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3437
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3438
|
-
} as any;
|
|
3439
|
-
};
|
|
3440
|
-
|
|
3441
|
-
const deserializeAws_json1_1InputParallelism = (output: any, context: __SerdeContext): InputParallelism => {
|
|
3442
|
-
return {
|
|
3443
|
-
Count: __expectInt32(output.Count),
|
|
3444
|
-
} as any;
|
|
3445
|
-
};
|
|
3446
|
-
|
|
3447
|
-
const deserializeAws_json1_1InputProcessingConfigurationDescription = (
|
|
3448
|
-
output: any,
|
|
3449
|
-
context: __SerdeContext
|
|
3450
|
-
): InputProcessingConfigurationDescription => {
|
|
3451
|
-
return {
|
|
3452
|
-
InputLambdaProcessorDescription:
|
|
3453
|
-
output.InputLambdaProcessorDescription !== undefined && output.InputLambdaProcessorDescription !== null
|
|
3454
|
-
? deserializeAws_json1_1InputLambdaProcessorDescription(output.InputLambdaProcessorDescription, context)
|
|
3455
|
-
: undefined,
|
|
3456
|
-
} as any;
|
|
3457
|
-
};
|
|
3458
|
-
|
|
3459
|
-
const deserializeAws_json1_1InputStartingPositionConfiguration = (
|
|
3460
|
-
output: any,
|
|
3461
|
-
context: __SerdeContext
|
|
3462
|
-
): InputStartingPositionConfiguration => {
|
|
3463
|
-
return {
|
|
3464
|
-
InputStartingPosition: __expectString(output.InputStartingPosition),
|
|
3465
|
-
} as any;
|
|
3466
|
-
};
|
|
3467
|
-
|
|
3468
|
-
const deserializeAws_json1_1InvalidApplicationConfigurationException = (
|
|
3469
|
-
output: any,
|
|
3470
|
-
context: __SerdeContext
|
|
3471
|
-
): InvalidApplicationConfigurationException => {
|
|
3472
|
-
return {
|
|
3473
|
-
message: __expectString(output.message),
|
|
3474
|
-
} as any;
|
|
3475
|
-
};
|
|
3476
|
-
|
|
3477
|
-
const deserializeAws_json1_1InvalidArgumentException = (
|
|
3478
|
-
output: any,
|
|
3479
|
-
context: __SerdeContext
|
|
3480
|
-
): InvalidArgumentException => {
|
|
3481
|
-
return {
|
|
3482
|
-
message: __expectString(output.message),
|
|
3483
|
-
} as any;
|
|
3484
|
-
};
|
|
3485
|
-
|
|
3486
|
-
const deserializeAws_json1_1JSONMappingParameters = (output: any, context: __SerdeContext): JSONMappingParameters => {
|
|
3487
|
-
return {
|
|
3488
|
-
RecordRowPath: __expectString(output.RecordRowPath),
|
|
3489
|
-
} as any;
|
|
3490
|
-
};
|
|
3491
|
-
|
|
3492
|
-
const deserializeAws_json1_1KinesisFirehoseInputDescription = (
|
|
3493
|
-
output: any,
|
|
3494
|
-
context: __SerdeContext
|
|
3495
|
-
): KinesisFirehoseInputDescription => {
|
|
3496
|
-
return {
|
|
3497
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3498
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3499
|
-
} as any;
|
|
3500
|
-
};
|
|
3501
|
-
|
|
3502
|
-
const deserializeAws_json1_1KinesisFirehoseOutputDescription = (
|
|
3503
|
-
output: any,
|
|
3504
|
-
context: __SerdeContext
|
|
3505
|
-
): KinesisFirehoseOutputDescription => {
|
|
3506
|
-
return {
|
|
3507
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3508
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3509
|
-
} as any;
|
|
3510
|
-
};
|
|
3511
|
-
|
|
3512
|
-
const deserializeAws_json1_1KinesisStreamsInputDescription = (
|
|
3513
|
-
output: any,
|
|
3514
|
-
context: __SerdeContext
|
|
3515
|
-
): KinesisStreamsInputDescription => {
|
|
3516
|
-
return {
|
|
3517
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3518
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3519
|
-
} as any;
|
|
3520
|
-
};
|
|
3521
|
-
|
|
3522
|
-
const deserializeAws_json1_1KinesisStreamsOutputDescription = (
|
|
3523
|
-
output: any,
|
|
3524
|
-
context: __SerdeContext
|
|
3525
|
-
): KinesisStreamsOutputDescription => {
|
|
3526
|
-
return {
|
|
3527
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3528
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3529
|
-
} as any;
|
|
3530
|
-
};
|
|
3531
|
-
|
|
3532
|
-
const deserializeAws_json1_1LambdaOutputDescription = (
|
|
3533
|
-
output: any,
|
|
3534
|
-
context: __SerdeContext
|
|
3535
|
-
): LambdaOutputDescription => {
|
|
3536
|
-
return {
|
|
3537
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
3538
|
-
RoleARN: __expectString(output.RoleARN),
|
|
3539
|
-
} as any;
|
|
3540
|
-
};
|
|
3541
|
-
|
|
3542
|
-
const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
3543
|
-
return {
|
|
3544
|
-
message: __expectString(output.message),
|
|
3545
|
-
} as any;
|
|
3546
|
-
};
|
|
3547
|
-
|
|
3548
|
-
const deserializeAws_json1_1ListApplicationsResponse = (
|
|
3549
|
-
output: any,
|
|
3550
|
-
context: __SerdeContext
|
|
3551
|
-
): ListApplicationsResponse => {
|
|
3552
|
-
return {
|
|
3553
|
-
ApplicationSummaries:
|
|
3554
|
-
output.ApplicationSummaries !== undefined && output.ApplicationSummaries !== null
|
|
3555
|
-
? deserializeAws_json1_1ApplicationSummaries(output.ApplicationSummaries, context)
|
|
3556
|
-
: undefined,
|
|
3557
|
-
HasMoreApplications: __expectBoolean(output.HasMoreApplications),
|
|
3558
|
-
} as any;
|
|
3559
|
-
};
|
|
3560
|
-
|
|
3561
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
3562
|
-
output: any,
|
|
3563
|
-
context: __SerdeContext
|
|
3564
|
-
): ListTagsForResourceResponse => {
|
|
3565
|
-
return {
|
|
3566
|
-
Tags:
|
|
3567
|
-
output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
3568
|
-
} as any;
|
|
3569
|
-
};
|
|
3570
|
-
|
|
3571
|
-
const deserializeAws_json1_1MappingParameters = (output: any, context: __SerdeContext): MappingParameters => {
|
|
3572
|
-
return {
|
|
3573
|
-
CSVMappingParameters:
|
|
3574
|
-
output.CSVMappingParameters !== undefined && output.CSVMappingParameters !== null
|
|
3575
|
-
? deserializeAws_json1_1CSVMappingParameters(output.CSVMappingParameters, context)
|
|
3576
|
-
: undefined,
|
|
3577
|
-
JSONMappingParameters:
|
|
3578
|
-
output.JSONMappingParameters !== undefined && output.JSONMappingParameters !== null
|
|
3579
|
-
? deserializeAws_json1_1JSONMappingParameters(output.JSONMappingParameters, context)
|
|
3580
|
-
: undefined,
|
|
3581
|
-
} as any;
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
const deserializeAws_json1_1OutputDescription = (output: any, context: __SerdeContext): OutputDescription => {
|
|
3585
|
-
return {
|
|
3586
|
-
DestinationSchema:
|
|
3587
|
-
output.DestinationSchema !== undefined && output.DestinationSchema !== null
|
|
3588
|
-
? deserializeAws_json1_1DestinationSchema(output.DestinationSchema, context)
|
|
3589
|
-
: undefined,
|
|
3590
|
-
KinesisFirehoseOutputDescription:
|
|
3591
|
-
output.KinesisFirehoseOutputDescription !== undefined && output.KinesisFirehoseOutputDescription !== null
|
|
3592
|
-
? deserializeAws_json1_1KinesisFirehoseOutputDescription(output.KinesisFirehoseOutputDescription, context)
|
|
3593
|
-
: undefined,
|
|
3594
|
-
KinesisStreamsOutputDescription:
|
|
3595
|
-
output.KinesisStreamsOutputDescription !== undefined && output.KinesisStreamsOutputDescription !== null
|
|
3596
|
-
? deserializeAws_json1_1KinesisStreamsOutputDescription(output.KinesisStreamsOutputDescription, context)
|
|
3597
|
-
: undefined,
|
|
3598
|
-
LambdaOutputDescription:
|
|
3599
|
-
output.LambdaOutputDescription !== undefined && output.LambdaOutputDescription !== null
|
|
3600
|
-
? deserializeAws_json1_1LambdaOutputDescription(output.LambdaOutputDescription, context)
|
|
3601
|
-
: undefined,
|
|
3602
|
-
Name: __expectString(output.Name),
|
|
3603
|
-
OutputId: __expectString(output.OutputId),
|
|
3604
|
-
} as any;
|
|
3605
|
-
};
|
|
3606
|
-
|
|
3607
|
-
const deserializeAws_json1_1OutputDescriptions = (output: any, context: __SerdeContext): OutputDescription[] => {
|
|
3608
|
-
return (output || [])
|
|
3609
|
-
.filter((e: any) => e != null)
|
|
3610
|
-
.map((entry: any) => {
|
|
3611
|
-
if (entry === null) {
|
|
3612
|
-
return null as any;
|
|
3613
|
-
}
|
|
3614
|
-
return deserializeAws_json1_1OutputDescription(entry, context);
|
|
3615
|
-
});
|
|
3616
|
-
};
|
|
3617
|
-
|
|
3618
|
-
const deserializeAws_json1_1ParsedInputRecord = (output: any, context: __SerdeContext): string[] => {
|
|
3619
|
-
return (output || [])
|
|
3620
|
-
.filter((e: any) => e != null)
|
|
3621
|
-
.map((entry: any) => {
|
|
3622
|
-
if (entry === null) {
|
|
3623
|
-
return null as any;
|
|
3624
|
-
}
|
|
3625
|
-
return __expectString(entry) as any;
|
|
3626
|
-
});
|
|
3627
|
-
};
|
|
3628
|
-
|
|
3629
|
-
const deserializeAws_json1_1ParsedInputRecords = (output: any, context: __SerdeContext): string[][] => {
|
|
3630
|
-
return (output || [])
|
|
3631
|
-
.filter((e: any) => e != null)
|
|
3632
|
-
.map((entry: any) => {
|
|
3633
|
-
if (entry === null) {
|
|
3634
|
-
return null as any;
|
|
3635
|
-
}
|
|
3636
|
-
return deserializeAws_json1_1ParsedInputRecord(entry, context);
|
|
3637
|
-
});
|
|
3638
|
-
};
|
|
3639
|
-
|
|
3640
|
-
const deserializeAws_json1_1ProcessedInputRecords = (output: any, context: __SerdeContext): string[] => {
|
|
3641
|
-
return (output || [])
|
|
3642
|
-
.filter((e: any) => e != null)
|
|
3643
|
-
.map((entry: any) => {
|
|
3644
|
-
if (entry === null) {
|
|
3645
|
-
return null as any;
|
|
3646
|
-
}
|
|
3647
|
-
return __expectString(entry) as any;
|
|
3648
|
-
});
|
|
3649
|
-
};
|
|
3650
|
-
|
|
3651
|
-
const deserializeAws_json1_1RawInputRecords = (output: any, context: __SerdeContext): string[] => {
|
|
3652
|
-
return (output || [])
|
|
3653
|
-
.filter((e: any) => e != null)
|
|
3654
|
-
.map((entry: any) => {
|
|
3655
|
-
if (entry === null) {
|
|
3656
|
-
return null as any;
|
|
3657
|
-
}
|
|
3658
|
-
return __expectString(entry) as any;
|
|
3659
|
-
});
|
|
3660
|
-
};
|
|
3661
|
-
|
|
3662
|
-
const deserializeAws_json1_1RecordColumn = (output: any, context: __SerdeContext): RecordColumn => {
|
|
3663
|
-
return {
|
|
3664
|
-
Mapping: __expectString(output.Mapping),
|
|
3665
|
-
Name: __expectString(output.Name),
|
|
3666
|
-
SqlType: __expectString(output.SqlType),
|
|
3667
|
-
} as any;
|
|
3668
|
-
};
|
|
3669
|
-
|
|
3670
|
-
const deserializeAws_json1_1RecordColumns = (output: any, context: __SerdeContext): RecordColumn[] => {
|
|
3671
|
-
return (output || [])
|
|
3672
|
-
.filter((e: any) => e != null)
|
|
3673
|
-
.map((entry: any) => {
|
|
3674
|
-
if (entry === null) {
|
|
3675
|
-
return null as any;
|
|
3676
|
-
}
|
|
3677
|
-
return deserializeAws_json1_1RecordColumn(entry, context);
|
|
3678
|
-
});
|
|
3679
|
-
};
|
|
3680
|
-
|
|
3681
|
-
const deserializeAws_json1_1RecordFormat = (output: any, context: __SerdeContext): RecordFormat => {
|
|
3682
|
-
return {
|
|
3683
|
-
MappingParameters:
|
|
3684
|
-
output.MappingParameters !== undefined && output.MappingParameters !== null
|
|
3685
|
-
? deserializeAws_json1_1MappingParameters(output.MappingParameters, context)
|
|
3686
|
-
: undefined,
|
|
3687
|
-
RecordFormatType: __expectString(output.RecordFormatType),
|
|
3688
|
-
} as any;
|
|
3689
|
-
};
|
|
3690
|
-
|
|
3691
|
-
const deserializeAws_json1_1ReferenceDataSourceDescription = (
|
|
3692
|
-
output: any,
|
|
3693
|
-
context: __SerdeContext
|
|
3694
|
-
): ReferenceDataSourceDescription => {
|
|
3695
|
-
return {
|
|
3696
|
-
ReferenceId: __expectString(output.ReferenceId),
|
|
3697
|
-
ReferenceSchema:
|
|
3698
|
-
output.ReferenceSchema !== undefined && output.ReferenceSchema !== null
|
|
3699
|
-
? deserializeAws_json1_1SourceSchema(output.ReferenceSchema, context)
|
|
3700
|
-
: undefined,
|
|
3701
|
-
S3ReferenceDataSourceDescription:
|
|
3702
|
-
output.S3ReferenceDataSourceDescription !== undefined && output.S3ReferenceDataSourceDescription !== null
|
|
3703
|
-
? deserializeAws_json1_1S3ReferenceDataSourceDescription(output.S3ReferenceDataSourceDescription, context)
|
|
3704
|
-
: undefined,
|
|
3705
|
-
TableName: __expectString(output.TableName),
|
|
3706
|
-
} as any;
|
|
3707
|
-
};
|
|
3708
|
-
|
|
3709
|
-
const deserializeAws_json1_1ReferenceDataSourceDescriptions = (
|
|
3710
|
-
output: any,
|
|
3711
|
-
context: __SerdeContext
|
|
3712
|
-
): ReferenceDataSourceDescription[] => {
|
|
3713
|
-
return (output || [])
|
|
3714
|
-
.filter((e: any) => e != null)
|
|
3715
|
-
.map((entry: any) => {
|
|
3716
|
-
if (entry === null) {
|
|
3717
|
-
return null as any;
|
|
3718
|
-
}
|
|
3719
|
-
return deserializeAws_json1_1ReferenceDataSourceDescription(entry, context);
|
|
3720
|
-
});
|
|
3721
|
-
};
|
|
3722
|
-
|
|
3723
|
-
const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => {
|
|
3724
|
-
return {
|
|
3725
|
-
message: __expectString(output.message),
|
|
3726
|
-
} as any;
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
3730
|
-
output: any,
|
|
3731
|
-
context: __SerdeContext
|
|
3732
|
-
): ResourceNotFoundException => {
|
|
3733
|
-
return {
|
|
3734
|
-
message: __expectString(output.message),
|
|
3735
|
-
} as any;
|
|
3736
|
-
};
|
|
3737
|
-
|
|
3738
|
-
const deserializeAws_json1_1ResourceProvisionedThroughputExceededException = (
|
|
3739
|
-
output: any,
|
|
3740
|
-
context: __SerdeContext
|
|
3741
|
-
): ResourceProvisionedThroughputExceededException => {
|
|
3742
|
-
return {
|
|
3743
|
-
message: __expectString(output.message),
|
|
3744
|
-
} as any;
|
|
3745
|
-
};
|
|
3746
|
-
|
|
3747
|
-
const deserializeAws_json1_1S3ReferenceDataSourceDescription = (
|
|
3748
|
-
output: any,
|
|
3749
|
-
context: __SerdeContext
|
|
3750
|
-
): S3ReferenceDataSourceDescription => {
|
|
3751
|
-
return {
|
|
3752
|
-
BucketARN: __expectString(output.BucketARN),
|
|
3753
|
-
FileKey: __expectString(output.FileKey),
|
|
3754
|
-
ReferenceRoleARN: __expectString(output.ReferenceRoleARN),
|
|
3755
|
-
} as any;
|
|
3756
|
-
};
|
|
3757
|
-
|
|
3758
|
-
const deserializeAws_json1_1ServiceUnavailableException = (
|
|
3759
|
-
output: any,
|
|
3760
|
-
context: __SerdeContext
|
|
3761
|
-
): ServiceUnavailableException => {
|
|
3762
|
-
return {
|
|
3763
|
-
message: __expectString(output.message),
|
|
3764
|
-
} as any;
|
|
3765
|
-
};
|
|
3766
|
-
|
|
3767
|
-
const deserializeAws_json1_1SourceSchema = (output: any, context: __SerdeContext): SourceSchema => {
|
|
3768
|
-
return {
|
|
3769
|
-
RecordColumns:
|
|
3770
|
-
output.RecordColumns !== undefined && output.RecordColumns !== null
|
|
3771
|
-
? deserializeAws_json1_1RecordColumns(output.RecordColumns, context)
|
|
3772
|
-
: undefined,
|
|
3773
|
-
RecordEncoding: __expectString(output.RecordEncoding),
|
|
3774
|
-
RecordFormat:
|
|
3775
|
-
output.RecordFormat !== undefined && output.RecordFormat !== null
|
|
3776
|
-
? deserializeAws_json1_1RecordFormat(output.RecordFormat, context)
|
|
3777
|
-
: undefined,
|
|
3778
|
-
} as any;
|
|
3779
|
-
};
|
|
3780
|
-
|
|
3781
|
-
const deserializeAws_json1_1StartApplicationResponse = (
|
|
3782
|
-
output: any,
|
|
3783
|
-
context: __SerdeContext
|
|
3784
|
-
): StartApplicationResponse => {
|
|
3785
|
-
return {} as any;
|
|
3786
|
-
};
|
|
3787
|
-
|
|
3788
|
-
const deserializeAws_json1_1StopApplicationResponse = (
|
|
3789
|
-
output: any,
|
|
3790
|
-
context: __SerdeContext
|
|
3791
|
-
): StopApplicationResponse => {
|
|
3792
|
-
return {} as any;
|
|
3793
|
-
};
|
|
3794
|
-
|
|
3795
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
3796
|
-
return {
|
|
3797
|
-
Key: __expectString(output.Key),
|
|
3798
|
-
Value: __expectString(output.Value),
|
|
3799
|
-
} as any;
|
|
3800
|
-
};
|
|
3801
|
-
|
|
3802
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
3803
|
-
return {} as any;
|
|
3804
|
-
};
|
|
3805
|
-
|
|
3806
|
-
const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Tag[] => {
|
|
3807
|
-
return (output || [])
|
|
3808
|
-
.filter((e: any) => e != null)
|
|
3809
|
-
.map((entry: any) => {
|
|
3810
|
-
if (entry === null) {
|
|
3811
|
-
return null as any;
|
|
3812
|
-
}
|
|
3813
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
3814
|
-
});
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => {
|
|
3818
|
-
return {
|
|
3819
|
-
message: __expectString(output.message),
|
|
3820
|
-
} as any;
|
|
3821
|
-
};
|
|
3822
|
-
|
|
3823
|
-
const deserializeAws_json1_1UnableToDetectSchemaException = (
|
|
3824
|
-
output: any,
|
|
3825
|
-
context: __SerdeContext
|
|
3826
|
-
): UnableToDetectSchemaException => {
|
|
3827
|
-
return {
|
|
3828
|
-
ProcessedInputRecords:
|
|
3829
|
-
output.ProcessedInputRecords !== undefined && output.ProcessedInputRecords !== null
|
|
3830
|
-
? deserializeAws_json1_1ProcessedInputRecords(output.ProcessedInputRecords, context)
|
|
3831
|
-
: undefined,
|
|
3832
|
-
RawInputRecords:
|
|
3833
|
-
output.RawInputRecords !== undefined && output.RawInputRecords !== null
|
|
3834
|
-
? deserializeAws_json1_1RawInputRecords(output.RawInputRecords, context)
|
|
3835
|
-
: undefined,
|
|
3836
|
-
message: __expectString(output.message),
|
|
3837
|
-
} as any;
|
|
3838
|
-
};
|
|
3839
|
-
|
|
3840
|
-
const deserializeAws_json1_1UnsupportedOperationException = (
|
|
3841
|
-
output: any,
|
|
3842
|
-
context: __SerdeContext
|
|
3843
|
-
): UnsupportedOperationException => {
|
|
3844
|
-
return {
|
|
3845
|
-
message: __expectString(output.message),
|
|
3846
|
-
} as any;
|
|
3847
|
-
};
|
|
3848
|
-
|
|
3849
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
3850
|
-
return {} as any;
|
|
3851
|
-
};
|
|
3852
|
-
|
|
3853
|
-
const deserializeAws_json1_1UpdateApplicationResponse = (
|
|
3854
|
-
output: any,
|
|
3855
|
-
context: __SerdeContext
|
|
3856
|
-
): UpdateApplicationResponse => {
|
|
3857
|
-
return {} as any;
|
|
3858
|
-
};
|
|
3859
|
-
|
|
3860
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
3861
|
-
httpStatusCode: output.statusCode,
|
|
3862
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
3863
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3864
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3865
|
-
});
|
|
3866
|
-
|
|
3867
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3868
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
3869
|
-
if (streamBody instanceof Uint8Array) {
|
|
3870
|
-
return Promise.resolve(streamBody);
|
|
3871
|
-
}
|
|
3872
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3873
|
-
};
|
|
3874
|
-
|
|
3875
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3876
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
3877
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3878
|
-
|
|
3879
|
-
const buildHttpRpcRequest = async (
|
|
3880
|
-
context: __SerdeContext,
|
|
3881
|
-
headers: __HeaderBag,
|
|
3882
|
-
path: string,
|
|
3883
|
-
resolvedHostname: string | undefined,
|
|
3884
|
-
body: any
|
|
3885
|
-
): Promise<__HttpRequest> => {
|
|
3886
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3887
|
-
const contents: any = {
|
|
3888
|
-
protocol,
|
|
3889
|
-
hostname,
|
|
3890
|
-
port,
|
|
3891
|
-
method: "POST",
|
|
3892
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3893
|
-
headers,
|
|
3894
|
-
};
|
|
3895
|
-
if (resolvedHostname !== undefined) {
|
|
3896
|
-
contents.hostname = resolvedHostname;
|
|
3897
|
-
}
|
|
3898
|
-
if (body !== undefined) {
|
|
3899
|
-
contents.body = body;
|
|
3900
|
-
}
|
|
3901
|
-
return new __HttpRequest(contents);
|
|
3902
|
-
};
|
|
3903
|
-
|
|
3904
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
3905
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
3906
|
-
if (encoded.length) {
|
|
3907
|
-
return JSON.parse(encoded);
|
|
3908
|
-
}
|
|
3909
|
-
return {};
|
|
3910
|
-
});
|
|
3911
|
-
|
|
3912
|
-
/**
|
|
3913
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3914
|
-
*/
|
|
3915
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
3916
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3917
|
-
|
|
3918
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
3919
|
-
let cleanValue = rawValue;
|
|
3920
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3921
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3922
|
-
}
|
|
3923
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3924
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3925
|
-
}
|
|
3926
|
-
return cleanValue;
|
|
3927
|
-
};
|
|
3928
|
-
|
|
3929
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3930
|
-
if (headerKey !== undefined) {
|
|
3931
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3932
|
-
}
|
|
3933
|
-
|
|
3934
|
-
if (data.code !== undefined) {
|
|
3935
|
-
return sanitizeErrorCode(data.code);
|
|
3936
|
-
}
|
|
3937
|
-
|
|
3938
|
-
if (data["__type"] !== undefined) {
|
|
3939
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
|
-
return "";
|
|
3943
|
-
};
|