@aws-sdk/client-secrets-manager 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 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-secrets-manager
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
 
@@ -1406,53 +1406,48 @@ const serializeAws_json1_1AddReplicaRegionListType = (input, context) => {
1406
1406
  };
1407
1407
  const serializeAws_json1_1CancelRotateSecretRequest = (input, context) => {
1408
1408
  return {
1409
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1409
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1410
1410
  };
1411
1411
  };
1412
1412
  const serializeAws_json1_1CreateSecretRequest = (input, context) => {
1413
1413
  var _a;
1414
1414
  return {
1415
- ...(input.AddReplicaRegions !== undefined &&
1416
- input.AddReplicaRegions !== null && {
1415
+ ...(input.AddReplicaRegions != null && {
1417
1416
  AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
1418
1417
  }),
1419
1418
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1420
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1421
- ...(input.ForceOverwriteReplicaSecret !== undefined &&
1422
- input.ForceOverwriteReplicaSecret !== null && { ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret }),
1423
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1424
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1425
- ...(input.SecretBinary !== undefined &&
1426
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1427
- ...(input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString }),
1428
- ...(input.Tags !== undefined &&
1429
- input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
1419
+ ...(input.Description != null && { Description: input.Description }),
1420
+ ...(input.ForceOverwriteReplicaSecret != null && {
1421
+ ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
1422
+ }),
1423
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1424
+ ...(input.Name != null && { Name: input.Name }),
1425
+ ...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1426
+ ...(input.SecretString != null && { SecretString: input.SecretString }),
1427
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
1430
1428
  };
1431
1429
  };
1432
1430
  const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
1433
1431
  return {
1434
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1432
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1435
1433
  };
1436
1434
  };
1437
1435
  const serializeAws_json1_1DeleteSecretRequest = (input, context) => {
1438
1436
  return {
1439
- ...(input.ForceDeleteWithoutRecovery !== undefined &&
1440
- input.ForceDeleteWithoutRecovery !== null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
1441
- ...(input.RecoveryWindowInDays !== undefined &&
1442
- input.RecoveryWindowInDays !== null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
1443
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1437
+ ...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
1438
+ ...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
1439
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1444
1440
  };
1445
1441
  };
1446
1442
  const serializeAws_json1_1DescribeSecretRequest = (input, context) => {
1447
1443
  return {
1448
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1444
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1449
1445
  };
1450
1446
  };
1451
1447
  const serializeAws_json1_1Filter = (input, context) => {
1452
1448
  return {
1453
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1454
- ...(input.Values !== undefined &&
1455
- input.Values !== null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }),
1449
+ ...(input.Key != null && { Key: input.Key }),
1450
+ ...(input.Values != null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }),
1456
1451
  };
1457
1452
  };
1458
1453
  const serializeAws_json1_1FiltersListType = (input, context) => {
@@ -1477,83 +1472,69 @@ const serializeAws_json1_1FilterValuesStringList = (input, context) => {
1477
1472
  };
1478
1473
  const serializeAws_json1_1GetRandomPasswordRequest = (input, context) => {
1479
1474
  return {
1480
- ...(input.ExcludeCharacters !== undefined &&
1481
- input.ExcludeCharacters !== null && { ExcludeCharacters: input.ExcludeCharacters }),
1482
- ...(input.ExcludeLowercase !== undefined &&
1483
- input.ExcludeLowercase !== null && { ExcludeLowercase: input.ExcludeLowercase }),
1484
- ...(input.ExcludeNumbers !== undefined &&
1485
- input.ExcludeNumbers !== null && { ExcludeNumbers: input.ExcludeNumbers }),
1486
- ...(input.ExcludePunctuation !== undefined &&
1487
- input.ExcludePunctuation !== null && { ExcludePunctuation: input.ExcludePunctuation }),
1488
- ...(input.ExcludeUppercase !== undefined &&
1489
- input.ExcludeUppercase !== null && { ExcludeUppercase: input.ExcludeUppercase }),
1490
- ...(input.IncludeSpace !== undefined && input.IncludeSpace !== null && { IncludeSpace: input.IncludeSpace }),
1491
- ...(input.PasswordLength !== undefined &&
1492
- input.PasswordLength !== null && { PasswordLength: input.PasswordLength }),
1493
- ...(input.RequireEachIncludedType !== undefined &&
1494
- input.RequireEachIncludedType !== null && { RequireEachIncludedType: input.RequireEachIncludedType }),
1475
+ ...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
1476
+ ...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
1477
+ ...(input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers }),
1478
+ ...(input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation }),
1479
+ ...(input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase }),
1480
+ ...(input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace }),
1481
+ ...(input.PasswordLength != null && { PasswordLength: input.PasswordLength }),
1482
+ ...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
1495
1483
  };
1496
1484
  };
1497
1485
  const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
1498
1486
  return {
1499
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1487
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1500
1488
  };
1501
1489
  };
1502
1490
  const serializeAws_json1_1GetSecretValueRequest = (input, context) => {
1503
1491
  return {
1504
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1505
- ...(input.VersionId !== undefined && input.VersionId !== null && { VersionId: input.VersionId }),
1506
- ...(input.VersionStage !== undefined && input.VersionStage !== null && { VersionStage: input.VersionStage }),
1492
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1493
+ ...(input.VersionId != null && { VersionId: input.VersionId }),
1494
+ ...(input.VersionStage != null && { VersionStage: input.VersionStage }),
1507
1495
  };
1508
1496
  };
1509
1497
  const serializeAws_json1_1ListSecretsRequest = (input, context) => {
1510
1498
  return {
1511
- ...(input.Filters !== undefined &&
1512
- input.Filters !== null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
1513
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1514
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1515
- ...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
1499
+ ...(input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
1500
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1501
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1502
+ ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
1516
1503
  };
1517
1504
  };
1518
1505
  const serializeAws_json1_1ListSecretVersionIdsRequest = (input, context) => {
1519
1506
  return {
1520
- ...(input.IncludeDeprecated !== undefined &&
1521
- input.IncludeDeprecated !== null && { IncludeDeprecated: input.IncludeDeprecated }),
1522
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1523
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1524
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1507
+ ...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
1508
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1509
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1510
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1525
1511
  };
1526
1512
  };
1527
1513
  const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
1528
1514
  return {
1529
- ...(input.BlockPublicPolicy !== undefined &&
1530
- input.BlockPublicPolicy !== null && { BlockPublicPolicy: input.BlockPublicPolicy }),
1531
- ...(input.ResourcePolicy !== undefined &&
1532
- input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }),
1533
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1515
+ ...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
1516
+ ...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
1517
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1534
1518
  };
1535
1519
  };
