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