@aws-sdk/client-mq 3.31.0 → 3.32.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 +8 -0
- package/dist/cjs/MqClient.js +13 -13
- package/dist/cjs/MqClient.js.map +1 -1
- package/dist/cjs/commands/CreateBrokerCommand.js +3 -3
- package/dist/cjs/commands/CreateBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/CreateConfigurationCommand.js +3 -3
- package/dist/cjs/commands/CreateConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTagsCommand.js +3 -3
- package/dist/cjs/commands/CreateTagsCommand.js.map +1 -1
- package/dist/cjs/commands/CreateUserCommand.js +3 -3
- package/dist/cjs/commands/CreateUserCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteBrokerCommand.js +3 -3
- package/dist/cjs/commands/DeleteBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTagsCommand.js +3 -3
- package/dist/cjs/commands/DeleteTagsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteUserCommand.js +3 -3
- package/dist/cjs/commands/DeleteUserCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBrokerCommand.js +3 -3
- package/dist/cjs/commands/DescribeBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBrokerEngineTypesCommand.js +3 -3
- package/dist/cjs/commands/DescribeBrokerEngineTypesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBrokerInstanceOptionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeBrokerInstanceOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeConfigurationRevisionCommand.js +3 -3
- package/dist/cjs/commands/DescribeConfigurationRevisionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeUserCommand.js +3 -3
- package/dist/cjs/commands/DescribeUserCommand.js.map +1 -1
- package/dist/cjs/commands/ListBrokersCommand.js +3 -3
- package/dist/cjs/commands/ListBrokersCommand.js.map +1 -1
- package/dist/cjs/commands/ListConfigurationRevisionsCommand.js +3 -3
- package/dist/cjs/commands/ListConfigurationRevisionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListConfigurationsCommand.js +3 -3
- package/dist/cjs/commands/ListConfigurationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsCommand.js +3 -3
- package/dist/cjs/commands/ListTagsCommand.js.map +1 -1
- package/dist/cjs/commands/ListUsersCommand.js +3 -3
- package/dist/cjs/commands/ListUsersCommand.js.map +1 -1
- package/dist/cjs/commands/RebootBrokerCommand.js +3 -3
- package/dist/cjs/commands/RebootBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBrokerCommand.js +3 -3
- package/dist/cjs/commands/UpdateBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateUserCommand.js +3 -3
- package/dist/cjs/commands/UpdateUserCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +172 -172
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/ListBrokersPaginator.js +4 -4
- package/dist/es/pagination/ListBrokersPaginator.js.map +1 -1
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -22,7 +22,7 @@ const serializeAws_restJson1CreateBrokerCommand = async (input, context) => {
|
|
|
22
22
|
input.Configuration !== null && {
|
|
23
23
|
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
24
24
|
}),
|
|
25
|
-
creatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a :
|
|
25
|
+
creatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
26
26
|
...(input.DeploymentMode !== undefined &&
|
|
27
27
|
input.DeploymentMode !== null && { deploymentMode: input.DeploymentMode }),
|
|
28
28
|
...(input.EncryptionOptions !== undefined &&
|
|
@@ -105,7 +105,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
105
105
|
if (labelValue.length <= 0) {
|
|
106
106
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
107
107
|
}
|
|
108
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
108
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
111
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -137,7 +137,7 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
137
137
|
if (labelValue.length <= 0) {
|
|
138
138
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
139
139
|
}
|
|
140
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
140
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -147,7 +147,7 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
147
147
|
if (labelValue.length <= 0) {
|
|
148
148
|
throw new Error("Empty value provided for input HTTP label: Username.");
|
|
149
149
|
}
|
|
150
|
-
resolvedPath = resolvedPath.replace("{Username}",
|
|
150
|
+
resolvedPath = resolvedPath.replace("{Username}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
153
153
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
@@ -179,7 +179,7 @@ const serializeAws_restJson1DeleteBrokerCommand = async (input, context) => {
|
|
|
179
179
|
if (labelValue.length <= 0) {
|
|
180
180
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
181
181
|
}
|
|
182
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
182
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
185
185
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -205,7 +205,7 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
|
205
205
|
if (labelValue.length <= 0) {
|
|
206
206
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
207
207
|
}
|
|
208
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
208
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
209
209
|
}
|
|
210
210
|
else {
|
|
211
211
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -235,7 +235,7 @@ const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
|
|
|
235
235
|
if (labelValue.length <= 0) {
|
|
236
236
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
237
237
|
}
|
|
238
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
238
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
239
239
|
}
|
|
240
240
|
else {
|
|
241
241
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -245,7 +245,7 @@ const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
|
|
|
245
245
|
if (labelValue.length <= 0) {
|
|
246
246
|
throw new Error("Empty value provided for input HTTP label: Username.");
|
|
247
247
|
}
|
|
248
|
-
resolvedPath = resolvedPath.replace("{Username}",
|
|
248
|
+
resolvedPath = resolvedPath.replace("{Username}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
249
249
|
}
|
|
250
250
|
else {
|
|
251
251
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
@@ -271,7 +271,7 @@ const serializeAws_restJson1DescribeBrokerCommand = async (input, context) => {
|
|
|
271
271
|
if (labelValue.length <= 0) {
|
|
272
272
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
273
273
|
}
|
|
274
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
274
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
275
275
|
}
|
|
276
276
|
else {
|
|
277
277
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -343,7 +343,7 @@ const serializeAws_restJson1DescribeConfigurationCommand = async (input, context
|
|
|
343
343
|
if (labelValue.length <= 0) {
|
|
344
344
|
throw new Error("Empty value provided for input HTTP label: ConfigurationId.");
|
|
345
345
|
}
|
|
346
|
-
resolvedPath = resolvedPath.replace("{ConfigurationId}",
|
|
346
|
+
resolvedPath = resolvedPath.replace("{ConfigurationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
347
347
|
}
|
|
348
348
|
else {
|
|
349
349
|
throw new Error("No value provided for input HTTP label: ConfigurationId.");
|
|
@@ -370,7 +370,7 @@ const serializeAws_restJson1DescribeConfigurationRevisionCommand = async (input,
|
|
|
370
370
|
if (labelValue.length <= 0) {
|
|
371
371
|
throw new Error("Empty value provided for input HTTP label: ConfigurationId.");
|
|
372
372
|
}
|
|
373
|
-
resolvedPath = resolvedPath.replace("{ConfigurationId}",
|
|
373
|
+
resolvedPath = resolvedPath.replace("{ConfigurationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
374
374
|
}
|
|
375
375
|
else {
|
|
376
376
|
throw new Error("No value provided for input HTTP label: ConfigurationId.");
|
|
@@ -380,7 +380,7 @@ const serializeAws_restJson1DescribeConfigurationRevisionCommand = async (input,
|
|
|
380
380
|
if (labelValue.length <= 0) {
|
|
381
381
|
throw new Error("Empty value provided for input HTTP label: ConfigurationRevision.");
|
|
382
382
|
}
|
|
383
|
-
resolvedPath = resolvedPath.replace("{ConfigurationRevision}",
|
|
383
|
+
resolvedPath = resolvedPath.replace("{ConfigurationRevision}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
386
|
throw new Error("No value provided for input HTTP label: ConfigurationRevision.");
|
|
@@ -406,7 +406,7 @@ const serializeAws_restJson1DescribeUserCommand = async (input, context) => {
|
|
|
406
406
|
if (labelValue.length <= 0) {
|
|
407
407
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
408
408
|
}
|
|
409
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
409
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
410
410
|
}
|
|
411
411
|
else {
|
|
412
412
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -416,7 +416,7 @@ const serializeAws_restJson1DescribeUserCommand = async (input, context) => {
|
|
|
416
416
|
if (labelValue.length <= 0) {
|
|
417
417
|
throw new Error("Empty value provided for input HTTP label: Username.");
|
|
418
418
|
}
|
|
419
|
-
resolvedPath = resolvedPath.replace("{Username}",
|
|
419
|
+
resolvedPath = resolvedPath.replace("{Username}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
422
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
@@ -464,7 +464,7 @@ const serializeAws_restJson1ListConfigurationRevisionsCommand = async (input, co
|
|
|
464
464
|
if (labelValue.length <= 0) {
|
|
465
465
|
throw new Error("Empty value provided for input HTTP label: ConfigurationId.");
|
|
466
466
|
}
|
|
467
|
-
resolvedPath = resolvedPath.replace("{ConfigurationId}",
|
|
467
|
+
resolvedPath = resolvedPath.replace("{ConfigurationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
468
468
|
}
|
|
469
469
|
else {
|
|
470
470
|
throw new Error("No value provided for input HTTP label: ConfigurationId.");
|
|
@@ -516,7 +516,7 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
|
|
|
516
516
|
if (labelValue.length <= 0) {
|
|
517
517
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
518
518
|
}
|
|
519
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
519
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
520
520
|
}
|
|
521
521
|
else {
|
|
522
522
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -542,7 +542,7 @@ const serializeAws_restJson1ListUsersCommand = async (input, context) => {
|
|
|
542
542
|
if (labelValue.length <= 0) {
|
|
543
543
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
544
544
|
}
|
|
545
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
545
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
546
546
|
}
|
|
547
547
|
else {
|
|
548
548
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -573,7 +573,7 @@ const serializeAws_restJson1RebootBrokerCommand = async (input, context) => {
|
|
|
573
573
|
if (labelValue.length <= 0) {
|
|
574
574
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
575
575
|
}
|
|
576
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
576
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
577
577
|
}
|
|
578
578
|
else {
|
|
579
579
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -601,7 +601,7 @@ const serializeAws_restJson1UpdateBrokerCommand = async (input, context) => {
|
|
|
601
601
|
if (labelValue.length <= 0) {
|
|
602
602
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
603
603
|
}
|
|
604
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
604
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
605
605
|
}
|
|
606
606
|
else {
|
|
607
607
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -655,7 +655,7 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
655
655
|
if (labelValue.length <= 0) {
|
|
656
656
|
throw new Error("Empty value provided for input HTTP label: ConfigurationId.");
|
|
657
657
|
}
|
|
658
|
-
resolvedPath = resolvedPath.replace("{ConfigurationId}",
|
|
658
|
+
resolvedPath = resolvedPath.replace("{ConfigurationId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
659
659
|
}
|
|
660
660
|
else {
|
|
661
661
|
throw new Error("No value provided for input HTTP label: ConfigurationId.");
|
|
@@ -687,7 +687,7 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
687
687
|
if (labelValue.length <= 0) {
|
|
688
688
|
throw new Error("Empty value provided for input HTTP label: BrokerId.");
|
|
689
689
|
}
|
|
690
|
-
resolvedPath = resolvedPath.replace("{BrokerId}",
|
|
690
|
+
resolvedPath = resolvedPath.replace("{BrokerId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
691
691
|
}
|
|
692
692
|
else {
|
|
693
693
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
@@ -697,7 +697,7 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
697
697
|
if (labelValue.length <= 0) {
|
|
698
698
|
throw new Error("Empty value provided for input HTTP label: Username.");
|
|
699
699
|
}
|
|
700
|
-
resolvedPath = resolvedPath.replace("{Username}",
|
|
700
|
+
resolvedPath = resolvedPath.replace("{Username}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
701
701
|
}
|
|
702
702
|
else {
|
|
703
703
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
@@ -729,12 +729,12 @@ const deserializeAws_restJson1CreateBrokerCommand = async (output, context) => {
|
|
|
729
729
|
BrokerArn: undefined,
|
|
730
730
|
BrokerId: undefined,
|
|
731
731
|
};
|
|
732
|
-
const data =
|
|
732
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
733
733
|
if (data.brokerArn !== undefined && data.brokerArn !== null) {
|
|
734
|
-
contents.BrokerArn =
|
|
734
|
+
contents.BrokerArn = smithy_client_1.expectString(data.brokerArn);
|
|
735
735
|
}
|
|
736
736
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
737
|
-
contents.BrokerId =
|
|
737
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
738
738
|
}
|
|
739
739
|
return Promise.resolve(contents);
|
|
740
740
|
};
|
|
@@ -817,24 +817,24 @@ const deserializeAws_restJson1CreateConfigurationCommand = async (output, contex
|
|
|
817
817
|
LatestRevision: undefined,
|
|
818
818
|
Name: undefined,
|
|
819
819
|
};
|
|
820
|
-
const data =
|
|
820
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
821
821
|
if (data.arn !== undefined && data.arn !== null) {
|
|
822
|
-
contents.Arn =
|
|
822
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
823
823
|
}
|
|
824
824
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
825
|
-
contents.AuthenticationStrategy =
|
|
825
|
+
contents.AuthenticationStrategy = smithy_client_1.expectString(data.authenticationStrategy);
|
|
826
826
|
}
|
|
827
827
|
if (data.created !== undefined && data.created !== null) {
|
|
828
|
-
contents.Created =
|
|
828
|
+
contents.Created = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.created));
|
|
829
829
|
}
|
|
830
830
|
if (data.id !== undefined && data.id !== null) {
|
|
831
|
-
contents.Id =
|
|
831
|
+
contents.Id = smithy_client_1.expectString(data.id);
|
|
832
832
|
}
|
|
833
833
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
834
834
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
835
835
|
}
|
|
836
836
|
if (data.name !== undefined && data.name !== null) {
|
|
837
|
-
contents.Name =
|
|
837
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
838
838
|
}
|
|
839
839
|
return Promise.resolve(contents);
|
|
840
840
|
};
|
|
@@ -1048,9 +1048,9 @@ const deserializeAws_restJson1DeleteBrokerCommand = async (output, context) => {
|
|
|
1048
1048
|
$metadata: deserializeMetadata(output),
|
|
1049
1049
|
BrokerId: undefined,
|
|
1050
1050
|
};
|
|
1051
|
-
const data =
|
|
1051
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1052
1052
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
1053
|
-
contents.BrokerId =
|
|
1053
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
1054
1054
|
}
|
|
1055
1055
|
return Promise.resolve(contents);
|
|
1056
1056
|
};
|
|
@@ -1283,48 +1283,48 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
1283
1283
|
Tags: undefined,
|
|
1284
1284
|
Users: undefined,
|
|
1285
1285
|
};
|
|
1286
|
-
const data =
|
|
1286
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1287
1287
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
1288
|
-
contents.AuthenticationStrategy =
|
|
1288
|
+
contents.AuthenticationStrategy = smithy_client_1.expectString(data.authenticationStrategy);
|
|
1289
1289
|
}
|
|
1290
1290
|
if (data.autoMinorVersionUpgrade !== undefined && data.autoMinorVersionUpgrade !== null) {
|
|
1291
|
-
contents.AutoMinorVersionUpgrade =
|
|
1291
|
+
contents.AutoMinorVersionUpgrade = smithy_client_1.expectBoolean(data.autoMinorVersionUpgrade);
|
|
1292
1292
|
}
|
|
1293
1293
|
if (data.brokerArn !== undefined && data.brokerArn !== null) {
|
|
1294
|
-
contents.BrokerArn =
|
|
1294
|
+
contents.BrokerArn = smithy_client_1.expectString(data.brokerArn);
|
|
1295
1295
|
}
|
|
1296
1296
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
1297
|
-
contents.BrokerId =
|
|
1297
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
1298
1298
|
}
|
|
1299
1299
|
if (data.brokerInstances !== undefined && data.brokerInstances !== null) {
|
|
1300
1300
|
contents.BrokerInstances = deserializeAws_restJson1__listOfBrokerInstance(data.brokerInstances, context);
|
|
1301
1301
|
}
|
|
1302
1302
|
if (data.brokerName !== undefined && data.brokerName !== null) {
|
|
1303
|
-
contents.BrokerName =
|
|
1303
|
+
contents.BrokerName = smithy_client_1.expectString(data.brokerName);
|
|
1304
1304
|
}
|
|
1305
1305
|
if (data.brokerState !== undefined && data.brokerState !== null) {
|
|
1306
|
-
contents.BrokerState =
|
|
1306
|
+
contents.BrokerState = smithy_client_1.expectString(data.brokerState);
|
|
1307
1307
|
}
|
|
1308
1308
|
if (data.configurations !== undefined && data.configurations !== null) {
|
|
1309
1309
|
contents.Configurations = deserializeAws_restJson1Configurations(data.configurations, context);
|
|
1310
1310
|
}
|
|
1311
1311
|
if (data.created !== undefined && data.created !== null) {
|
|
1312
|
-
contents.Created =
|
|
1312
|
+
contents.Created = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.created));
|
|
1313
1313
|
}
|
|
1314
1314
|
if (data.deploymentMode !== undefined && data.deploymentMode !== null) {
|
|
1315
|
-
contents.DeploymentMode =
|
|
1315
|
+
contents.DeploymentMode = smithy_client_1.expectString(data.deploymentMode);
|
|
1316
1316
|
}
|
|
1317
1317
|
if (data.encryptionOptions !== undefined && data.encryptionOptions !== null) {
|
|
1318
1318
|
contents.EncryptionOptions = deserializeAws_restJson1EncryptionOptions(data.encryptionOptions, context);
|
|
1319
1319
|
}
|
|
1320
1320
|
if (data.engineType !== undefined && data.engineType !== null) {
|
|
1321
|
-
contents.EngineType =
|
|
1321
|
+
contents.EngineType = smithy_client_1.expectString(data.engineType);
|
|
1322
1322
|
}
|
|
1323
1323
|
if (data.engineVersion !== undefined && data.engineVersion !== null) {
|
|
1324
|
-
contents.EngineVersion =
|
|
1324
|
+
contents.EngineVersion = smithy_client_1.expectString(data.engineVersion);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (data.hostInstanceType !== undefined && data.hostInstanceType !== null) {
|
|
1327
|
-
contents.HostInstanceType =
|
|
1327
|
+
contents.HostInstanceType = smithy_client_1.expectString(data.hostInstanceType);
|
|
1328
1328
|
}
|
|
1329
1329
|
if (data.ldapServerMetadata !== undefined && data.ldapServerMetadata !== null) {
|
|
1330
1330
|
contents.LdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
@@ -1336,13 +1336,13 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
1336
1336
|
contents.MaintenanceWindowStartTime = deserializeAws_restJson1WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
1337
1337
|
}
|
|
1338
1338
|
if (data.pendingAuthenticationStrategy !== undefined && data.pendingAuthenticationStrategy !== null) {
|
|
1339
|
-
contents.PendingAuthenticationStrategy =
|
|
1339
|
+
contents.PendingAuthenticationStrategy = smithy_client_1.expectString(data.pendingAuthenticationStrategy);
|
|
1340
1340
|
}
|
|
1341
1341
|
if (data.pendingEngineVersion !== undefined && data.pendingEngineVersion !== null) {
|
|
1342
|
-
contents.PendingEngineVersion =
|
|
1342
|
+
contents.PendingEngineVersion = smithy_client_1.expectString(data.pendingEngineVersion);
|
|
1343
1343
|
}
|
|
1344
1344
|
if (data.pendingHostInstanceType !== undefined && data.pendingHostInstanceType !== null) {
|
|
1345
|
-
contents.PendingHostInstanceType =
|
|
1345
|
+
contents.PendingHostInstanceType = smithy_client_1.expectString(data.pendingHostInstanceType);
|
|
1346
1346
|
}
|
|
1347
1347
|
if (data.pendingLdapServerMetadata !== undefined && data.pendingLdapServerMetadata !== null) {
|
|
1348
1348
|
contents.PendingLdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.pendingLdapServerMetadata, context);
|
|
@@ -1351,13 +1351,13 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
1351
1351
|
contents.PendingSecurityGroups = deserializeAws_restJson1__listOf__string(data.pendingSecurityGroups, context);
|
|
1352
1352
|
}
|
|
1353
1353
|
if (data.publiclyAccessible !== undefined && data.publiclyAccessible !== null) {
|
|
1354
|
-
contents.PubliclyAccessible =
|
|
1354
|
+
contents.PubliclyAccessible = smithy_client_1.expectBoolean(data.publiclyAccessible);
|
|
1355
1355
|
}
|
|
1356
1356
|
if (data.securityGroups !== undefined && data.securityGroups !== null) {
|
|
1357
1357
|
contents.SecurityGroups = deserializeAws_restJson1__listOf__string(data.securityGroups, context);
|
|
1358
1358
|
}
|
|
1359
1359
|
if (data.storageType !== undefined && data.storageType !== null) {
|
|
1360
|
-
contents.StorageType =
|
|
1360
|
+
contents.StorageType = smithy_client_1.expectString(data.storageType);
|
|
1361
1361
|
}
|
|
1362
1362
|
if (data.subnetIds !== undefined && data.subnetIds !== null) {
|
|
1363
1363
|
contents.SubnetIds = deserializeAws_restJson1__listOf__string(data.subnetIds, context);
|
|
@@ -1438,15 +1438,15 @@ const deserializeAws_restJson1DescribeBrokerEngineTypesCommand = async (output,
|
|
|
1438
1438
|
MaxResults: undefined,
|
|
1439
1439
|
NextToken: undefined,
|
|
1440
1440
|
};
|
|
1441
|
-
const data =
|
|
1441
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1442
1442
|
if (data.brokerEngineTypes !== undefined && data.brokerEngineTypes !== null) {
|
|
1443
1443
|
contents.BrokerEngineTypes = deserializeAws_restJson1__listOfBrokerEngineType(data.brokerEngineTypes, context);
|
|
1444
1444
|
}
|
|
1445
1445
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
1446
|
-
contents.MaxResults =
|
|
1446
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.maxResults);
|
|
1447
1447
|
}
|
|
1448
1448
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1449
|
-
contents.NextToken =
|
|
1449
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1450
1450
|
}
|
|
1451
1451
|
return Promise.resolve(contents);
|
|
1452
1452
|
};
|
|
@@ -1510,15 +1510,15 @@ const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = async (outp
|
|
|
1510
1510
|
MaxResults: undefined,
|
|
1511
1511
|
NextToken: undefined,
|
|
1512
1512
|
};
|
|
1513
|
-
const data =
|
|
1513
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1514
1514
|
if (data.brokerInstanceOptions !== undefined && data.brokerInstanceOptions !== null) {
|
|
1515
1515
|
contents.BrokerInstanceOptions = deserializeAws_restJson1__listOfBrokerInstanceOption(data.brokerInstanceOptions, context);
|
|
1516
1516
|
}
|
|
1517
1517
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
1518
|
-
contents.MaxResults =
|
|
1518
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.maxResults);
|
|
1519
1519
|
}
|
|
1520
1520
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1521
|
-
contents.NextToken =
|
|
1521
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1522
1522
|
}
|
|
1523
1523
|
return Promise.resolve(contents);
|
|
1524
1524
|
};
|
|
@@ -1589,33 +1589,33 @@ const deserializeAws_restJson1DescribeConfigurationCommand = async (output, cont
|
|
|
1589
1589
|
Name: undefined,
|
|
1590
1590
|
Tags: undefined,
|
|
1591
1591
|
};
|
|
1592
|
-
const data =
|
|
1592
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1593
1593
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1594
|
-
contents.Arn =
|
|
1594
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1595
1595
|
}
|
|
1596
1596
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
1597
|
-
contents.AuthenticationStrategy =
|
|
1597
|
+
contents.AuthenticationStrategy = smithy_client_1.expectString(data.authenticationStrategy);
|
|
1598
1598
|
}
|
|
1599
1599
|
if (data.created !== undefined && data.created !== null) {
|
|
1600
|
-
contents.Created =
|
|
1600
|
+
contents.Created = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.created));
|
|
1601
1601
|
}
|
|
1602
1602
|
if (data.description !== undefined && data.description !== null) {
|
|
1603
|
-
contents.Description =
|
|
1603
|
+
contents.Description = smithy_client_1.expectString(data.description);
|
|
1604
1604
|
}
|
|
1605
1605
|
if (data.engineType !== undefined && data.engineType !== null) {
|
|
1606
|
-
contents.EngineType =
|
|
1606
|
+
contents.EngineType = smithy_client_1.expectString(data.engineType);
|
|
1607
1607
|
}
|
|
1608
1608
|
if (data.engineVersion !== undefined && data.engineVersion !== null) {
|
|
1609
|
-
contents.EngineVersion =
|
|
1609
|
+
contents.EngineVersion = smithy_client_1.expectString(data.engineVersion);
|
|
1610
1610
|
}
|
|
1611
1611
|
if (data.id !== undefined && data.id !== null) {
|
|
1612
|
-
contents.Id =
|
|
1612
|
+
contents.Id = smithy_client_1.expectString(data.id);
|
|
1613
1613
|
}
|
|
1614
1614
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
1615
1615
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1616
1616
|
}
|
|
1617
1617
|
if (data.name !== undefined && data.name !== null) {
|
|
1618
|
-
contents.Name =
|
|
1618
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
1619
1619
|
}
|
|
1620
1620
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1621
1621
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
@@ -1691,18 +1691,18 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (outp
|
|
|
1691
1691
|
Data: undefined,
|
|
1692
1692
|
Description: undefined,
|
|
1693
1693
|
};
|
|
1694
|
-
const data =
|
|
1694
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1695
1695
|
if (data.configurationId !== undefined && data.configurationId !== null) {
|
|
1696
|
-
contents.ConfigurationId =
|
|
1696
|
+
contents.ConfigurationId = smithy_client_1.expectString(data.configurationId);
|
|
1697
1697
|
}
|
|
1698
1698
|
if (data.created !== undefined && data.created !== null) {
|
|
1699
|
-
contents.Created =
|
|
1699
|
+
contents.Created = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.created));
|
|
1700
1700
|
}
|
|
1701
1701
|
if (data.data !== undefined && data.data !== null) {
|
|
1702
|
-
contents.Data =
|
|
1702
|
+
contents.Data = smithy_client_1.expectString(data.data);
|
|
1703
1703
|
}
|
|
1704
1704
|
if (data.description !== undefined && data.description !== null) {
|
|
1705
|
-
contents.Description =
|
|
1705
|
+
contents.Description = smithy_client_1.expectString(data.description);
|
|
1706
1706
|
}
|
|
1707
1707
|
return Promise.resolve(contents);
|
|
1708
1708
|
};
|
|
@@ -1776,12 +1776,12 @@ const deserializeAws_restJson1DescribeUserCommand = async (output, context) => {
|
|
|
1776
1776
|
Pending: undefined,
|
|
1777
1777
|
Username: undefined,
|
|
1778
1778
|
};
|
|
1779
|
-
const data =
|
|
1779
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1780
1780
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
1781
|
-
contents.BrokerId =
|
|
1781
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
1782
1782
|
}
|
|
1783
1783
|
if (data.consoleAccess !== undefined && data.consoleAccess !== null) {
|
|
1784
|
-
contents.ConsoleAccess =
|
|
1784
|
+
contents.ConsoleAccess = smithy_client_1.expectBoolean(data.consoleAccess);
|
|
1785
1785
|
}
|
|
1786
1786
|
if (data.groups !== undefined && data.groups !== null) {
|
|
1787
1787
|
contents.Groups = deserializeAws_restJson1__listOf__string(data.groups, context);
|
|
@@ -1790,7 +1790,7 @@ const deserializeAws_restJson1DescribeUserCommand = async (output, context) => {
|
|
|
1790
1790
|
contents.Pending = deserializeAws_restJson1UserPendingChanges(data.pending, context);
|
|
1791
1791
|
}
|
|
1792
1792
|
if (data.username !== undefined && data.username !== null) {
|
|
1793
|
-
contents.Username =
|
|
1793
|
+
contents.Username = smithy_client_1.expectString(data.username);
|
|
1794
1794
|
}
|
|
1795
1795
|
return Promise.resolve(contents);
|
|
1796
1796
|
};
|
|
@@ -1861,12 +1861,12 @@ const deserializeAws_restJson1ListBrokersCommand = async (output, context) => {
|
|
|
1861
1861
|
BrokerSummaries: undefined,
|
|
1862
1862
|
NextToken: undefined,
|
|
1863
1863
|
};
|
|
1864
|
-
const data =
|
|
1864
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1865
1865
|
if (data.brokerSummaries !== undefined && data.brokerSummaries !== null) {
|
|
1866
1866
|
contents.BrokerSummaries = deserializeAws_restJson1__listOfBrokerSummary(data.brokerSummaries, context);
|
|
1867
1867
|
}
|
|
1868
1868
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1869
|
-
contents.NextToken =
|
|
1869
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1870
1870
|
}
|
|
1871
1871
|
return Promise.resolve(contents);
|
|
1872
1872
|
};
|
|
@@ -1931,15 +1931,15 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (output,
|
|
|
1931
1931
|
NextToken: undefined,
|
|
1932
1932
|
Revisions: undefined,
|
|
1933
1933
|
};
|
|
1934
|
-
const data =
|
|
1934
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1935
1935
|
if (data.configurationId !== undefined && data.configurationId !== null) {
|
|
1936
|
-
contents.ConfigurationId =
|
|
1936
|
+
contents.ConfigurationId = smithy_client_1.expectString(data.configurationId);
|
|
1937
1937
|
}
|
|
1938
1938
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
1939
|
-
contents.MaxResults =
|
|
1939
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.maxResults);
|
|
1940
1940
|
}
|
|
1941
1941
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1942
|
-
contents.NextToken =
|
|
1942
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
1943
1943
|
}
|
|
1944
1944
|
if (data.revisions !== undefined && data.revisions !== null) {
|
|
1945
1945
|
contents.Revisions = deserializeAws_restJson1__listOfConfigurationRevision(data.revisions, context);
|
|
@@ -2014,15 +2014,15 @@ const deserializeAws_restJson1ListConfigurationsCommand = async (output, context
|
|
|
2014
2014
|
MaxResults: undefined,
|
|
2015
2015
|
NextToken: undefined,
|
|
2016
2016
|
};
|
|
2017
|
-
const data =
|
|
2017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2018
2018
|
if (data.configurations !== undefined && data.configurations !== null) {
|
|
2019
2019
|
contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context);
|
|
2020
2020
|
}
|
|
2021
2021
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
2022
|
-
contents.MaxResults =
|
|
2022
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.maxResults);
|
|
2023
2023
|
}
|
|
2024
2024
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2025
|
-
contents.NextToken =
|
|
2025
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2026
2026
|
}
|
|
2027
2027
|
return Promise.resolve(contents);
|
|
2028
2028
|
};
|
|
@@ -2084,7 +2084,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
|
2084
2084
|
$metadata: deserializeMetadata(output),
|
|
2085
2085
|
Tags: undefined,
|
|
2086
2086
|
};
|
|
2087
|
-
const data =
|
|
2087
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2088
2088
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2089
2089
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2090
2090
|
}
|
|
@@ -2159,15 +2159,15 @@ const deserializeAws_restJson1ListUsersCommand = async (output, context) => {
|
|
|
2159
2159
|
NextToken: undefined,
|
|
2160
2160
|
Users: undefined,
|
|
2161
2161
|
};
|
|
2162
|
-
const data =
|
|
2162
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2163
2163
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
2164
|
-
contents.BrokerId =
|
|
2164
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
2165
2165
|
}
|
|
2166
2166
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
2167
|
-
contents.MaxResults =
|
|
2167
|
+
contents.MaxResults = smithy_client_1.expectInt32(data.maxResults);
|
|
2168
2168
|
}
|
|
2169
2169
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2170
|
-
contents.NextToken =
|
|
2170
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2171
2171
|
}
|
|
2172
2172
|
if (data.users !== undefined && data.users !== null) {
|
|
2173
2173
|
contents.Users = deserializeAws_restJson1__listOfUserSummary(data.users, context);
|
|
@@ -2317,24 +2317,24 @@ const deserializeAws_restJson1UpdateBrokerCommand = async (output, context) => {
|
|
|
2317
2317
|
MaintenanceWindowStartTime: undefined,
|
|
2318
2318
|
SecurityGroups: undefined,
|
|
2319
2319
|
};
|
|
2320
|
-
const data =
|
|
2320
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2321
2321
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
2322
|
-
contents.AuthenticationStrategy =
|
|
2322
|
+
contents.AuthenticationStrategy = smithy_client_1.expectString(data.authenticationStrategy);
|
|
2323
2323
|
}
|
|
2324
2324
|
if (data.autoMinorVersionUpgrade !== undefined && data.autoMinorVersionUpgrade !== null) {
|
|
2325
|
-
contents.AutoMinorVersionUpgrade =
|
|
2325
|
+
contents.AutoMinorVersionUpgrade = smithy_client_1.expectBoolean(data.autoMinorVersionUpgrade);
|
|
2326
2326
|
}
|
|
2327
2327
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
2328
|
-
contents.BrokerId =
|
|
2328
|
+
contents.BrokerId = smithy_client_1.expectString(data.brokerId);
|
|
2329
2329
|
}
|
|
2330
2330
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
2331
2331
|
contents.Configuration = deserializeAws_restJson1ConfigurationId(data.configuration, context);
|
|
2332
2332
|
}
|
|
2333
2333
|
if (data.engineVersion !== undefined && data.engineVersion !== null) {
|
|
2334
|
-
contents.EngineVersion =
|
|
2334
|
+
contents.EngineVersion = smithy_client_1.expectString(data.engineVersion);
|
|
2335
2335
|
}
|
|
2336
2336
|
if (data.hostInstanceType !== undefined && data.hostInstanceType !== null) {
|
|
2337
|
-
contents.HostInstanceType =
|
|
2337
|
+
contents.HostInstanceType = smithy_client_1.expectString(data.hostInstanceType);
|
|
2338
2338
|
}
|
|
2339
2339
|
if (data.ldapServerMetadata !== undefined && data.ldapServerMetadata !== null) {
|
|
2340
2340
|
contents.LdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
@@ -2429,21 +2429,21 @@ const deserializeAws_restJson1UpdateConfigurationCommand = async (output, contex
|
|
|
2429
2429
|
Name: undefined,
|
|
2430
2430
|
Warnings: undefined,
|
|
2431
2431
|
};
|
|
2432
|
-
const data =
|
|
2432
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2433
2433
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2434
|
-
contents.Arn =
|
|
2434
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
2435
2435
|
}
|
|
2436
2436
|
if (data.created !== undefined && data.created !== null) {
|
|
2437
|
-
contents.Created =
|
|
2437
|
+
contents.Created = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.created));
|
|
2438
2438
|
}
|
|
2439
2439
|
if (data.id !== undefined && data.id !== null) {
|
|
2440
|
-
contents.Id =
|
|
2440
|
+
contents.Id = smithy_client_1.expectString(data.id);
|
|
2441
2441
|
}
|
|
2442
2442
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
2443
2443
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
2444
2444
|
}
|
|
2445
2445
|
if (data.name !== undefined && data.name !== null) {
|
|
2446
|
-
contents.Name =
|
|
2446
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
2447
2447
|
}
|
|
2448
2448
|
if (data.warnings !== undefined && data.warnings !== null) {
|
|
2449
2449
|
contents.Warnings = deserializeAws_restJson1__listOfSanitizationWarning(data.warnings, context);
|
|
@@ -2602,10 +2602,10 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2602
2602
|
};
|
|
2603
2603
|
const data = parsedOutput.body;
|
|
2604
2604
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2605
|
-
contents.ErrorAttribute =
|
|
2605
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2606
2606
|
}
|
|
2607
2607
|
if (data.message !== undefined && data.message !== null) {
|
|
2608
|
-
contents.Message =
|
|
2608
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2609
2609
|
}
|
|
2610
2610
|
return contents;
|
|
2611
2611
|
};
|
|
@@ -2619,10 +2619,10 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2619
2619
|
};
|
|
2620
2620
|
const data = parsedOutput.body;
|
|
2621
2621
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2622
|
-
contents.ErrorAttribute =
|
|
2622
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2623
2623
|
}
|
|
2624
2624
|
if (data.message !== undefined && data.message !== null) {
|
|
2625
|
-
contents.Message =
|
|
2625
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2626
2626
|
}
|
|
2627
2627
|
return contents;
|
|
2628
2628
|
};
|
|
@@ -2636,10 +2636,10 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
2636
2636
|
};
|
|
2637
2637
|
const data = parsedOutput.body;
|
|
2638
2638
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2639
|
-
contents.ErrorAttribute =
|
|
2639
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2640
2640
|
}
|
|
2641
2641
|
if (data.message !== undefined && data.message !== null) {
|
|
2642
|
-
contents.Message =
|
|
2642
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2643
2643
|
}
|
|
2644
2644
|
return contents;
|
|
2645
2645
|
};
|
|
@@ -2653,10 +2653,10 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
2653
2653
|
};
|
|
2654
2654
|
const data = parsedOutput.body;
|
|
2655
2655
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2656
|
-
contents.ErrorAttribute =
|
|
2656
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2657
2657
|
}
|
|
2658
2658
|
if (data.message !== undefined && data.message !== null) {
|
|
2659
|
-
contents.Message =
|
|
2659
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2660
2660
|
}
|
|
2661
2661
|
return contents;
|
|
2662
2662
|
};
|
|
@@ -2670,10 +2670,10 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2670
2670
|
};
|
|
2671
2671
|
const data = parsedOutput.body;
|
|
2672
2672
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2673
|
-
contents.ErrorAttribute =
|
|
2673
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2674
2674
|
}
|
|
2675
2675
|
if (data.message !== undefined && data.message !== null) {
|
|
2676
|
-
contents.Message =
|
|
2676
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2677
2677
|
}
|
|
2678
2678
|
return contents;
|
|
2679
2679
|
};
|
|
@@ -2687,10 +2687,10 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
2687
2687
|
};
|
|
2688
2688
|
const data = parsedOutput.body;
|
|
2689
2689
|
if (data.errorAttribute !== undefined && data.errorAttribute !== null) {
|
|
2690
|
-
contents.ErrorAttribute =
|
|
2690
|
+
contents.ErrorAttribute = smithy_client_1.expectString(data.errorAttribute);
|
|
2691
2691
|
}
|
|
2692
2692
|
if (data.message !== undefined && data.message !== null) {
|
|
2693
|
-
contents.Message =
|
|
2693
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
2694
2694
|
}
|
|
2695
2695
|
return contents;
|
|
2696
2696
|
};
|
|
@@ -2789,7 +2789,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
2789
2789
|
if (entry === null) {
|
|
2790
2790
|
return null;
|
|
2791
2791
|
}
|
|
2792
|
-
return
|
|
2792
|
+
return smithy_client_1.expectString(entry);
|
|
2793
2793
|
});
|
|
2794
2794
|
};
|
|
2795
2795
|
const deserializeAws_restJson1__listOfAvailabilityZone = (output, context) => {
|
|
@@ -2879,7 +2879,7 @@ const deserializeAws_restJson1__listOfDeploymentMode = (output, context) => {
|
|
|
2879
2879
|
if (entry === null) {
|
|
2880
2880
|
return null;
|
|
2881
2881
|
}
|
|
2882
|
-
return
|
|
2882
|
+
return smithy_client_1.expectString(entry);
|
|
2883
2883
|
});
|
|
2884
2884
|
};
|
|
2885
2885
|
const deserializeAws_restJson1__listOfEngineVersion = (output, context) => {
|
|
@@ -2919,18 +2919,18 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
return {
|
|
2921
2921
|
...acc,
|
|
2922
|
-
[key]:
|
|
2922
|
+
[key]: smithy_client_1.expectString(value),
|
|
2923
2923
|
};
|
|
2924
2924
|
}, {});
|
|
2925
2925
|
};
|
|
2926
2926
|
const deserializeAws_restJson1AvailabilityZone = (output, context) => {
|
|
2927
2927
|
return {
|
|
2928
|
-
Name:
|
|
2928
|
+
Name: smithy_client_1.expectString(output.name),
|
|
2929
2929
|
};
|
|
2930
2930
|
};
|
|
2931
2931
|
const deserializeAws_restJson1BrokerEngineType = (output, context) => {
|
|
2932
2932
|
return {
|
|
2933
|
-
EngineType:
|
|
2933
|
+
EngineType: smithy_client_1.expectString(output.engineType),
|
|
2934
2934
|
EngineVersions: output.engineVersions !== undefined && output.engineVersions !== null
|
|
2935
2935
|
? deserializeAws_restJson1__listOfEngineVersion(output.engineVersions, context)
|
|
2936
2936
|
: undefined,
|
|
@@ -2938,11 +2938,11 @@ const deserializeAws_restJson1BrokerEngineType = (output, context) => {
|
|
|
2938
2938
|
};
|
|
2939
2939
|
const deserializeAws_restJson1BrokerInstance = (output, context) => {
|
|
2940
2940
|
return {
|
|
2941
|
-
ConsoleURL:
|
|
2941
|
+
ConsoleURL: smithy_client_1.expectString(output.consoleURL),
|
|
2942
2942
|
Endpoints: output.endpoints !== undefined && output.endpoints !== null
|
|
2943
2943
|
? deserializeAws_restJson1__listOf__string(output.endpoints, context)
|
|
2944
2944
|
: undefined,
|
|
2945
|
-
IpAddress:
|
|
2945
|
+
IpAddress: smithy_client_1.expectString(output.ipAddress),
|
|
2946
2946
|
};
|
|
2947
2947
|
};
|
|
2948
2948
|
const deserializeAws_restJson1BrokerInstanceOption = (output, context) => {
|
|
@@ -2950,9 +2950,9 @@ const deserializeAws_restJson1BrokerInstanceOption = (output, context) => {
|
|
|
2950
2950
|
AvailabilityZones: output.availabilityZones !== undefined && output.availabilityZones !== null
|
|
2951
2951
|
? deserializeAws_restJson1__listOfAvailabilityZone(output.availabilityZones, context)
|
|
2952
2952
|
: undefined,
|
|
2953
|
-
EngineType:
|
|
2954
|
-
HostInstanceType:
|
|
2955
|
-
StorageType:
|
|
2953
|
+
EngineType: smithy_client_1.expectString(output.engineType),
|
|
2954
|
+
HostInstanceType: smithy_client_1.expectString(output.hostInstanceType),
|
|
2955
|
+
StorageType: smithy_client_1.expectString(output.storageType),
|
|
2956
2956
|
SupportedDeploymentModes: output.supportedDeploymentModes !== undefined && output.supportedDeploymentModes !== null
|
|
2957
2957
|
? deserializeAws_restJson1__listOfDeploymentMode(output.supportedDeploymentModes, context)
|
|
2958
2958
|
: undefined,
|
|
@@ -2963,33 +2963,33 @@ const deserializeAws_restJson1BrokerInstanceOption = (output, context) => {
|
|
|
2963
2963
|
};
|
|
2964
2964
|
const deserializeAws_restJson1BrokerSummary = (output, context) => {
|
|
2965
2965
|
return {
|
|
2966
|
-
BrokerArn:
|
|
2967
|
-
BrokerId:
|
|
2968
|
-
BrokerName:
|
|
2969
|
-
BrokerState:
|
|
2966
|
+
BrokerArn: smithy_client_1.expectString(output.brokerArn),
|
|
2967
|
+
BrokerId: smithy_client_1.expectString(output.brokerId),
|
|
2968
|
+
BrokerName: smithy_client_1.expectString(output.brokerName),
|
|
2969
|
+
BrokerState: smithy_client_1.expectString(output.brokerState),
|
|
2970
2970
|
Created: output.created !== undefined && output.created !== null
|
|
2971
|
-
?
|
|
2971
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.created))
|
|
2972
2972
|
: undefined,
|
|
2973
|
-
DeploymentMode:
|
|
2974
|
-
EngineType:
|
|
2975
|
-
HostInstanceType:
|
|
2973
|
+
DeploymentMode: smithy_client_1.expectString(output.deploymentMode),
|
|
2974
|
+
EngineType: smithy_client_1.expectString(output.engineType),
|
|
2975
|
+
HostInstanceType: smithy_client_1.expectString(output.hostInstanceType),
|
|
2976
2976
|
};
|
|
2977
2977
|
};
|
|
2978
2978
|
const deserializeAws_restJson1Configuration = (output, context) => {
|
|
2979
2979
|
return {
|
|
2980
|
-
Arn:
|
|
2981
|
-
AuthenticationStrategy:
|
|
2980
|
+
Arn: smithy_client_1.expectString(output.arn),
|
|
2981
|
+
AuthenticationStrategy: smithy_client_1.expectString(output.authenticationStrategy),
|
|
2982
2982
|
Created: output.created !== undefined && output.created !== null
|
|
2983
|
-
?
|
|
2983
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.created))
|
|
2984
2984
|
: undefined,
|
|
2985
|
-
Description:
|
|
2986
|
-
EngineType:
|
|
2987
|
-
EngineVersion:
|
|
2988
|
-
Id:
|
|
2985
|
+
Description: smithy_client_1.expectString(output.description),
|
|
2986
|
+
EngineType: smithy_client_1.expectString(output.engineType),
|
|
2987
|
+
EngineVersion: smithy_client_1.expectString(output.engineVersion),
|
|
2988
|
+
Id: smithy_client_1.expectString(output.id),
|
|
2989
2989
|
LatestRevision: output.latestRevision !== undefined && output.latestRevision !== null
|
|
2990
2990
|
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
2991
2991
|
: undefined,
|
|
2992
|
-
Name:
|
|
2992
|
+
Name: smithy_client_1.expectString(output.name),
|
|
2993
2993
|
Tags: output.tags !== undefined && output.tags !== null
|
|
2994
2994
|
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
2995
2995
|
: undefined,
|
|
@@ -2997,17 +2997,17 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2997
2997
|
};
|
|
2998
2998
|
const deserializeAws_restJson1ConfigurationId = (output, context) => {
|
|
2999
2999
|
return {
|
|
3000
|
-
Id:
|
|
3001
|
-
Revision:
|
|
3000
|
+
Id: smithy_client_1.expectString(output.id),
|
|
3001
|
+
Revision: smithy_client_1.expectInt32(output.revision),
|
|
3002
3002
|
};
|
|
3003
3003
|
};
|
|
3004
3004
|
const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
|
|
3005
3005
|
return {
|
|
3006
3006
|
Created: output.created !== undefined && output.created !== null
|
|
3007
|
-
?
|
|
3007
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.created))
|
|
3008
3008
|
: undefined,
|
|
3009
|
-
Description:
|
|
3010
|
-
Revision:
|
|
3009
|
+
Description: smithy_client_1.expectString(output.description),
|
|
3010
|
+
Revision: smithy_client_1.expectInt32(output.revision),
|
|
3011
3011
|
};
|
|
3012
3012
|
};
|
|
3013
3013
|
const deserializeAws_restJson1Configurations = (output, context) => {
|
|
@@ -3025,13 +3025,13 @@ const deserializeAws_restJson1Configurations = (output, context) => {
|
|
|
3025
3025
|
};
|
|
3026
3026
|
const deserializeAws_restJson1EncryptionOptions = (output, context) => {
|
|
3027
3027
|
return {
|
|
3028
|
-
KmsKeyId:
|
|
3029
|
-
UseAwsOwnedKey:
|
|
3028
|
+
KmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
|
|
3029
|
+
UseAwsOwnedKey: smithy_client_1.expectBoolean(output.useAwsOwnedKey),
|
|
3030
3030
|
};
|
|
3031
3031
|
};
|
|
3032
3032
|
const deserializeAws_restJson1EngineVersion = (output, context) => {
|
|
3033
3033
|
return {
|
|
3034
|
-
Name:
|
|
3034
|
+
Name: smithy_client_1.expectString(output.name),
|
|
3035
3035
|
};
|
|
3036
3036
|
};
|
|
3037
3037
|
const deserializeAws_restJson1LdapServerMetadataOutput = (output, context) => {
|
|
@@ -3039,29 +3039,29 @@ const deserializeAws_restJson1LdapServerMetadataOutput = (output, context) => {
|
|
|
3039
3039
|
Hosts: output.hosts !== undefined && output.hosts !== null
|
|
3040
3040
|
? deserializeAws_restJson1__listOf__string(output.hosts, context)
|
|
3041
3041
|
: undefined,
|
|
3042
|
-
RoleBase:
|
|
3043
|
-
RoleName:
|
|
3044
|
-
RoleSearchMatching:
|
|
3045
|
-
RoleSearchSubtree:
|
|
3046
|
-
ServiceAccountUsername:
|
|
3047
|
-
UserBase:
|
|
3048
|
-
UserRoleName:
|
|
3049
|
-
UserSearchMatching:
|
|
3050
|
-
UserSearchSubtree:
|
|
3042
|
+
RoleBase: smithy_client_1.expectString(output.roleBase),
|
|
3043
|
+
RoleName: smithy_client_1.expectString(output.roleName),
|
|
3044
|
+
RoleSearchMatching: smithy_client_1.expectString(output.roleSearchMatching),
|
|
3045
|
+
RoleSearchSubtree: smithy_client_1.expectBoolean(output.roleSearchSubtree),
|
|
3046
|
+
ServiceAccountUsername: smithy_client_1.expectString(output.serviceAccountUsername),
|
|
3047
|
+
UserBase: smithy_client_1.expectString(output.userBase),
|
|
3048
|
+
UserRoleName: smithy_client_1.expectString(output.userRoleName),
|
|
3049
|
+
UserSearchMatching: smithy_client_1.expectString(output.userSearchMatching),
|
|
3050
|
+
UserSearchSubtree: smithy_client_1.expectBoolean(output.userSearchSubtree),
|
|
3051
3051
|
};
|
|
3052
3052
|
};
|
|
3053
3053
|
const deserializeAws_restJson1Logs = (output, context) => {
|
|
3054
3054
|
return {
|
|
3055
|
-
Audit:
|
|
3056
|
-
General:
|
|
3055
|
+
Audit: smithy_client_1.expectBoolean(output.audit),
|
|
3056
|
+
General: smithy_client_1.expectBoolean(output.general),
|
|
3057
3057
|
};
|
|
3058
3058
|
};
|
|
3059
3059
|
const deserializeAws_restJson1LogsSummary = (output, context) => {
|
|
3060
3060
|
return {
|
|
3061
|
-
Audit:
|
|
3062
|
-
AuditLogGroup:
|
|
3063
|
-
General:
|
|
3064
|
-
GeneralLogGroup:
|
|
3061
|
+
Audit: smithy_client_1.expectBoolean(output.audit),
|
|
3062
|
+
AuditLogGroup: smithy_client_1.expectString(output.auditLogGroup),
|
|
3063
|
+
General: smithy_client_1.expectBoolean(output.general),
|
|
3064
|
+
GeneralLogGroup: smithy_client_1.expectString(output.generalLogGroup),
|
|
3065
3065
|
Pending: output.pending !== undefined && output.pending !== null
|
|
3066
3066
|
? deserializeAws_restJson1PendingLogs(output.pending, context)
|
|
3067
3067
|
: undefined,
|
|
@@ -3069,37 +3069,37 @@ const deserializeAws_restJson1LogsSummary = (output, context) => {
|
|
|
3069
3069
|
};
|
|
3070
3070
|
const deserializeAws_restJson1PendingLogs = (output, context) => {
|
|
3071
3071
|
return {
|
|
3072
|
-
Audit:
|
|
3073
|
-
General:
|
|
3072
|
+
Audit: smithy_client_1.expectBoolean(output.audit),
|
|
3073
|
+
General: smithy_client_1.expectBoolean(output.general),
|
|
3074
3074
|
};
|
|
3075
3075
|
};
|
|
3076
3076
|
const deserializeAws_restJson1SanitizationWarning = (output, context) => {
|
|
3077
3077
|
return {
|
|
3078
|
-
AttributeName:
|
|
3079
|
-
ElementName:
|
|
3080
|
-
Reason:
|
|
3078
|
+
AttributeName: smithy_client_1.expectString(output.attributeName),
|
|
3079
|
+
ElementName: smithy_client_1.expectString(output.elementName),
|
|
3080
|
+
Reason: smithy_client_1.expectString(output.reason),
|
|
3081
3081
|
};
|
|
3082
3082
|
};
|
|
3083
3083
|
const deserializeAws_restJson1UserPendingChanges = (output, context) => {
|
|
3084
3084
|
return {
|
|
3085
|
-
ConsoleAccess:
|
|
3085
|
+
ConsoleAccess: smithy_client_1.expectBoolean(output.consoleAccess),
|
|
3086
3086
|
Groups: output.groups !== undefined && output.groups !== null
|
|
3087
3087
|
? deserializeAws_restJson1__listOf__string(output.groups, context)
|
|
3088
3088
|
: undefined,
|
|
3089
|
-
PendingChange:
|
|
3089
|
+
PendingChange: smithy_client_1.expectString(output.pendingChange),
|
|
3090
3090
|
};
|
|
3091
3091
|
};
|
|
3092
3092
|
const deserializeAws_restJson1UserSummary = (output, context) => {
|
|
3093
3093
|
return {
|
|
3094
|
-
PendingChange:
|
|
3095
|
-
Username:
|
|
3094
|
+
PendingChange: smithy_client_1.expectString(output.pendingChange),
|
|
3095
|
+
Username: smithy_client_1.expectString(output.username),
|
|
3096
3096
|
};
|
|
3097
3097
|
};
|
|
3098
3098
|
const deserializeAws_restJson1WeeklyStartTime = (output, context) => {
|
|
3099
3099
|
return {
|
|
3100
|
-
DayOfWeek:
|
|
3101
|
-
TimeOfDay:
|
|
3102
|
-
TimeZone:
|
|
3100
|
+
DayOfWeek: smithy_client_1.expectString(output.dayOfWeek),
|
|
3101
|
+
TimeOfDay: smithy_client_1.expectString(output.timeOfDay),
|
|
3102
|
+
TimeZone: smithy_client_1.expectString(output.timeZone),
|
|
3103
3103
|
};
|
|
3104
3104
|
};
|
|
3105
3105
|
const deserializeMetadata = (output) => {
|