1536
1520
  const serializeAws_json1_1PutSecretValueRequest = (input, context) => {
1537
1521
  var _a;
1538
1522
  return {
1539
1523
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1540
- ...(input.SecretBinary !== undefined &&
1541
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1542
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1543
- ...(input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString }),
1544
- ...(input.VersionStages !== undefined &&
1545
- input.VersionStages !== null && {
1524
+ ...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1525
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1526
+ ...(input.SecretString != null && { SecretString: input.SecretString }),
1527
+ ...(input.VersionStages != null && {
1546
1528
  VersionStages: serializeAws_json1_1SecretVersionStagesType(input.VersionStages, context),
1547
1529
  }),
1548
1530
  };
1549
1531
  };
1550
1532
  const serializeAws_json1_1RemoveRegionsFromReplicationRequest = (input, context) => {
1551
1533
  return {
1552
- ...(input.RemoveReplicaRegions !== undefined &&
1553
- input.RemoveReplicaRegions !== null && {
1534
+ ...(input.RemoveReplicaRegions != null && {
1554
1535
  RemoveReplicaRegions: serializeAws_json1_1RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
1555
1536
  }),
1556
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1537
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1557
1538
  };
1558
1539
  };
1559
1540
  const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
@@ -1568,48 +1549,43 @@ const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
1568
1549
  };
1569
1550
  const serializeAws_json1_1ReplicaRegionType = (input, context) => {
1570
1551
  return {
1571
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1572
- ...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
1552
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1553
+ ...(input.Region != null && { Region: input.Region }),
1573
1554
  };
1574
1555
  };
1575
1556
  const serializeAws_json1_1ReplicateSecretToRegionsRequest = (input, context) => {
1576
1557
  return {
1577
- ...(input.AddReplicaRegions !== undefined &&
1578
- input.AddReplicaRegions !== null && {
1558
+ ...(input.AddReplicaRegions != null && {
1579
1559
  AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
1580
1560
  }),
1581
- ...(input.ForceOverwriteReplicaSecret !== undefined &&
1582
- input.ForceOverwriteReplicaSecret !== null && { ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret }),
1583
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1561
+ ...(input.ForceOverwriteReplicaSecret != null && {
1562
+ ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
1563
+ }),
1564
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1584
1565
  };
1585
1566
  };
1586
1567
  const serializeAws_json1_1RestoreSecretRequest = (input, context) => {
1587
1568
  return {
1588
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1569
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1589
1570
  };
1590
1571
  };
1591
1572
  const serializeAws_json1_1RotateSecretRequest = (input, context) => {
1592
1573
  var _a;
1593
1574
  return {
1594
1575
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1595
- ...(input.RotateImmediately !== undefined &&
1596
- input.RotateImmediately !== null && { RotateImmediately: input.RotateImmediately }),
1597
- ...(input.RotationLambdaARN !== undefined &&
1598
- input.RotationLambdaARN !== null && { RotationLambdaARN: input.RotationLambdaARN }),
1599
- ...(input.RotationRules !== undefined &&
1600
- input.RotationRules !== null && {
1576
+ ...(input.RotateImmediately != null && { RotateImmediately: input.RotateImmediately }),
1577
+ ...(input.RotationLambdaARN != null && { RotationLambdaARN: input.RotationLambdaARN }),
1578
+ ...(input.RotationRules != null && {
1601
1579
  RotationRules: serializeAws_json1_1RotationRulesType(input.RotationRules, context),
1602
1580
  }),
1603
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1581
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1604
1582
  };
1605
1583
  };
1606
1584
  const serializeAws_json1_1RotationRulesType = (input, context) => {
1607
1585
  return {
1608
- ...(input.AutomaticallyAfterDays !== undefined &&
1609
- input.AutomaticallyAfterDays !== null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
1610
- ...(input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration }),
1611
- ...(input.ScheduleExpression !== undefined &&
1612
- input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
1586
+ ...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
1587
+ ...(input.Duration != null && { Duration: input.Duration }),
1588
+ ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
1613
1589
  };
1614
1590
  };
1615
1591
  const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
@@ -1624,13 +1600,13 @@ const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
1624
1600
  };
1625
1601
  const serializeAws_json1_1StopReplicationToReplicaRequest = (input, context) => {
1626
1602
  return {
1627
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1603
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1628
1604
  };
1629
1605
  };
1630
1606
  const serializeAws_json1_1Tag = (input, context) => {
1631
1607
  return {
1632
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1633
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1608
+ ...(input.Key != null && { Key: input.Key }),
1609
+ ...(input.Value != null && { Value: input.Value }),
1634
1610
  };
1635
1611
  };
1636
1612
  const serializeAws_json1_1TagKeyListType = (input, context) => {
@@ -1655,45 +1631,39 @@ const serializeAws_json1_1TagListType = (input, context) => {
1655
1631
  };
1656
1632
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
1657
1633
  return {
1658
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1659
- ...(input.Tags !== undefined &&
1660
- input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
1634
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1635
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
1661
1636
  };
1662
1637
  };
1663
1638
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1664
1639
  return {
1665
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1666
- ...(input.TagKeys !== undefined &&
1667
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }),
1640
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1641
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }),
1668
1642
  };
1669
1643
  };
1670
1644
  const serializeAws_json1_1UpdateSecretRequest = (input, context) => {
1671
1645
  var _a;
1672
1646
  return {
1673
1647
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1674
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1675
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1676
- ...(input.SecretBinary !== undefined &&
1677
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1678
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1679
- ...(input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString }),
1648
+ ...(input.Description != null && { Description: input.Description }),
1649
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
1650
+ ...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
1651
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1652
+ ...(input.SecretString != null && { SecretString: input.SecretString }),
1680
1653
  };
1681
1654
  };
1682
1655
  const serializeAws_json1_1UpdateSecretVersionStageRequest = (input, context) => {
1683
1656
  return {
1684
- ...(input.MoveToVersionId !== undefined &&
1685
- input.MoveToVersionId !== null && { MoveToVersionId: input.MoveToVersionId }),
1686
- ...(input.RemoveFromVersionId !== undefined &&
1687
- input.RemoveFromVersionId !== null && { RemoveFromVersionId: input.RemoveFromVersionId }),
1688
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1689
- ...(input.VersionStage !== undefined && input.VersionStage !== null && { VersionStage: input.VersionStage }),
1657
+ ...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
1658
+ ...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
1659
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1660
+ ...(input.VersionStage != null && { VersionStage: input.VersionStage }),
1690
1661
  };
1691
1662
  };
1692
1663
  const serializeAws_json1_1ValidateResourcePolicyRequest = (input, context) => {
1693
1664
  return {
1694
- ...(input.ResourcePolicy !== undefined &&
1695
- input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }),
1696
- ...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
1665
+ ...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
1666
+ ...(input.SecretId != null && { SecretId: input.SecretId }),
1697
1667
  };
1698
1668
  };
1699
1669
  const deserializeAws_json1_1CancelRotateSecretResponse = (output, context) => {
@@ -1707,7 +1677,7 @@ const deserializeAws_json1_1CreateSecretResponse = (output, context) => {
1707
1677
  return {
1708
1678
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1709
1679
  Name: (0, smithy_client_1.expectString)(output.Name),
1710
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
1680
+ ReplicationStatus: output.ReplicationStatus != null
1711
1681
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
1712
1682
  : undefined,
1713
1683
  VersionId: (0, smithy_client_1.expectString)(output.VersionId),
@@ -1727,7 +1697,7 @@ const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) =>
1727
1697
  const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
1728
1698
  return {
1729
1699
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1730
- DeletionDate: output.DeletionDate !== undefined && output.DeletionDate !== null
1700
+ DeletionDate: output.DeletionDate != null
1731
1701
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
1732
1702
  : undefined,
1733
1703
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -1736,38 +1706,34 @@ const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
1736
1706
  const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
1737
1707
  return {
1738
1708
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1739
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
1709
+ CreatedDate: output.CreatedDate != null
1740
1710
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
1741
1711
  : undefined,
1742
- DeletedDate: output.DeletedDate !== undefined && output.DeletedDate !== null
1712
+ DeletedDate: output.DeletedDate != null
1743
1713
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletedDate)))
1744
1714
  : undefined,
1745
1715
  Description: (0, smithy_client_1.expectString)(output.Description),
1746
1716
  KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1747
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
1717
+ LastAccessedDate: output.LastAccessedDate != null
1748
1718
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
1749
1719
  : undefined,
1750
- LastChangedDate: output.LastChangedDate !== undefined && output.LastChangedDate !== null
1720
+ LastChangedDate: output.LastChangedDate != null
1751
1721
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastChangedDate)))
1752
1722
  : undefined,
1753
- LastRotatedDate: output.LastRotatedDate !== undefined && output.LastRotatedDate !== null
1723
+ LastRotatedDate: output.LastRotatedDate != null
1754
1724
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
1755
1725
  : undefined,
1756
1726
  Name: (0, smithy_client_1.expectString)(output.Name),
1757
1727
  OwningService: (0, smithy_client_1.expectString)(output.OwningService),
1758
1728
  PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
1759
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
1729
+ ReplicationStatus: output.ReplicationStatus != null
1760
1730
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
1761
1731
  : undefined,
1762
1732
  RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
1763
1733
  RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
1764
- RotationRules: output.RotationRules !== undefined && output.RotationRules !== null
1765
- ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context)
1766
- : undefined,
1767
- Tags: output.Tags !== undefined && output.Tags !== null
1768
- ? deserializeAws_json1_1TagListType(output.Tags, context)
1769
- : undefined,
1770
- VersionIdsToStages: output.VersionIdsToStages !== undefined && output.VersionIdsToStages !== null
1734
+ RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
1735
+ Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
1736
+ VersionIdsToStages: output.VersionIdsToStages != null
1771
1737
  ? deserializeAws_json1_1SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
