@aws-sdk/client-mq 3.121.0 → 3.127.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/protocols/Aws_restJson1.js +81 -137
- package/dist-es/protocols/Aws_restJson1.js +37 -93
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-mq
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -15,48 +15,35 @@ const serializeAws_restJson1CreateBrokerCommand = async (input, context) => {
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
...(input.AuthenticationStrategy
|
|
19
|
-
|
|
20
|
-
...(input.
|
|
21
|
-
|
|
22
|
-
...(input.BrokerName !== undefined && input.BrokerName !== null && { brokerName: input.BrokerName }),
|
|
23
|
-
...(input.Configuration !== undefined &&
|
|
24
|
-
input.Configuration !== null && {
|
|
18
|
+
...(input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy }),
|
|
19
|
+
...(input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
20
|
+
...(input.BrokerName != null && { brokerName: input.BrokerName }),
|
|
21
|
+
...(input.Configuration != null && {
|
|
25
22
|
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
26
23
|
}),
|
|
27
24
|
creatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
28
|
-
...(input.DeploymentMode
|
|
29
|
-
|
|
30
|
-
...(input.EncryptionOptions !== undefined &&
|
|
31
|
-
input.EncryptionOptions !== null && {
|
|
25
|
+
...(input.DeploymentMode != null && { deploymentMode: input.DeploymentMode }),
|
|
26
|
+
...(input.EncryptionOptions != null && {
|
|
32
27
|
encryptionOptions: serializeAws_restJson1EncryptionOptions(input.EncryptionOptions, context),
|
|
33
28
|
}),
|
|
34
|
-
...(input.EngineType
|
|
35
|
-
...(input.EngineVersion
|
|
36
|
-
...(input.HostInstanceType
|
|
37
|
-
|
|
38
|
-
...(input.LdapServerMetadata !== undefined &&
|
|
39
|
-
input.LdapServerMetadata !== null && {
|
|
29
|
+
...(input.EngineType != null && { engineType: input.EngineType }),
|
|
30
|
+
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
31
|
+
...(input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType }),
|
|
32
|
+
...(input.LdapServerMetadata != null && {
|
|
40
33
|
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
41
34
|
}),
|
|
42
|
-
...(input.Logs
|
|
43
|
-
...(input.MaintenanceWindowStartTime
|
|
44
|
-
input.MaintenanceWindowStartTime !== null && {
|
|
35
|
+
...(input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) }),
|
|
36
|
+
...(input.MaintenanceWindowStartTime != null && {
|
|
45
37
|
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
46
38
|
}),
|
|
47
|
-
...(input.PubliclyAccessible
|
|
48
|
-
|
|
49
|
-
...(input.SecurityGroups !== undefined &&
|
|
50
|
-
input.SecurityGroups !== null && {
|
|
39
|
+
...(input.PubliclyAccessible != null && { publiclyAccessible: input.PubliclyAccessible }),
|
|
40
|
+
...(input.SecurityGroups != null && {
|
|
51
41
|
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
52
42
|
}),
|
|
53
|
-
...(input.StorageType
|
|
54
|
-
...(input.SubnetIds
|
|
55
|
-
|
|
56
|
-
...(input.
|
|
57
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
58
|
-
...(input.Users !== undefined &&
|
|
59
|
-
input.Users !== null && { users: serializeAws_restJson1__listOfUser(input.Users, context) }),
|
|
43
|
+
...(input.StorageType != null && { storageType: input.StorageType }),
|
|
44
|
+
...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
|
|
45
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
46
|
+
...(input.Users != null && { users: serializeAws_restJson1__listOfUser(input.Users, context) }),
|
|
60
47
|
});
|
|
61
48
|
return new protocol_http_1.HttpRequest({
|
|
62
49
|
protocol,
|
|
@@ -77,13 +64,11 @@ const serializeAws_restJson1CreateConfigurationCommand = async (input, context)
|
|
|
77
64
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
|
|
78
65
|
let body;
|
|
79
66
|
body = JSON.stringify({
|
|
80
|
-
...(input.AuthenticationStrategy
|
|
81
|
-
|
|
82
|
-
...(input.
|
|
83
|
-
...(input.
|
|
84
|
-
...(input.
|
|
85
|
-
...(input.Tags !== undefined &&
|
|
86
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
67
|
+
...(input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy }),
|
|
68
|
+
...(input.EngineType != null && { engineType: input.EngineType }),
|
|
69
|
+
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
70
|
+
...(input.Name != null && { name: input.Name }),
|
|
71
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
87
72
|
});
|
|
88
73
|
return new protocol_http_1.HttpRequest({
|
|
89
74
|
protocol,
|
|
@@ -114,8 +99,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
114
99
|
}
|
|
115
100
|
let body;
|
|
116
101
|
body = JSON.stringify({
|
|
117
|
-
...(input.Tags
|
|
118
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
102
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
119
103
|
});
|
|
120
104
|
return new protocol_http_1.HttpRequest({
|
|
121
105
|
protocol,
|
|
@@ -156,10 +140,9 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
156
140
|
}
|
|
157
141
|
let body;
|
|
158
142
|
body = JSON.stringify({
|
|
159
|
-
...(input.ConsoleAccess
|
|
160
|
-
...(input.Groups
|
|
161
|
-
|
|
162
|
-
...(input.Password !== undefined && input.Password !== null && { password: input.Password }),
|
|
143
|
+
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
144
|
+
...(input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) }),
|
|
145
|
+
...(input.Password != null && { password: input.Password }),
|
|
163
146
|
});
|
|
164
147
|
return new protocol_http_1.HttpRequest({
|
|
165
148
|
protocol,
|
|
@@ -610,28 +593,21 @@ const serializeAws_restJson1UpdateBrokerCommand = async (input, context) => {
|
|
|
610
593
|
}
|
|
611
594
|
let body;
|
|
612
595
|
body = JSON.stringify({
|
|
613
|
-
...(input.AuthenticationStrategy
|
|
614
|
-
|
|
615
|
-
...(input.
|
|
616
|
-
input.AutoMinorVersionUpgrade !== null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
617
|
-
...(input.Configuration !== undefined &&
|
|
618
|
-
input.Configuration !== null && {
|
|
596
|
+
...(input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy }),
|
|
597
|
+
...(input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
598
|
+
...(input.Configuration != null && {
|
|
619
599
|
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
620
600
|
}),
|
|
621
|
-
...(input.EngineVersion
|
|
622
|
-
...(input.HostInstanceType
|
|
623
|
-
|
|
624
|
-
...(input.LdapServerMetadata !== undefined &&
|
|
625
|
-
input.LdapServerMetadata !== null && {
|
|
601
|
+
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
602
|
+
...(input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType }),
|
|
603
|
+
...(input.LdapServerMetadata != null && {
|
|
626
604
|
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
627
605
|
}),
|
|
628
|
-
...(input.Logs
|
|
629
|
-
...(input.MaintenanceWindowStartTime
|
|
630
|
-
input.MaintenanceWindowStartTime !== null && {
|
|
606
|
+
...(input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) }),
|
|
607
|
+
...(input.MaintenanceWindowStartTime != null && {
|
|
631
608
|
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
632
609
|
}),
|
|
633
|
-
...(input.SecurityGroups
|
|
634
|
-
input.SecurityGroups !== null && {
|
|
610
|
+
...(input.SecurityGroups != null && {
|
|
635
611
|
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
636
612
|
}),
|
|
637
613
|
});
|
|
@@ -664,8 +640,8 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
664
640
|
}
|
|
665
641
|
let body;
|
|
666
642
|
body = JSON.stringify({
|
|
667
|
-
...(input.Data
|
|
668
|
-
...(input.Description
|
|
643
|
+
...(input.Data != null && { data: input.Data }),
|
|
644
|
+
...(input.Description != null && { description: input.Description }),
|
|
669
645
|
});
|
|
670
646
|
return new protocol_http_1.HttpRequest({
|
|
671
647
|
protocol,
|
|
@@ -706,10 +682,9 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
706
682
|
}
|
|
707
683
|
let body;
|
|
708
684
|
body = JSON.stringify({
|
|
709
|
-
...(input.ConsoleAccess
|
|
710
|
-
...(input.Groups
|
|
711
|
-
|
|
712
|
-
...(input.Password !== undefined && input.Password !== null && { password: input.Password }),
|
|
685
|
+
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
686
|
+
...(input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) }),
|
|
687
|
+
...(input.Password != null && { password: input.Password }),
|
|
713
688
|
});
|
|
714
689
|
return new protocol_http_1.HttpRequest({
|
|
715
690
|
protocol,
|
|
@@ -2166,59 +2141,50 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
2166
2141
|
};
|
|
2167
2142
|
const serializeAws_restJson1ConfigurationId = (input, context) => {
|
|
2168
2143
|
return {
|
|
2169
|
-
...(input.Id
|
|
2170
|
-
...(input.Revision
|
|
2144
|
+
...(input.Id != null && { id: input.Id }),
|
|
2145
|
+
...(input.Revision != null && { revision: input.Revision }),
|
|
2171
2146
|
};
|
|
2172
2147
|
};
|
|
2173
2148
|
const serializeAws_restJson1EncryptionOptions = (input, context) => {
|
|
2174
2149
|
return {
|
|
2175
|
-
...(input.KmsKeyId
|
|
2176
|
-
...(input.UseAwsOwnedKey
|
|
2177
|
-
input.UseAwsOwnedKey !== null && { useAwsOwnedKey: input.UseAwsOwnedKey }),
|
|
2150
|
+
...(input.KmsKeyId != null && { kmsKeyId: input.KmsKeyId }),
|
|
2151
|
+
...(input.UseAwsOwnedKey != null && { useAwsOwnedKey: input.UseAwsOwnedKey }),
|
|
2178
2152
|
};
|
|
2179
2153
|
};
|
|
2180
2154
|
const serializeAws_restJson1LdapServerMetadataInput = (input, context) => {
|
|
2181
2155
|
return {
|
|
2182
|
-
...(input.Hosts
|
|
2183
|
-
|
|
2184
|
-
...(input.
|
|
2185
|
-
...(input.
|
|
2186
|
-
...(input.
|
|
2187
|
-
|
|
2188
|
-
...(input.
|
|
2189
|
-
|
|
2190
|
-
...(input.
|
|
2191
|
-
|
|
2192
|
-
...(input.
|
|
2193
|
-
input.ServiceAccountUsername !== null && { serviceAccountUsername: input.ServiceAccountUsername }),
|
|
2194
|
-
...(input.UserBase !== undefined && input.UserBase !== null && { userBase: input.UserBase }),
|
|
2195
|
-
...(input.UserRoleName !== undefined && input.UserRoleName !== null && { userRoleName: input.UserRoleName }),
|
|
2196
|
-
...(input.UserSearchMatching !== undefined &&
|
|
2197
|
-
input.UserSearchMatching !== null && { userSearchMatching: input.UserSearchMatching }),
|
|
2198
|
-
...(input.UserSearchSubtree !== undefined &&
|
|
2199
|
-
input.UserSearchSubtree !== null && { userSearchSubtree: input.UserSearchSubtree }),
|
|
2156
|
+
...(input.Hosts != null && { hosts: serializeAws_restJson1__listOf__string(input.Hosts, context) }),
|
|
2157
|
+
...(input.RoleBase != null && { roleBase: input.RoleBase }),
|
|
2158
|
+
...(input.RoleName != null && { roleName: input.RoleName }),
|
|
2159
|
+
...(input.RoleSearchMatching != null && { roleSearchMatching: input.RoleSearchMatching }),
|
|
2160
|
+
...(input.RoleSearchSubtree != null && { roleSearchSubtree: input.RoleSearchSubtree }),
|
|
2161
|
+
...(input.ServiceAccountPassword != null && { serviceAccountPassword: input.ServiceAccountPassword }),
|
|
2162
|
+
...(input.ServiceAccountUsername != null && { serviceAccountUsername: input.ServiceAccountUsername }),
|
|
2163
|
+
...(input.UserBase != null && { userBase: input.UserBase }),
|
|
2164
|
+
...(input.UserRoleName != null && { userRoleName: input.UserRoleName }),
|
|
2165
|
+
...(input.UserSearchMatching != null && { userSearchMatching: input.UserSearchMatching }),
|
|
2166
|
+
...(input.UserSearchSubtree != null && { userSearchSubtree: input.UserSearchSubtree }),
|
|
2200
2167
|
};
|
|
2201
2168
|
};
|
|
2202
2169
|
const serializeAws_restJson1Logs = (input, context) => {
|
|
2203
2170
|
return {
|
|
2204
|
-
...(input.Audit
|
|
2205
|
-
...(input.General
|
|
2171
|
+
...(input.Audit != null && { audit: input.Audit }),
|
|
2172
|
+
...(input.General != null && { general: input.General }),
|
|
2206
2173
|
};
|
|
2207
2174
|
};
|
|
2208
2175
|
const serializeAws_restJson1User = (input, context) => {
|
|
2209
2176
|
return {
|
|
2210
|
-
...(input.ConsoleAccess
|
|
2211
|
-
...(input.Groups
|
|
2212
|
-
|
|
2213
|
-
...(input.
|
|
2214
|
-
...(input.Username !== undefined && input.Username !== null && { username: input.Username }),
|
|
2177
|
+
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
2178
|
+
...(input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) }),
|
|
2179
|
+
...(input.Password != null && { password: input.Password }),
|
|
2180
|
+
...(input.Username != null && { username: input.Username }),
|
|
2215
2181
|
};
|
|
2216
2182
|
};
|
|
2217
2183
|
const serializeAws_restJson1WeeklyStartTime = (input, context) => {
|
|
2218
2184
|
return {
|
|
2219
|
-
...(input.DayOfWeek
|
|
2220
|
-
...(input.TimeOfDay
|
|
2221
|
-
...(input.TimeZone
|
|
2185
|
+
...(input.DayOfWeek != null && { dayOfWeek: input.DayOfWeek }),
|
|
2186
|
+
...(input.TimeOfDay != null && { timeOfDay: input.TimeOfDay }),
|
|
2187
|
+
...(input.TimeZone != null && { timeZone: input.TimeZone }),
|
|
2222
2188
|
};
|
|
2223
2189
|
};
|
|
2224
2190
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -2400,7 +2366,7 @@ const deserializeAws_restJson1AvailabilityZone = (output, context) => {
|
|
|
2400
2366
|
const deserializeAws_restJson1BrokerEngineType = (output, context) => {
|
|
2401
2367
|
return {
|
|
2402
2368
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2403
|
-
EngineVersions: output.engineVersions
|
|
2369
|
+
EngineVersions: output.engineVersions != null
|
|
2404
2370
|
? deserializeAws_restJson1__listOfEngineVersion(output.engineVersions, context)
|
|
2405
2371
|
: undefined,
|
|
2406
2372
|
};
|
|
@@ -2408,24 +2374,22 @@ const deserializeAws_restJson1BrokerEngineType = (output, context) => {
|
|
|
2408
2374
|
const deserializeAws_restJson1BrokerInstance = (output, context) => {
|
|
2409
2375
|
return {
|
|
2410
2376
|
ConsoleURL: (0, smithy_client_1.expectString)(output.consoleURL),
|
|
2411
|
-
Endpoints: output.endpoints
|
|
2412
|
-
? deserializeAws_restJson1__listOf__string(output.endpoints, context)
|
|
2413
|
-
: undefined,
|
|
2377
|
+
Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
|
|
2414
2378
|
IpAddress: (0, smithy_client_1.expectString)(output.ipAddress),
|
|
2415
2379
|
};
|
|
2416
2380
|
};
|
|
2417
2381
|
const deserializeAws_restJson1BrokerInstanceOption = (output, context) => {
|
|
2418
2382
|
return {
|
|
2419
|
-
AvailabilityZones: output.availabilityZones
|
|
2383
|
+
AvailabilityZones: output.availabilityZones != null
|
|
2420
2384
|
? deserializeAws_restJson1__listOfAvailabilityZone(output.availabilityZones, context)
|
|
2421
2385
|
: undefined,
|
|
2422
2386
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2423
2387
|
HostInstanceType: (0, smithy_client_1.expectString)(output.hostInstanceType),
|
|
2424
2388
|
StorageType: (0, smithy_client_1.expectString)(output.storageType),
|
|
2425
|
-
SupportedDeploymentModes: output.supportedDeploymentModes
|
|
2389
|
+
SupportedDeploymentModes: output.supportedDeploymentModes != null
|
|
2426
2390
|
? deserializeAws_restJson1__listOfDeploymentMode(output.supportedDeploymentModes, context)
|
|
2427
2391
|
: undefined,
|
|
2428
|
-
SupportedEngineVersions: output.supportedEngineVersions
|
|
2392
|
+
SupportedEngineVersions: output.supportedEngineVersions != null
|
|
2429
2393
|
? deserializeAws_restJson1__listOf__string(output.supportedEngineVersions, context)
|
|
2430
2394
|
: undefined,
|
|
2431
2395
|
};
|
|
@@ -2436,9 +2400,7 @@ const deserializeAws_restJson1BrokerSummary = (output, context) => {
|
|
|
2436
2400
|
BrokerId: (0, smithy_client_1.expectString)(output.brokerId),
|
|
2437
2401
|
BrokerName: (0, smithy_client_1.expectString)(output.brokerName),
|
|
2438
2402
|
BrokerState: (0, smithy_client_1.expectString)(output.brokerState),
|
|
2439
|
-
Created: output.created
|
|
2440
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created))
|
|
2441
|
-
: undefined,
|
|
2403
|
+
Created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created)) : undefined,
|
|
2442
2404
|
DeploymentMode: (0, smithy_client_1.expectString)(output.deploymentMode),
|
|
2443
2405
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2444
2406
|
HostInstanceType: (0, smithy_client_1.expectString)(output.hostInstanceType),
|
|
@@ -2448,20 +2410,16 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2448
2410
|
return {
|
|
2449
2411
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2450
2412
|
AuthenticationStrategy: (0, smithy_client_1.expectString)(output.authenticationStrategy),
|
|
2451
|
-
Created: output.created
|
|
2452
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created))
|
|
2453
|
-
: undefined,
|
|
2413
|
+
Created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created)) : undefined,
|
|
2454
2414
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
2455
2415
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2456
2416
|
EngineVersion: (0, smithy_client_1.expectString)(output.engineVersion),
|
|
2457
2417
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
2458
|
-
LatestRevision: output.latestRevision
|
|
2418
|
+
LatestRevision: output.latestRevision != null
|
|
2459
2419
|
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
2460
2420
|
: undefined,
|
|
2461
2421
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
2462
|
-
Tags: output.tags
|
|
2463
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
2464
|
-
: undefined,
|
|
2422
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
2465
2423
|
};
|
|
2466
2424
|
};
|
|
2467
2425
|
const deserializeAws_restJson1ConfigurationId = (output, context) => {
|
|
@@ -2472,24 +2430,16 @@ const deserializeAws_restJson1ConfigurationId = (output, context) => {
|
|
|
2472
2430
|
};
|
|
2473
2431
|
const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
|
|
2474
2432
|
return {
|
|
2475
|
-
Created: output.created
|
|
2476
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created))
|
|
2477
|
-
: undefined,
|
|
2433
|
+
Created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.created)) : undefined,
|
|
2478
2434
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
2479
2435
|
Revision: (0, smithy_client_1.expectInt32)(output.revision),
|
|
2480
2436
|
};
|
|
2481
2437
|
};
|
|
2482
2438
|
const deserializeAws_restJson1Configurations = (output, context) => {
|
|
2483
2439
|
return {
|
|
2484
|
-
Current: output.current
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
History: output.history !== undefined && output.history !== null
|
|
2488
|
-
? deserializeAws_restJson1__listOfConfigurationId(output.history, context)
|
|
2489
|
-
: undefined,
|
|
2490
|
-
Pending: output.pending !== undefined && output.pending !== null
|
|
2491
|
-
? deserializeAws_restJson1ConfigurationId(output.pending, context)
|
|
2492
|
-
: undefined,
|
|
2440
|
+
Current: output.current != null ? deserializeAws_restJson1ConfigurationId(output.current, context) : undefined,
|
|
2441
|
+
History: output.history != null ? deserializeAws_restJson1__listOfConfigurationId(output.history, context) : undefined,
|
|
2442
|
+
Pending: output.pending != null ? deserializeAws_restJson1ConfigurationId(output.pending, context) : undefined,
|
|
2493
2443
|
};
|
|
2494
2444
|
};
|
|
2495
2445
|
const deserializeAws_restJson1EncryptionOptions = (output, context) => {
|
|
@@ -2505,9 +2455,7 @@ const deserializeAws_restJson1EngineVersion = (output, context) => {
|
|
|
2505
2455
|
};
|
|
2506
2456
|
const deserializeAws_restJson1LdapServerMetadataOutput = (output, context) => {
|
|
2507
2457
|
return {
|
|
2508
|
-
Hosts: output.hosts
|
|
2509
|
-
? deserializeAws_restJson1__listOf__string(output.hosts, context)
|
|
2510
|
-
: undefined,
|
|
2458
|
+
Hosts: output.hosts != null ? deserializeAws_restJson1__listOf__string(output.hosts, context) : undefined,
|
|
2511
2459
|
RoleBase: (0, smithy_client_1.expectString)(output.roleBase),
|
|
2512
2460
|
RoleName: (0, smithy_client_1.expectString)(output.roleName),
|
|
2513
2461
|
RoleSearchMatching: (0, smithy_client_1.expectString)(output.roleSearchMatching),
|
|
@@ -2531,9 +2479,7 @@ const deserializeAws_restJson1LogsSummary = (output, context) => {
|
|
|
2531
2479
|
AuditLogGroup: (0, smithy_client_1.expectString)(output.auditLogGroup),
|
|
2532
2480
|
General: (0, smithy_client_1.expectBoolean)(output.general),
|
|
2533
2481
|
GeneralLogGroup: (0, smithy_client_1.expectString)(output.generalLogGroup),
|
|
2534
|
-
Pending: output.pending
|
|
2535
|
-
? deserializeAws_restJson1PendingLogs(output.pending, context)
|
|
2536
|
-
: undefined,
|
|
2482
|
+
Pending: output.pending != null ? deserializeAws_restJson1PendingLogs(output.pending, context) : undefined,
|
|
2537
2483
|
};
|
|
2538
2484
|
};
|
|
2539
2485
|
const deserializeAws_restJson1PendingLogs = (output, context) => {
|
|
@@ -2552,9 +2498,7 @@ const deserializeAws_restJson1SanitizationWarning = (output, context) => {
|
|
|
2552
2498
|
const deserializeAws_restJson1UserPendingChanges = (output, context) => {
|
|
2553
2499
|
return {
|
|
2554
2500
|
ConsoleAccess: (0, smithy_client_1.expectBoolean)(output.consoleAccess),
|
|
2555
|
-
Groups: output.groups
|
|
2556
|
-
? deserializeAws_restJson1__listOf__string(output.groups, context)
|
|
2557
|
-
: undefined,
|
|
2501
|
+
Groups: output.groups != null ? deserializeAws_restJson1__listOf__string(output.groups, context) : undefined,
|
|
2558
2502
|
PendingChange: (0, smithy_client_1.expectString)(output.pendingChange),
|
|
2559
2503
|
};
|
|
2560
2504
|
};
|
|
@@ -16,30 +16,17 @@ export var serializeAws_restJson1CreateBrokerCommand = function (input, context)
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers";
|
|
19
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy
|
|
20
|
-
input.AuthenticationStrategy !== null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade !== undefined &&
|
|
21
|
-
input.AutoMinorVersionUpgrade !== null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.BrokerName !== undefined && input.BrokerName !== null && { brokerName: input.BrokerName })), (input.Configuration !== undefined &&
|
|
22
|
-
input.Configuration !== null && {
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.BrokerName != null && { brokerName: input.BrokerName })), (input.Configuration != null && {
|
|
23
20
|
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
24
|
-
})), { creatorRequestId: (_c = input.CreatorRequestId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.DeploymentMode
|
|
25
|
-
input.DeploymentMode !== null && { deploymentMode: input.DeploymentMode })), (input.EncryptionOptions !== undefined &&
|
|
26
|
-
input.EncryptionOptions !== null && {
|
|
21
|
+
})), { creatorRequestId: (_c = input.CreatorRequestId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.DeploymentMode != null && { deploymentMode: input.DeploymentMode })), (input.EncryptionOptions != null && {
|
|
27
22
|
encryptionOptions: serializeAws_restJson1EncryptionOptions(input.EncryptionOptions, context),
|
|
28
|
-
})), (input.EngineType
|
|
29
|
-
input.HostInstanceType !== null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata !== undefined &&
|
|
30
|
-
input.LdapServerMetadata !== null && {
|
|
23
|
+
})), (input.EngineType != null && { engineType: input.EngineType })), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata != null && {
|
|
31
24
|
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
32
|
-
})), (input.Logs
|
|
33
|
-
input.MaintenanceWindowStartTime !== null && {
|
|
25
|
+
})), (input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) })), (input.MaintenanceWindowStartTime != null && {
|
|
34
26
|
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
35
|
-
})), (input.PubliclyAccessible
|
|
36
|
-
input.PubliclyAccessible !== null && { publiclyAccessible: input.PubliclyAccessible })), (input.SecurityGroups !== undefined &&
|
|
37
|
-
input.SecurityGroups !== null && {
|
|
27
|
+
})), (input.PubliclyAccessible != null && { publiclyAccessible: input.PubliclyAccessible })), (input.SecurityGroups != null && {
|
|
38
28
|
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
39
|
-
})), (input.StorageType
|
|
40
|
-
input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) })), (input.Tags !== undefined &&
|
|
41
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Users !== undefined &&
|
|
42
|
-
input.Users !== null && { users: serializeAws_restJson1__listOfUser(input.Users, context) })));
|
|
29
|
+
})), (input.StorageType != null && { storageType: input.StorageType })), (input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Users != null && { users: serializeAws_restJson1__listOfUser(input.Users, context) })));
|
|
43
30
|
return [2, new __HttpRequest({
|
|
44
31
|
protocol: protocol,
|
|
45
32
|
hostname: hostname,
|
|
@@ -63,9 +50,7 @@ export var serializeAws_restJson1CreateConfigurationCommand = function (input, c
|
|
|
63
50
|
"content-type": "application/json",
|
|
64
51
|
};
|
|
65
52
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
|
|
66
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy
|
|
67
|
-
input.AuthenticationStrategy !== null && { authenticationStrategy: input.AuthenticationStrategy })), (input.EngineType !== undefined && input.EngineType !== null && { engineType: input.EngineType })), (input.EngineVersion !== undefined && input.EngineVersion !== null && { engineVersion: input.EngineVersion })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Tags !== undefined &&
|
|
68
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
53
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.EngineType != null && { engineType: input.EngineType })), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.Name != null && { name: input.Name })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
69
54
|
return [2, new __HttpRequest({
|
|
70
55
|
protocol: protocol,
|
|
71
56
|
hostname: hostname,
|
|
@@ -99,8 +84,7 @@ export var serializeAws_restJson1CreateTagsCommand = function (input, context) {
|
|
|
99
84
|
else {
|
|
100
85
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
101
86
|
}
|
|
102
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
103
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
87
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
104
88
|
return [2, new __HttpRequest({
|
|
105
89
|
protocol: protocol,
|
|
106
90
|
hostname: hostname,
|
|
@@ -144,8 +128,7 @@ export var serializeAws_restJson1CreateUserCommand = function (input, context) {
|
|
|
144
128
|
else {
|
|
145
129
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
146
130
|
}
|
|
147
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess
|
|
148
|
-
input.Groups !== null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password !== undefined && input.Password !== null && { password: input.Password })));
|
|
131
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })));
|
|
149
132
|
return [2, new __HttpRequest({
|
|
150
133
|
protocol: protocol,
|
|
151
134
|
hostname: hostname,
|
|
@@ -650,20 +633,13 @@ export var serializeAws_restJson1UpdateBrokerCommand = function (input, context)
|
|
|
650
633
|
else {
|
|
651
634
|
throw new Error("No value provided for input HTTP label: BrokerId.");
|
|
652
635
|
}
|
|
653
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy
|
|
654
|
-
input.AuthenticationStrategy !== null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade !== undefined &&
|
|
655
|
-
input.AutoMinorVersionUpgrade !== null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.Configuration !== undefined &&
|
|
656
|
-
input.Configuration !== null && {
|
|
636
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.Configuration != null && {
|
|
657
637
|
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
658
|
-
})), (input.EngineVersion
|
|
659
|
-
input.HostInstanceType !== null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata !== undefined &&
|
|
660
|
-
input.LdapServerMetadata !== null && {
|
|
638
|
+
})), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata != null && {
|
|
661
639
|
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
662
|
-
})), (input.Logs
|
|
663
|
-
input.MaintenanceWindowStartTime !== null && {
|
|
640
|
+
})), (input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) })), (input.MaintenanceWindowStartTime != null && {
|
|
664
641
|
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
665
|
-
})), (input.SecurityGroups
|
|
666
|
-
input.SecurityGroups !== null && {
|
|
642
|
+
})), (input.SecurityGroups != null && {
|
|
667
643
|
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
668
644
|
})));
|
|
669
645
|
return [2, new __HttpRequest({
|
|
@@ -699,7 +675,7 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
|
|
|
699
675
|
else {
|
|
700
676
|
throw new Error("No value provided for input HTTP label: ConfigurationId.");
|
|
701
677
|
}
|
|
702
|
-
body = JSON.stringify(__assign(__assign({}, (input.Data
|
|
678
|
+
body = JSON.stringify(__assign(__assign({}, (input.Data != null && { data: input.Data })), (input.Description != null && { description: input.Description })));
|
|
703
679
|
return [2, new __HttpRequest({
|
|
704
680
|
protocol: protocol,
|
|
705
681
|
hostname: hostname,
|
|
@@ -743,8 +719,7 @@ export var serializeAws_restJson1UpdateUserCommand = function (input, context) {
|
|
|
743
719
|
else {
|
|
744
720
|
throw new Error("No value provided for input HTTP label: Username.");
|
|
745
721
|
}
|
|
746
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess
|
|
747
|
-
input.Groups !== null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password !== undefined && input.Password !== null && { password: input.Password })));
|
|
722
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })));
|
|
748
723
|
return [2, new __HttpRequest({
|
|
749
724
|
protocol: protocol,
|
|
750
725
|
hostname: hostname,
|
|
@@ -2672,31 +2647,22 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
|
2672
2647
|
}, {});
|
|
2673
2648
|
};
|
|
2674
2649
|
var serializeAws_restJson1ConfigurationId = function (input, context) {
|
|
2675
|
-
return __assign(__assign({}, (input.Id
|
|
2650
|
+
return __assign(__assign({}, (input.Id != null && { id: input.Id })), (input.Revision != null && { revision: input.Revision }));
|
|
2676
2651
|
};
|
|
2677
2652
|
var serializeAws_restJson1EncryptionOptions = function (input, context) {
|
|
2678
|
-
return __assign(__assign({}, (input.KmsKeyId
|
|
2679
|
-
input.UseAwsOwnedKey !== null && { useAwsOwnedKey: input.UseAwsOwnedKey }));
|
|
2653
|
+
return __assign(__assign({}, (input.KmsKeyId != null && { kmsKeyId: input.KmsKeyId })), (input.UseAwsOwnedKey != null && { useAwsOwnedKey: input.UseAwsOwnedKey }));
|
|
2680
2654
|
};
|
|
2681
2655
|
var serializeAws_restJson1LdapServerMetadataInput = function (input, context) {
|
|
2682
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Hosts
|
|
2683
|
-
input.Hosts !== null && { hosts: serializeAws_restJson1__listOf__string(input.Hosts, context) })), (input.RoleBase !== undefined && input.RoleBase !== null && { roleBase: input.RoleBase })), (input.RoleName !== undefined && input.RoleName !== null && { roleName: input.RoleName })), (input.RoleSearchMatching !== undefined &&
|
|
2684
|
-
input.RoleSearchMatching !== null && { roleSearchMatching: input.RoleSearchMatching })), (input.RoleSearchSubtree !== undefined &&
|
|
2685
|
-
input.RoleSearchSubtree !== null && { roleSearchSubtree: input.RoleSearchSubtree })), (input.ServiceAccountPassword !== undefined &&
|
|
2686
|
-
input.ServiceAccountPassword !== null && { serviceAccountPassword: input.ServiceAccountPassword })), (input.ServiceAccountUsername !== undefined &&
|
|
2687
|
-
input.ServiceAccountUsername !== null && { serviceAccountUsername: input.ServiceAccountUsername })), (input.UserBase !== undefined && input.UserBase !== null && { userBase: input.UserBase })), (input.UserRoleName !== undefined && input.UserRoleName !== null && { userRoleName: input.UserRoleName })), (input.UserSearchMatching !== undefined &&
|
|
2688
|
-
input.UserSearchMatching !== null && { userSearchMatching: input.UserSearchMatching })), (input.UserSearchSubtree !== undefined &&
|
|
2689
|
-
input.UserSearchSubtree !== null && { userSearchSubtree: input.UserSearchSubtree }));
|
|
2656
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Hosts != null && { hosts: serializeAws_restJson1__listOf__string(input.Hosts, context) })), (input.RoleBase != null && { roleBase: input.RoleBase })), (input.RoleName != null && { roleName: input.RoleName })), (input.RoleSearchMatching != null && { roleSearchMatching: input.RoleSearchMatching })), (input.RoleSearchSubtree != null && { roleSearchSubtree: input.RoleSearchSubtree })), (input.ServiceAccountPassword != null && { serviceAccountPassword: input.ServiceAccountPassword })), (input.ServiceAccountUsername != null && { serviceAccountUsername: input.ServiceAccountUsername })), (input.UserBase != null && { userBase: input.UserBase })), (input.UserRoleName != null && { userRoleName: input.UserRoleName })), (input.UserSearchMatching != null && { userSearchMatching: input.UserSearchMatching })), (input.UserSearchSubtree != null && { userSearchSubtree: input.UserSearchSubtree }));
|
|
2690
2657
|
};
|
|
2691
2658
|
var serializeAws_restJson1Logs = function (input, context) {
|
|
2692
|
-
return __assign(__assign({}, (input.Audit
|
|
2659
|
+
return __assign(__assign({}, (input.Audit != null && { audit: input.Audit })), (input.General != null && { general: input.General }));
|
|
2693
2660
|
};
|
|
2694
2661
|
var serializeAws_restJson1User = function (input, context) {
|
|
2695
|
-
return __assign(__assign(__assign(__assign({}, (input.ConsoleAccess
|
|
2696
|
-
input.Groups !== null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password !== undefined && input.Password !== null && { password: input.Password })), (input.Username !== undefined && input.Username !== null && { username: input.Username }));
|
|
2662
|
+
return __assign(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })), (input.Username != null && { username: input.Username }));
|
|
2697
2663
|
};
|
|
2698
2664
|
var serializeAws_restJson1WeeklyStartTime = function (input, context) {
|
|
2699
|
-
return __assign(__assign(__assign({}, (input.DayOfWeek
|
|
2665
|
+
return __assign(__assign(__assign({}, (input.DayOfWeek != null && { dayOfWeek: input.DayOfWeek })), (input.TimeOfDay != null && { timeOfDay: input.TimeOfDay })), (input.TimeZone != null && { timeZone: input.TimeZone }));
|
|
2700
2666
|
};
|
|
2701
2667
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
2702
2668
|
var retVal = (output || [])
|
|
@@ -2876,7 +2842,7 @@ var deserializeAws_restJson1AvailabilityZone = function (output, context) {
|
|
|
2876
2842
|
var deserializeAws_restJson1BrokerEngineType = function (output, context) {
|
|
2877
2843
|
return {
|
|
2878
2844
|
EngineType: __expectString(output.engineType),
|
|
2879
|
-
EngineVersions: output.engineVersions
|
|
2845
|
+
EngineVersions: output.engineVersions != null
|
|
2880
2846
|
? deserializeAws_restJson1__listOfEngineVersion(output.engineVersions, context)
|
|
2881
2847
|
: undefined,
|
|
2882
2848
|
};
|
|
@@ -2884,24 +2850,22 @@ var deserializeAws_restJson1BrokerEngineType = function (output, context) {
|
|
|
2884
2850
|
var deserializeAws_restJson1BrokerInstance = function (output, context) {
|
|
2885
2851
|
return {
|
|
2886
2852
|
ConsoleURL: __expectString(output.consoleURL),
|
|
2887
|
-
Endpoints: output.endpoints
|
|
2888
|
-
? deserializeAws_restJson1__listOf__string(output.endpoints, context)
|
|
2889
|
-
: undefined,
|
|
2853
|
+
Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
|
|
2890
2854
|
IpAddress: __expectString(output.ipAddress),
|
|
2891
2855
|
};
|
|
2892
2856
|
};
|
|
2893
2857
|
var deserializeAws_restJson1BrokerInstanceOption = function (output, context) {
|
|
2894
2858
|
return {
|
|
2895
|
-
AvailabilityZones: output.availabilityZones
|
|
2859
|
+
AvailabilityZones: output.availabilityZones != null
|
|
2896
2860
|
? deserializeAws_restJson1__listOfAvailabilityZone(output.availabilityZones, context)
|
|
2897
2861
|
: undefined,
|
|
2898
2862
|
EngineType: __expectString(output.engineType),
|
|
2899
2863
|
HostInstanceType: __expectString(output.hostInstanceType),
|
|
2900
2864
|
StorageType: __expectString(output.storageType),
|
|
2901
|
-
SupportedDeploymentModes: output.supportedDeploymentModes
|
|
2865
|
+
SupportedDeploymentModes: output.supportedDeploymentModes != null
|
|
2902
2866
|
? deserializeAws_restJson1__listOfDeploymentMode(output.supportedDeploymentModes, context)
|
|
2903
2867
|
: undefined,
|
|
2904
|
-
SupportedEngineVersions: output.supportedEngineVersions
|
|
2868
|
+
SupportedEngineVersions: output.supportedEngineVersions != null
|
|
2905
2869
|
? deserializeAws_restJson1__listOf__string(output.supportedEngineVersions, context)
|
|
2906
2870
|
: undefined,
|
|
2907
2871
|
};
|
|
@@ -2912,9 +2876,7 @@ var deserializeAws_restJson1BrokerSummary = function (output, context) {
|
|
|
2912
2876
|
BrokerId: __expectString(output.brokerId),
|
|
2913
2877
|
BrokerName: __expectString(output.brokerName),
|
|
2914
2878
|
BrokerState: __expectString(output.brokerState),
|
|
2915
|
-
Created: output.created
|
|
2916
|
-
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
2917
|
-
: undefined,
|
|
2879
|
+
Created: output.created != null ? __expectNonNull(__parseRfc3339DateTime(output.created)) : undefined,
|
|
2918
2880
|
DeploymentMode: __expectString(output.deploymentMode),
|
|
2919
2881
|
EngineType: __expectString(output.engineType),
|
|
2920
2882
|
HostInstanceType: __expectString(output.hostInstanceType),
|
|
@@ -2924,20 +2886,16 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
2924
2886
|
return {
|
|
2925
2887
|
Arn: __expectString(output.arn),
|
|
2926
2888
|
AuthenticationStrategy: __expectString(output.authenticationStrategy),
|
|
2927
|
-
Created: output.created
|
|
2928
|
-
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
2929
|
-
: undefined,
|
|
2889
|
+
Created: output.created != null ? __expectNonNull(__parseRfc3339DateTime(output.created)) : undefined,
|
|
2930
2890
|
Description: __expectString(output.description),
|
|
2931
2891
|
EngineType: __expectString(output.engineType),
|
|
2932
2892
|
EngineVersion: __expectString(output.engineVersion),
|
|
2933
2893
|
Id: __expectString(output.id),
|
|
2934
|
-
LatestRevision: output.latestRevision
|
|
2894
|
+
LatestRevision: output.latestRevision != null
|
|
2935
2895
|
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
2936
2896
|
: undefined,
|
|
2937
2897
|
Name: __expectString(output.name),
|
|
2938
|
-
Tags: output.tags
|
|
2939
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
2940
|
-
: undefined,
|
|
2898
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
2941
2899
|
};
|
|
2942
2900
|
};
|
|
2943
2901
|
var deserializeAws_restJson1ConfigurationId = function (output, context) {
|
|
@@ -2948,24 +2906,16 @@ var deserializeAws_restJson1ConfigurationId = function (output, context) {
|
|
|
2948
2906
|
};
|
|
2949
2907
|
var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
|
|
2950
2908
|
return {
|
|
2951
|
-
Created: output.created
|
|
2952
|
-
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
2953
|
-
: undefined,
|
|
2909
|
+
Created: output.created != null ? __expectNonNull(__parseRfc3339DateTime(output.created)) : undefined,
|
|
2954
2910
|
Description: __expectString(output.description),
|
|
2955
2911
|
Revision: __expectInt32(output.revision),
|
|
2956
2912
|
};
|
|
2957
2913
|
};
|
|
2958
2914
|
var deserializeAws_restJson1Configurations = function (output, context) {
|
|
2959
2915
|
return {
|
|
2960
|
-
Current: output.current
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
History: output.history !== undefined && output.history !== null
|
|
2964
|
-
? deserializeAws_restJson1__listOfConfigurationId(output.history, context)
|
|
2965
|
-
: undefined,
|
|
2966
|
-
Pending: output.pending !== undefined && output.pending !== null
|
|
2967
|
-
? deserializeAws_restJson1ConfigurationId(output.pending, context)
|
|
2968
|
-
: undefined,
|
|
2916
|
+
Current: output.current != null ? deserializeAws_restJson1ConfigurationId(output.current, context) : undefined,
|
|
2917
|
+
History: output.history != null ? deserializeAws_restJson1__listOfConfigurationId(output.history, context) : undefined,
|
|
2918
|
+
Pending: output.pending != null ? deserializeAws_restJson1ConfigurationId(output.pending, context) : undefined,
|
|
2969
2919
|
};
|
|
2970
2920
|
};
|
|
2971
2921
|
var deserializeAws_restJson1EncryptionOptions = function (output, context) {
|
|
@@ -2981,9 +2931,7 @@ var deserializeAws_restJson1EngineVersion = function (output, context) {
|
|
|
2981
2931
|
};
|
|
2982
2932
|
var deserializeAws_restJson1LdapServerMetadataOutput = function (output, context) {
|
|
2983
2933
|
return {
|
|
2984
|
-
Hosts: output.hosts
|
|
2985
|
-
? deserializeAws_restJson1__listOf__string(output.hosts, context)
|
|
2986
|
-
: undefined,
|
|
2934
|
+
Hosts: output.hosts != null ? deserializeAws_restJson1__listOf__string(output.hosts, context) : undefined,
|
|
2987
2935
|
RoleBase: __expectString(output.roleBase),
|
|
2988
2936
|
RoleName: __expectString(output.roleName),
|
|
2989
2937
|
RoleSearchMatching: __expectString(output.roleSearchMatching),
|
|
@@ -3007,9 +2955,7 @@ var deserializeAws_restJson1LogsSummary = function (output, context) {
|
|
|
3007
2955
|
AuditLogGroup: __expectString(output.auditLogGroup),
|
|
3008
2956
|
General: __expectBoolean(output.general),
|
|
3009
2957
|
GeneralLogGroup: __expectString(output.generalLogGroup),
|
|
3010
|
-
Pending: output.pending
|
|
3011
|
-
? deserializeAws_restJson1PendingLogs(output.pending, context)
|
|
3012
|
-
: undefined,
|
|
2958
|
+
Pending: output.pending != null ? deserializeAws_restJson1PendingLogs(output.pending, context) : undefined,
|
|
3013
2959
|
};
|
|
3014
2960
|
};
|
|
3015
2961
|
var deserializeAws_restJson1PendingLogs = function (output, context) {
|
|
@@ -3028,9 +2974,7 @@ var deserializeAws_restJson1SanitizationWarning = function (output, context) {
|
|
|
3028
2974
|
var deserializeAws_restJson1UserPendingChanges = function (output, context) {
|
|
3029
2975
|
return {
|
|
3030
2976
|
ConsoleAccess: __expectBoolean(output.consoleAccess),
|
|
3031
|
-
Groups: output.groups
|
|
3032
|
-
? deserializeAws_restJson1__listOf__string(output.groups, context)
|
|
3033
|
-
: undefined,
|
|
2977
|
+
Groups: output.groups != null ? deserializeAws_restJson1__listOf__string(output.groups, context) : undefined,
|
|
3034
2978
|
PendingChange: __expectString(output.pendingChange),
|
|
3035
2979
|
};
|
|
3036
2980
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mq",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mq Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|