1772
1738
  : undefined,
1773
1739
  };
@@ -1792,16 +1758,14 @@ const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
1792
1758
  const deserializeAws_json1_1GetSecretValueResponse = (output, context) => {
1793
1759
  return {
1794
1760
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1795
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
1761
+ CreatedDate: output.CreatedDate != null
1796
1762
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
1797
1763
  : undefined,
1798
1764
  Name: (0, smithy_client_1.expectString)(output.Name),
1799
- SecretBinary: output.SecretBinary !== undefined && output.SecretBinary !== null
1800
- ? context.base64Decoder(output.SecretBinary)
1801
- : undefined,
1765
+ SecretBinary: output.SecretBinary != null ? context.base64Decoder(output.SecretBinary) : undefined,
1802
1766
  SecretString: (0, smithy_client_1.expectString)(output.SecretString),
1803
1767
  VersionId: (0, smithy_client_1.expectString)(output.VersionId),
1804
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
1768
+ VersionStages: output.VersionStages != null
1805
1769
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
1806
1770
  : undefined,
1807
1771
  };
@@ -1845,9 +1809,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
1845
1809
  const deserializeAws_json1_1ListSecretsResponse = (output, context) => {
1846
1810
  return {
1847
1811
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1848
- SecretList: output.SecretList !== undefined && output.SecretList !== null
1849
- ? deserializeAws_json1_1SecretListType(output.SecretList, context)
1850
- : undefined,
1812
+ SecretList: output.SecretList != null ? deserializeAws_json1_1SecretListType(output.SecretList, context) : undefined,
1851
1813
  };
1852
1814
  };
1853
1815
  const deserializeAws_json1_1ListSecretVersionIdsResponse = (output, context) => {
@@ -1855,9 +1817,7 @@ const deserializeAws_json1_1ListSecretVersionIdsResponse = (output, context) =>
1855
1817
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1856
1818
  Name: (0, smithy_client_1.expectString)(output.Name),
1857
1819
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1858
- Versions: output.Versions !== undefined && output.Versions !== null
1859
- ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context)
1860
- : undefined,
1820
+ Versions: output.Versions != null ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context) : undefined,
1861
1821
  };
1862
1822
  };
1863
1823
  const deserializeAws_json1_1MalformedPolicyDocumentException = (output, context) => {
@@ -1886,7 +1846,7 @@ const deserializeAws_json1_1PutSecretValueResponse = (output, context) => {
1886
1846
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1887
1847
  Name: (0, smithy_client_1.expectString)(output.Name),
1888
1848
  VersionId: (0, smithy_client_1.expectString)(output.VersionId),
1889
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
1849
+ VersionStages: output.VersionStages != null
1890
1850
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
1891
1851
  : undefined,
1892
1852
  };
@@ -1894,7 +1854,7 @@ const deserializeAws_json1_1PutSecretValueResponse = (output, context) => {
1894
1854
  const deserializeAws_json1_1RemoveRegionsFromReplicationResponse = (output, context) => {
1895
1855
  return {
1896
1856
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1897
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
1857
+ ReplicationStatus: output.ReplicationStatus != null
1898
1858
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
1899
1859
  : undefined,
1900
1860
  };
@@ -1902,7 +1862,7 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationResponse = (output, cont
1902
1862
  const deserializeAws_json1_1ReplicateSecretToRegionsResponse = (output, context) => {
1903
1863
  return {
1904
1864
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1905
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
1865
+ ReplicationStatus: output.ReplicationStatus != null
1906
1866
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
1907
1867
  : undefined,
1908
1868
  };
@@ -1921,7 +1881,7 @@ const deserializeAws_json1_1ReplicationStatusListType = (output, context) => {
1921
1881
  const deserializeAws_json1_1ReplicationStatusType = (output, context) => {
1922
1882
  return {
1923
1883
  KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1924
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
1884
+ LastAccessedDate: output.LastAccessedDate != null
1925
1885
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
1926
1886
  : undefined,
1927
1887
  Region: (0, smithy_client_1.expectString)(output.Region),
@@ -1962,21 +1922,21 @@ const deserializeAws_json1_1RotationRulesType = (output, context) => {
1962
1922
  const deserializeAws_json1_1SecretListEntry = (output, context) => {
1963
1923
  return {
1964
1924
  ARN: (0, smithy_client_1.expectString)(output.ARN),
1965
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
1925
+ CreatedDate: output.CreatedDate != null
1966
1926
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
1967
1927
  : undefined,
1968
- DeletedDate: output.DeletedDate !== undefined && output.DeletedDate !== null
1928
+ DeletedDate: output.DeletedDate != null
1969
1929
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletedDate)))
1970
1930
  : undefined,
1971
1931
  Description: (0, smithy_client_1.expectString)(output.Description),
1972
1932
  KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
1973
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
1933
+ LastAccessedDate: output.LastAccessedDate != null
1974
1934
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
1975
1935
  : undefined,
1976
- LastChangedDate: output.LastChangedDate !== undefined && output.LastChangedDate !== null
1936
+ LastChangedDate: output.LastChangedDate != null
1977
1937
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastChangedDate)))
1978
1938
  : undefined,
1979
- LastRotatedDate: output.LastRotatedDate !== undefined && output.LastRotatedDate !== null
1939
+ LastRotatedDate: output.LastRotatedDate != null
1980
1940
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
1981
1941
  : undefined,
1982
1942
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -1984,15 +1944,11 @@ const deserializeAws_json1_1SecretListEntry = (output, context) => {
1984
1944
  PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
1985
1945
  RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
1986
1946
  RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
1987
- RotationRules: output.RotationRules !== undefined && output.RotationRules !== null
1988
- ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context)
1989
- : undefined,
1990
- SecretVersionsToStages: output.SecretVersionsToStages !== undefined && output.SecretVersionsToStages !== null
1947
+ RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
1948
+ SecretVersionsToStages: output.SecretVersionsToStages != null
1991
1949
  ? deserializeAws_json1_1SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
1992
1950
  : undefined,
1993
- Tags: output.Tags !== undefined && output.Tags !== null
1994
- ? deserializeAws_json1_1TagListType(output.Tags, context)
1995
- : undefined,
1951
+ Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
1996
1952
  };
1997
1953
  };
1998
1954
  const deserializeAws_json1_1SecretListType = (output, context) => {
@@ -2008,17 +1964,15 @@ const deserializeAws_json1_1SecretListType = (output, context) => {
2008
1964
  };
2009
1965
  const deserializeAws_json1_1SecretVersionsListEntry = (output, context) => {
2010
1966
  return {
2011
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
1967
+ CreatedDate: output.CreatedDate != null
2012
1968
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
2013
1969
  : undefined,
2014
- KmsKeyIds: output.KmsKeyIds !== undefined && output.KmsKeyIds !== null
2015
- ? deserializeAws_json1_1KmsKeyIdListType(output.KmsKeyIds, context)
2016
- : undefined,
2017
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
1970
+ KmsKeyIds: output.KmsKeyIds != null ? deserializeAws_json1_1KmsKeyIdListType(output.KmsKeyIds, context) : undefined,
1971
+ LastAccessedDate: output.LastAccessedDate != null
2018
1972
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
2019
1973
  : undefined,
2020
1974
  VersionId: (0, smithy_client_1.expectString)(output.VersionId),
2021
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
1975
+ VersionStages: output.VersionStages != null
2022
1976
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
2023
1977
  : undefined,
2024
1978
  };
@@ -2094,7 +2048,7 @@ const deserializeAws_json1_1UpdateSecretVersionStageResponse = (output, context)
2094
2048
  const deserializeAws_json1_1ValidateResourcePolicyResponse = (output, context) => {
2095
2049
  return {
2096
2050
  PolicyValidationPassed: (0, smithy_client_1.expectBoolean)(output.PolicyValidationPassed),
2097
- ValidationErrors: output.ValidationErrors !== undefined && output.ValidationErrors !== null
2051
+ ValidationErrors: output.ValidationErrors != null
2098
2052
  ? deserializeAws_json1_1ValidationErrorsType(output.ValidationErrors, context)
2099
2053
  : undefined,
2100
2054
  };
@@ -1823,32 +1823,27 @@ var serializeAws_json1_1AddReplicaRegionListType = function (input, context) {
1823
1823
  });
1824
1824
  };
1825
1825
  var serializeAws_json1_1CancelRotateSecretRequest = function (input, context) {
1826
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1826
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1827
1827
  };
1828
1828
  var serializeAws_json1_1CreateSecretRequest = function (input, context) {
1829
1829
  var _a;
1830
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddReplicaRegions !== undefined &&
1831
- input.AddReplicaRegions !== null && {
1830
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddReplicaRegions != null && {
1832
1831
  AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
1833
- })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.ForceOverwriteReplicaSecret !== undefined &&
1834
- input.ForceOverwriteReplicaSecret !== null && { ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SecretBinary !== undefined &&
1835
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString })), (input.Tags !== undefined &&
1836
- input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }));
1832
+ })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Description != null && { Description: input.Description })), (input.ForceOverwriteReplicaSecret != null && {
1833
+ ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
1834
+ })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Name != null && { Name: input.Name })), (input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretString != null && { SecretString: input.SecretString })), (input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }));
1837
1835
  };
1838
1836
  var serializeAws_json1_1DeleteResourcePolicyRequest = function (input, context) {
1839
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1837
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1840
1838
  };
1841
1839
  var serializeAws_json1_1DeleteSecretRequest = function (input, context) {
1842
- return __assign(__assign(__assign({}, (input.ForceDeleteWithoutRecovery !== undefined &&
1843
- input.ForceDeleteWithoutRecovery !== null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery })), (input.RecoveryWindowInDays !== undefined &&
1844
- input.RecoveryWindowInDays !== null && { RecoveryWindowInDays: input.RecoveryWindowInDays })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1840
+ return __assign(__assign(__assign({}, (input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery })), (input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays })), (input.SecretId != null && { SecretId: input.SecretId }));
1845
1841
  };
1846
1842
  var serializeAws_json1_1DescribeSecretRequest = function (input, context) {
1847
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1843
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1848
1844
  };
1849
1845
  var serializeAws_json1_1Filter = function (input, context) {
1850
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Values !== undefined &&
1851
- input.Values !== null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }));
1846
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Values != null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }));
1852
1847
  };
1853
1848
  var serializeAws_json1_1FiltersListType = function (input, context) {
1854
1849
  return input
@@ -1871,47 +1866,33 @@ var serializeAws_json1_1FilterValuesStringList = function (input, context) {
1871
1866
  });
1872
1867
  };
1873
1868
  var serializeAws_json1_1GetRandomPasswordRequest = function (input, context) {
1874
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludeCharacters !== undefined &&
1875
- input.ExcludeCharacters !== null && { ExcludeCharacters: input.ExcludeCharacters })), (input.ExcludeLowercase !== undefined &&
1876
- input.ExcludeLowercase !== null && { ExcludeLowercase: input.ExcludeLowercase })), (input.ExcludeNumbers !== undefined &&
1877
- input.ExcludeNumbers !== null && { ExcludeNumbers: input.ExcludeNumbers })), (input.ExcludePunctuation !== undefined &&
1878
- input.ExcludePunctuation !== null && { ExcludePunctuation: input.ExcludePunctuation })), (input.ExcludeUppercase !== undefined &&
1879
- input.ExcludeUppercase !== null && { ExcludeUppercase: input.ExcludeUppercase })), (input.IncludeSpace !== undefined && input.IncludeSpace !== null && { IncludeSpace: input.IncludeSpace })), (input.PasswordLength !== undefined &&
1880
- input.PasswordLength !== null && { PasswordLength: input.PasswordLength })), (input.RequireEachIncludedType !== undefined &&
1881
- input.RequireEachIncludedType !== null && { RequireEachIncludedType: input.RequireEachIncludedType }));
1869
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters })), (input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase })), (input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers })), (input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation })), (input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase })), (input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace })), (input.PasswordLength != null && { PasswordLength: input.PasswordLength })), (input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }));
1882
1870
  };
1883
1871
  var serializeAws_json1_1GetResourcePolicyRequest = function (input, context) {
1884
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1872
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1885
1873
  };
1886
1874
  var serializeAws_json1_1GetSecretValueRequest = function (input, context) {
1887
- return __assign(__assign(__assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.VersionId !== undefined && input.VersionId !== null && { VersionId: input.VersionId })), (input.VersionStage !== undefined && input.VersionStage !== null && { VersionStage: input.VersionStage }));
1875
+ return __assign(__assign(__assign({}, (input.SecretId != null && { SecretId: input.SecretId })), (input.VersionId != null && { VersionId: input.VersionId })), (input.VersionStage != null && { VersionStage: input.VersionStage }));
1888
1876
  };
1889
1877
  var serializeAws_json1_1ListSecretsRequest = function (input, context) {
1890
- return __assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
1891
- input.Filters !== null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
1878
+ return __assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
1892
1879
  };
1893
1880
  var serializeAws_json1_1ListSecretVersionIdsRequest = function (input, context) {
1894
- return __assign(__assign(__assign(__assign({}, (input.IncludeDeprecated !== undefined &&
1895
- input.IncludeDeprecated !== null && { IncludeDeprecated: input.IncludeDeprecated })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1881
+ return __assign(__assign(__assign(__assign({}, (input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SecretId != null && { SecretId: input.SecretId }));
1896
1882
  };
1897
1883
  var serializeAws_json1_1PutResourcePolicyRequest = function (input, context) {
1898
- return __assign(__assign(__assign({}, (input.BlockPublicPolicy !== undefined &&
1899
- input.BlockPublicPolicy !== null && { BlockPublicPolicy: input.BlockPublicPolicy })), (input.ResourcePolicy !== undefined &&
1900
- input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1884
+ return __assign(__assign(__assign({}, (input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy })), (input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy })), (input.SecretId != null && { SecretId: input.SecretId }));
1901
1885
  };
1902
1886
  var serializeAws_json1_1PutSecretValueRequest = function (input, context) {
1903
1887
  var _a;
1904
- return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.SecretBinary !== undefined &&
1905
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString })), (input.VersionStages !== undefined &&
1906
- input.VersionStages !== null && {
1888
+ return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretId != null && { SecretId: input.SecretId })), (input.SecretString != null && { SecretString: input.SecretString })), (input.VersionStages != null && {
1907
1889
  VersionStages: serializeAws_json1_1SecretVersionStagesType(input.VersionStages, context),
1908
1890
  }));
1909
1891
  };
1910
1892
  var serializeAws_json1_1RemoveRegionsFromReplicationRequest = function (input, context) {
1911
- return __assign(__assign({}, (input.RemoveReplicaRegions !== undefined &&
1912
- input.RemoveReplicaRegions !== null && {
1893
+ return __assign(__assign({}, (input.RemoveReplicaRegions != null && {
1913
1894
  RemoveReplicaRegions: serializeAws_json1_1RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
1914
- })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1895
+ })), (input.SecretId != null && { SecretId: input.SecretId }));
1915
1896
  };
1916
1897
  var serializeAws_json1_1RemoveReplicaRegionListType = function (input, context) {
1917
1898
  return input
@@ -1924,31 +1905,26 @@ var serializeAws_json1_1RemoveReplicaRegionListType = function (input, context)
1924
1905
  });
1925
1906
  };
1926
1907
  var serializeAws_json1_1ReplicaRegionType = function (input, context) {
1927
- return __assign(__assign({}, (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Region !== undefined && input.Region !== null && { Region: input.Region }));
1908
+ return __assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Region != null && { Region: input.Region }));
1928
1909
  };
1929
1910
  var serializeAws_json1_1ReplicateSecretToRegionsRequest = function (input, context) {
1930
- return __assign(__assign(__assign({}, (input.AddReplicaRegions !== undefined &&
1931
- input.AddReplicaRegions !== null && {
1911
+ return __assign(__assign(__assign({}, (input.AddReplicaRegions != null && {
1932
1912
  AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
1933
- })), (input.ForceOverwriteReplicaSecret !== undefined &&
1934
- input.ForceOverwriteReplicaSecret !== null && { ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1913
+ })), (input.ForceOverwriteReplicaSecret != null && {
1914
+ ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
1915
+ })), (input.SecretId != null && { SecretId: input.SecretId }));
1935
1916
  };
1936
1917
  var serializeAws_json1_1RestoreSecretRequest = function (input, context) {
1937
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1918
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1938
1919
  };
1939
1920
  var serializeAws_json1_1RotateSecretRequest = function (input, context) {
1940
1921
  var _a;
1941
- return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.RotateImmediately !== undefined &&
1942
- input.RotateImmediately !== null && { RotateImmediately: input.RotateImmediately })), (input.RotationLambdaARN !== undefined &&
1943
- input.RotationLambdaARN !== null && { RotationLambdaARN: input.RotationLambdaARN })), (input.RotationRules !== undefined &&
1944
- input.RotationRules !== null && {
1922
+ return __assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.RotateImmediately != null && { RotateImmediately: input.RotateImmediately })), (input.RotationLambdaARN != null && { RotationLambdaARN: input.RotationLambdaARN })), (input.RotationRules != null && {
1945
1923
  RotationRules: serializeAws_json1_1RotationRulesType(input.RotationRules, context),
1946
- })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1924
+ })), (input.SecretId != null && { SecretId: input.SecretId }));
1947
1925
  };
1948
1926
  var serializeAws_json1_1RotationRulesType = function (input, context) {
1949
- return __assign(__assign(__assign({}, (input.AutomaticallyAfterDays !== undefined &&
1950
- input.AutomaticallyAfterDays !== null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays })), (input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration })), (input.ScheduleExpression !== undefined &&
1951
- input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }));
1927
+ return __assign(__assign(__assign({}, (input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays })), (input.Duration != null && { Duration: input.Duration })), (input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }));
1952
1928
  };
1953
1929
  var serializeAws_json1_1SecretVersionStagesType = function (input, context) {
1954
1930
  return input
@@ -1961,10 +1937,10 @@ var serializeAws_json1_1SecretVersionStagesType = function (input, context) {
1961
1937
  });
1962
1938
  };
1963
1939
  var serializeAws_json1_1StopReplicationToReplicaRequest = function (input, context) {
1964
- return __assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1940
+ return __assign({}, (input.SecretId != null && { SecretId: input.SecretId }));
1965
1941
  };
1966
1942
  var serializeAws_json1_1Tag = function (input, context) {
1967
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1943
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1968
1944
  };
1969
1945
  var serializeAws_json1_1TagKeyListType = function (input, context) {
1970
1946
  return input
@@ -1987,26 +1963,20 @@ var serializeAws_json1_1TagListType = function (input, context) {
1987
1963
  });
1988
1964
  };
1989
1965
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
1990
- return __assign(__assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.Tags !== undefined &&
1991
- input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }));
1966
+ return __assign(__assign({}, (input.SecretId != null && { SecretId: input.SecretId })), (input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }));
1992
1967
  };
1993
1968
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
1994
- return __assign(__assign({}, (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.TagKeys !== undefined &&
1995
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }));
1969
+ return __assign(__assign({}, (input.SecretId != null && { SecretId: input.SecretId })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }));
1996
1970
  };
1997
1971
  var serializeAws_json1_1UpdateSecretRequest = function (input, context) {
1998
1972
  var _a;
1999
- return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.SecretBinary !== undefined &&
2000
- input.SecretBinary !== null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString }));
1973
+ return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) })), (input.SecretId != null && { SecretId: input.SecretId })), (input.SecretString != null && { SecretString: input.SecretString }));
2001
1974
  };
2002
1975
  var serializeAws_json1_1UpdateSecretVersionStageRequest = function (input, context) {
2003
- return __assign(__assign(__assign(__assign({}, (input.MoveToVersionId !== undefined &&
2004
- input.MoveToVersionId !== null && { MoveToVersionId: input.MoveToVersionId })), (input.RemoveFromVersionId !== undefined &&
2005
- input.RemoveFromVersionId !== null && { RemoveFromVersionId: input.RemoveFromVersionId })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId })), (input.VersionStage !== undefined && input.VersionStage !== null && { VersionStage: input.VersionStage }));
1976
+ return __assign(__assign(__assign(__assign({}, (input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId })), (input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId })), (input.SecretId != null && { SecretId: input.SecretId })), (input.VersionStage != null && { VersionStage: input.VersionStage }));
2006
1977
  };
2007
1978
  var serializeAws_json1_1ValidateResourcePolicyRequest = function (input, context) {
2008
- return __assign(__assign({}, (input.ResourcePolicy !== undefined &&
2009
- input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy })), (input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }));
1979
+ return __assign(__assign({}, (input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy })), (input.SecretId != null && { SecretId: input.SecretId }));
2010
1980
  };
2011
1981
  var deserializeAws_json1_1CancelRotateSecretResponse = function (output, context) {
2012
1982
  return {
@@ -2019,7 +1989,7 @@ var deserializeAws_json1_1CreateSecretResponse = function (output, context) {
2019
1989
  return {
2020
1990
  ARN: __expectString(output.ARN),
2021
1991
  Name: __expectString(output.Name),
2022
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
1992
+ ReplicationStatus: output.ReplicationStatus != null
2023
1993
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
2024
1994
  : undefined,
2025
1995
  VersionId: __expectString(output.VersionId),
@@ -2039,7 +2009,7 @@ var deserializeAws_json1_1DeleteResourcePolicyResponse = function (output, conte
2039
2009
  var deserializeAws_json1_1DeleteSecretResponse = function (output, context) {
2040
2010
  return {
2041
2011
  ARN: __expectString(output.ARN),
2042
- DeletionDate: output.DeletionDate !== undefined && output.DeletionDate !== null
2012
+ DeletionDate: output.DeletionDate != null
2043
2013
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletionDate)))
2044
2014
  : undefined,
2045
2015
  Name: __expectString(output.Name),
@@ -2048,38 +2018,34 @@ var deserializeAws_json1_1DeleteSecretResponse = function (output, context) {
2048
2018
  var deserializeAws_json1_1DescribeSecretResponse = function (output, context) {
2049
2019
  return {
2050
2020
  ARN: __expectString(output.ARN),
2051
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
2021
+ CreatedDate: output.CreatedDate != null
2052
2022
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
2053
2023
  : undefined,
2054
- DeletedDate: output.DeletedDate !== undefined && output.DeletedDate !== null
2024
+ DeletedDate: output.DeletedDate != null
2055
2025
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedDate)))
2056
2026
  : undefined,
2057
2027
  Description: __expectString(output.Description),
2058
2028
  KmsKeyId: __expectString(output.KmsKeyId),
2059
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
2029
+ LastAccessedDate: output.LastAccessedDate != null
2060
2030
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAccessedDate)))
2061
2031
  : undefined,
2062
- LastChangedDate: output.LastChangedDate !== undefined && output.LastChangedDate !== null
2032
+ LastChangedDate: output.LastChangedDate != null
2063
2033
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastChangedDate)))
2064
2034
  : undefined,
2065
- LastRotatedDate: output.LastRotatedDate !== undefined && output.LastRotatedDate !== null
2035
+ LastRotatedDate: output.LastRotatedDate != null
2066
2036
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRotatedDate)))
2067
2037
  : undefined,
2068
2038
  Name: __expectString(output.Name),
2069
2039
  OwningService: __expectString(output.OwningService),
2070
2040
  PrimaryRegion: __expectString(output.PrimaryRegion),
2071
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
2041
+ ReplicationStatus: output.ReplicationStatus != null
2072
2042
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
2073
2043
  : undefined,
2074
2044
  RotationEnabled: __expectBoolean(output.RotationEnabled),
2075
2045
  RotationLambdaARN: __expectString(output.RotationLambdaARN),
2076
- RotationRules: output.RotationRules !== undefined && output.RotationRules !== null
2077
- ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context)
2078
- : undefined,
2079
- Tags: output.Tags !== undefined && output.Tags !== null
2080
- ? deserializeAws_json1_1TagListType(output.Tags, context)
2081
- : undefined,
2082
- VersionIdsToStages: output.VersionIdsToStages !== undefined && output.VersionIdsToStages !== null
2046
+ RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
2047
+ Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
2048
+ VersionIdsToStages: output.VersionIdsToStages != null
2083
2049
  ? deserializeAws_json1_1SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
2084
2050
  : undefined,
2085
2051
  };
@@ -2104,16 +2070,14 @@ var deserializeAws_json1_1GetResourcePolicyResponse = function (output, context)
2104
2070
  var deserializeAws_json1_1GetSecretValueResponse = function (output, context) {
2105
2071
  return {
2106
2072
  ARN: __expectString(output.ARN),
2107
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
2073
+ CreatedDate: output.CreatedDate != null
2108
2074
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
2109
2075
  : undefined,
2110
2076
  Name: __expectString(output.Name),
2111
- SecretBinary: output.SecretBinary !== undefined && output.SecretBinary !== null
2112
- ? context.base64Decoder(output.SecretBinary)
2113
- : undefined,
2077
+ SecretBinary: output.SecretBinary != null ? context.base64Decoder(output.SecretBinary) : undefined,
2114
2078
  SecretString: __expectString(output.SecretString),
2115
2079
  VersionId: __expectString(output.VersionId),
2116
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
2080
+ VersionStages: output.VersionStages != null
2117
2081
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
2118
2082
  : undefined,
2119
2083
  };
@@ -2157,9 +2121,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
2157
2121
  var deserializeAws_json1_1ListSecretsResponse = function (output, context) {
2158
2122
  return {
2159
2123
  NextToken: __expectString(output.NextToken),
2160
- SecretList: output.SecretList !== undefined && output.SecretList !== null
2161
- ? deserializeAws_json1_1SecretListType(output.SecretList, context)
2162
- : undefined,
2124
+ SecretList: output.SecretList != null ? deserializeAws_json1_1SecretListType(output.SecretList, context) : undefined,
2163
2125
  };
2164
2126
  };
2165
2127
  var deserializeAws_json1_1ListSecretVersionIdsResponse = function (output, context) {
@@ -2167,9 +2129,7 @@ var deserializeAws_json1_1ListSecretVersionIdsResponse = function (output, conte
2167
2129
  ARN: __expectString(output.ARN),
2168
2130
  Name: __expectString(output.Name),
2169
2131
  NextToken: __expectString(output.NextToken),
2170
- Versions: output.Versions !== undefined && output.Versions !== null
2171
- ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context)
2172
- : undefined,
2132
+ Versions: output.Versions != null ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context) : undefined,
2173
2133
  };
2174
2134
  };
2175
2135
  var deserializeAws_json1_1MalformedPolicyDocumentException = function (output, context) {
@@ -2198,7 +2158,7 @@ var deserializeAws_json1_1PutSecretValueResponse = function (output, context) {
2198
2158
  ARN: __expectString(output.ARN),
2199
2159
  Name: __expectString(output.Name),
2200
2160
  VersionId: __expectString(output.VersionId),
2201
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
2161
+ VersionStages: output.VersionStages != null
2202
2162
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
2203
2163
  : undefined,
2204
2164
  };
@@ -2206,7 +2166,7 @@ var deserializeAws_json1_1PutSecretValueResponse = function (output, context) {
2206
2166
  var deserializeAws_json1_1RemoveRegionsFromReplicationResponse = function (output, context) {
2207
2167
  return {
2208
2168
  ARN: __expectString(output.ARN),
2209
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
2169
+ ReplicationStatus: output.ReplicationStatus != null
2210
2170
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
2211
2171
  : undefined,
2212
2172
  };
@@ -2214,7 +2174,7 @@ var deserializeAws_json1_1RemoveRegionsFromReplicationResponse = function (outpu
2214
2174
  var deserializeAws_json1_1ReplicateSecretToRegionsResponse = function (output, context) {
2215
2175
  return {
2216
2176
  ARN: __expectString(output.ARN),
2217
- ReplicationStatus: output.ReplicationStatus !== undefined && output.ReplicationStatus !== null
2177
+ ReplicationStatus: output.ReplicationStatus != null
2218
2178
  ? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
2219
2179
  : undefined,
2220
2180
  };
@@ -2233,7 +2193,7 @@ var deserializeAws_json1_1ReplicationStatusListType = function (output, context)
2233
2193
  var deserializeAws_json1_1ReplicationStatusType = function (output, context) {
2234
2194
  return {
2235
2195
  KmsKeyId: __expectString(output.KmsKeyId),
2236
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
2196
+ LastAccessedDate: output.LastAccessedDate != null
2237
2197
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAccessedDate)))
2238
2198
  : undefined,
2239
2199
  Region: __expectString(output.Region),
@@ -2274,21 +2234,21 @@ var deserializeAws_json1_1RotationRulesType = function (output, context) {
2274
2234
  var deserializeAws_json1_1SecretListEntry = function (output, context) {
2275
2235
  return {
2276
2236
  ARN: __expectString(output.ARN),
2277
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
2237
+ CreatedDate: output.CreatedDate != null
2278
2238
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
2279
2239
  : undefined,
2280
- DeletedDate: output.DeletedDate !== undefined && output.DeletedDate !== null
2240
+ DeletedDate: output.DeletedDate != null
2281
2241
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedDate)))
2282
2242
  : undefined,
2283
2243
  Description: __expectString(output.Description),
2284
2244
  KmsKeyId: __expectString(output.KmsKeyId),
2285
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
2245
+ LastAccessedDate: output.LastAccessedDate != null
2286
2246
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAccessedDate)))
2287
2247
  : undefined,
2288
- LastChangedDate: output.LastChangedDate !== undefined && output.LastChangedDate !== null
2248
+ LastChangedDate: output.LastChangedDate != null
2289
2249
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastChangedDate)))
2290
2250
  : undefined,
2291
- LastRotatedDate: output.LastRotatedDate !== undefined && output.LastRotatedDate !== null
2251
+ LastRotatedDate: output.LastRotatedDate != null
2292
2252
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRotatedDate)))
2293
2253
  : undefined,
2294
2254
  Name: __expectString(output.Name),
@@ -2296,15 +2256,11 @@ var deserializeAws_json1_1SecretListEntry = function (output, context) {
2296
2256
  PrimaryRegion: __expectString(output.PrimaryRegion),
2297
2257
  RotationEnabled: __expectBoolean(output.RotationEnabled),
2298
2258
  RotationLambdaARN: __expectString(output.RotationLambdaARN),
2299
- RotationRules: output.RotationRules !== undefined && output.RotationRules !== null
2300
- ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context)
2301
- : undefined,
2302
- SecretVersionsToStages: output.SecretVersionsToStages !== undefined && output.SecretVersionsToStages !== null
2259
+ RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
2260
+ SecretVersionsToStages: output.SecretVersionsToStages != null
2303
2261
  ? deserializeAws_json1_1SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
2304
2262
  : undefined,
2305
- Tags: output.Tags !== undefined && output.Tags !== null
2306
- ? deserializeAws_json1_1TagListType(output.Tags, context)
2307
- : undefined,
2263
+ Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
2308
2264
  };
2309
2265
  };
2310
2266
  var deserializeAws_json1_1SecretListType = function (output, context) {
@@ -2320,17 +2276,15 @@ var deserializeAws_json1_1SecretListType = function (output, context) {
2320
2276
  };
2321
2277
  var deserializeAws_json1_1SecretVersionsListEntry = function (output, context) {
2322
2278
  return {
2323
- CreatedDate: output.CreatedDate !== undefined && output.CreatedDate !== null
2279
+ CreatedDate: output.CreatedDate != null
2324
2280
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
2325
2281
  : undefined,
2326
- KmsKeyIds: output.KmsKeyIds !== undefined && output.KmsKeyIds !== null
2327
- ? deserializeAws_json1_1KmsKeyIdListType(output.KmsKeyIds, context)
2328
- : undefined,
2329
- LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
2282
+ KmsKeyIds: output.KmsKeyIds != null ? deserializeAws_json1_1KmsKeyIdListType(output.KmsKeyIds, context) : undefined,
2283
+ LastAccessedDate: output.LastAccessedDate != null
2330
2284
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAccessedDate)))
2331
2285
  : undefined,
2332
2286
  VersionId: __expectString(output.VersionId),
2333
- VersionStages: output.VersionStages !== undefined && output.VersionStages !== null
2287
+ VersionStages: output.VersionStages != null
2334
2288
  ? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
2335
2289
  : undefined,
2336
2290
  };
@@ -2405,7 +2359,7 @@ var deserializeAws_json1_1UpdateSecretVersionStageResponse = function (output, c
2405
2359
  var deserializeAws_json1_1ValidateResourcePolicyResponse = function (output, context) {
2406
2360
  return {
2407
2361
  PolicyValidationPassed: __expectBoolean(output.PolicyValidationPassed),
2408
- ValidationErrors: output.ValidationErrors !== undefined && output.ValidationErrors !== null
2362
+ ValidationErrors: output.ValidationErrors != null
2409
2363
  ? deserializeAws_json1_1ValidationErrorsType(output.ValidationErrors, context)
2410
2364
  : undefined,
2411
2365
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-secrets-manager",
3
3
  "description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
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.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
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.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
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",