@aws-sdk/client-sfn 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +143 -193
- package/dist-es/protocols/Aws_json1_0.js +110 -160
- package/package.json +26 -26
|
@@ -1464,110 +1464,103 @@ const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context)
|
|
|
1464
1464
|
};
|
|
1465
1465
|
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1466
1466
|
return {
|
|
1467
|
-
...(input.logGroupArn
|
|
1467
|
+
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
1468
1468
|
};
|
|
1469
1469
|
};
|
|
1470
1470
|
const serializeAws_json1_0CreateActivityInput = (input, context) => {
|
|
1471
1471
|
return {
|
|
1472
|
-
...(input.name
|
|
1473
|
-
...(input.tags
|
|
1472
|
+
...(input.name != null && { name: input.name }),
|
|
1473
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1474
1474
|
};
|
|
1475
1475
|
};
|
|
1476
1476
|
const serializeAws_json1_0CreateStateMachineInput = (input, context) => {
|
|
1477
1477
|
return {
|
|
1478
|
-
...(input.definition
|
|
1479
|
-
...(input.loggingConfiguration
|
|
1480
|
-
input.loggingConfiguration !== null && {
|
|
1478
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1479
|
+
...(input.loggingConfiguration != null && {
|
|
1481
1480
|
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1482
1481
|
}),
|
|
1483
|
-
...(input.name
|
|
1484
|
-
...(input.roleArn
|
|
1485
|
-
...(input.tags
|
|
1486
|
-
...(input.tracingConfiguration
|
|
1487
|
-
input.tracingConfiguration !== null && {
|
|
1482
|
+
...(input.name != null && { name: input.name }),
|
|
1483
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1484
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1485
|
+
...(input.tracingConfiguration != null && {
|
|
1488
1486
|
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1489
1487
|
}),
|
|
1490
|
-
...(input.type
|
|
1488
|
+
...(input.type != null && { type: input.type }),
|
|
1491
1489
|
};
|
|
1492
1490
|
};
|
|
1493
1491
|
const serializeAws_json1_0DeleteActivityInput = (input, context) => {
|
|
1494
1492
|
return {
|
|
1495
|
-
...(input.activityArn
|
|
1493
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1496
1494
|
};
|
|
1497
1495
|
};
|
|
1498
1496
|
const serializeAws_json1_0DeleteStateMachineInput = (input, context) => {
|
|
1499
1497
|
return {
|
|
1500
|
-
...(input.stateMachineArn
|
|
1501
|
-
input.stateMachineArn !== null && { stateMachineArn: input.stateMachineArn }),
|
|
1498
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1502
1499
|
};
|
|
1503
1500
|
};
|
|
1504
1501
|
const serializeAws_json1_0DescribeActivityInput = (input, context) => {
|
|
1505
1502
|
return {
|
|
1506
|
-
...(input.activityArn
|
|
1503
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1507
1504
|
};
|
|
1508
1505
|
};
|
|
1509
1506
|
const serializeAws_json1_0DescribeExecutionInput = (input, context) => {
|
|
1510
1507
|
return {
|
|
1511
|
-
...(input.executionArn
|
|
1508
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1512
1509
|
};
|
|
1513
1510
|
};
|
|
1514
1511
|
const serializeAws_json1_0DescribeStateMachineForExecutionInput = (input, context) => {
|
|
1515
1512
|
return {
|
|
1516
|
-
...(input.executionArn
|
|
1513
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1517
1514
|
};
|
|
1518
1515
|
};
|
|
1519
1516
|
const serializeAws_json1_0DescribeStateMachineInput = (input, context) => {
|
|
1520
1517
|
return {
|
|
1521
|
-
...(input.stateMachineArn
|
|
1522
|
-
input.stateMachineArn !== null && { stateMachineArn: input.stateMachineArn }),
|
|
1518
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1523
1519
|
};
|
|
1524
1520
|
};
|
|
1525
1521
|
const serializeAws_json1_0GetActivityTaskInput = (input, context) => {
|
|
1526
1522
|
return {
|
|
1527
|
-
...(input.activityArn
|
|
1528
|
-
...(input.workerName
|
|
1523
|
+
...(input.activityArn != null && { activityArn: input.activityArn }),
|
|
1524
|
+
...(input.workerName != null && { workerName: input.workerName }),
|
|
1529
1525
|
};
|
|
1530
1526
|
};
|
|
1531
1527
|
const serializeAws_json1_0GetExecutionHistoryInput = (input, context) => {
|
|
1532
1528
|
return {
|
|
1533
|
-
...(input.executionArn
|
|
1534
|
-
...(input.includeExecutionData
|
|
1535
|
-
|
|
1536
|
-
...(input.
|
|
1537
|
-
...(input.
|
|
1538
|
-
...(input.reverseOrder !== undefined && input.reverseOrder !== null && { reverseOrder: input.reverseOrder }),
|
|
1529
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1530
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1531
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1532
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1533
|
+
...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
|
|
1539
1534
|
};
|
|
1540
1535
|
};
|
|
1541
1536
|
const serializeAws_json1_0ListActivitiesInput = (input, context) => {
|
|
1542
1537
|
return {
|
|
1543
|
-
...(input.maxResults
|
|
1544
|
-
...(input.nextToken
|
|
1538
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1539
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1545
1540
|
};
|
|
1546
1541
|
};
|
|
1547
1542
|
const serializeAws_json1_0ListExecutionsInput = (input, context) => {
|
|
1548
1543
|
return {
|
|
1549
|
-
...(input.maxResults
|
|
1550
|
-
...(input.nextToken
|
|
1551
|
-
...(input.stateMachineArn
|
|
1552
|
-
|
|
1553
|
-
...(input.statusFilter !== undefined && input.statusFilter !== null && { statusFilter: input.statusFilter }),
|
|
1544
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1545
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1546
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1547
|
+
...(input.statusFilter != null && { statusFilter: input.statusFilter }),
|
|
1554
1548
|
};
|
|
1555
1549
|
};
|
|
1556
1550
|
const serializeAws_json1_0ListStateMachinesInput = (input, context) => {
|
|
1557
1551
|
return {
|
|
1558
|
-
...(input.maxResults
|
|
1559
|
-
...(input.nextToken
|
|
1552
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1553
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1560
1554
|
};
|
|
1561
1555
|
};
|
|
1562
1556
|
const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
1563
1557
|
return {
|
|
1564
|
-
...(input.resourceArn
|
|
1558
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1565
1559
|
};
|
|
1566
1560
|
};
|
|
1567
1561
|
const serializeAws_json1_0LogDestination = (input, context) => {
|
|
1568
1562
|
return {
|
|
1569
|
-
...(input.cloudWatchLogsLogGroup
|
|
1570
|
-
input.cloudWatchLogsLogGroup !== null && {
|
|
1563
|
+
...(input.cloudWatchLogsLogGroup != null && {
|
|
1571
1564
|
cloudWatchLogsLogGroup: serializeAws_json1_0CloudWatchLogsLogGroup(input.cloudWatchLogsLogGroup, context),
|
|
1572
1565
|
}),
|
|
1573
1566
|
};
|
|
@@ -1584,62 +1577,58 @@ const serializeAws_json1_0LogDestinationList = (input, context) => {
|
|
|
1584
1577
|
};
|
|
1585
1578
|
const serializeAws_json1_0LoggingConfiguration = (input, context) => {
|
|
1586
1579
|
return {
|
|
1587
|
-
...(input.destinations
|
|
1588
|
-
input.destinations !== null && {
|
|
1580
|
+
...(input.destinations != null && {
|
|
1589
1581
|
destinations: serializeAws_json1_0LogDestinationList(input.destinations, context),
|
|
1590
1582
|
}),
|
|
1591
|
-
...(input.includeExecutionData
|
|
1592
|
-
|
|
1593
|
-
...(input.level !== undefined && input.level !== null && { level: input.level }),
|
|
1583
|
+
...(input.includeExecutionData != null && { includeExecutionData: input.includeExecutionData }),
|
|
1584
|
+
...(input.level != null && { level: input.level }),
|
|
1594
1585
|
};
|
|
1595
1586
|
};
|
|
1596
1587
|
const serializeAws_json1_0SendTaskFailureInput = (input, context) => {
|
|
1597
1588
|
return {
|
|
1598
|
-
...(input.cause
|
|
1599
|
-
...(input.error
|
|
1600
|
-
...(input.taskToken
|
|
1589
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1590
|
+
...(input.error != null && { error: input.error }),
|
|
1591
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1601
1592
|
};
|
|
1602
1593
|
};
|
|
1603
1594
|
const serializeAws_json1_0SendTaskHeartbeatInput = (input, context) => {
|
|
1604
1595
|
return {
|
|
1605
|
-
...(input.taskToken
|
|
1596
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1606
1597
|
};
|
|
1607
1598
|
};
|
|
1608
1599
|
const serializeAws_json1_0SendTaskSuccessInput = (input, context) => {
|
|
1609
1600
|
return {
|
|
1610
|
-
...(input.output
|
|
1611
|
-
...(input.taskToken
|
|
1601
|
+
...(input.output != null && { output: input.output }),
|
|
1602
|
+
...(input.taskToken != null && { taskToken: input.taskToken }),
|
|
1612
1603
|
};
|
|
1613
1604
|
};
|
|
1614
1605
|
const serializeAws_json1_0StartExecutionInput = (input, context) => {
|
|
1615
1606
|
return {
|
|
1616
|
-
...(input.input
|
|
1617
|
-
...(input.name
|
|
1618
|
-
...(input.stateMachineArn
|
|
1619
|
-
|
|
1620
|
-
...(input.traceHeader !== undefined && input.traceHeader !== null && { traceHeader: input.traceHeader }),
|
|
1607
|
+
...(input.input != null && { input: input.input }),
|
|
1608
|
+
...(input.name != null && { name: input.name }),
|
|
1609
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1610
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1621
1611
|
};
|
|
1622
1612
|
};
|
|
1623
1613
|
const serializeAws_json1_0StartSyncExecutionInput = (input, context) => {
|
|
1624
1614
|
return {
|
|
1625
|
-
...(input.input
|
|
1626
|
-
...(input.name
|
|
1627
|
-
...(input.stateMachineArn
|
|
1628
|
-
|
|
1629
|
-
...(input.traceHeader !== undefined && input.traceHeader !== null && { traceHeader: input.traceHeader }),
|
|
1615
|
+
...(input.input != null && { input: input.input }),
|
|
1616
|
+
...(input.name != null && { name: input.name }),
|
|
1617
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1618
|
+
...(input.traceHeader != null && { traceHeader: input.traceHeader }),
|
|
1630
1619
|
};
|
|
1631
1620
|
};
|
|
1632
1621
|
const serializeAws_json1_0StopExecutionInput = (input, context) => {
|
|
1633
1622
|
return {
|
|
1634
|
-
...(input.cause
|
|
1635
|
-
...(input.error
|
|
1636
|
-
...(input.executionArn
|
|
1623
|
+
...(input.cause != null && { cause: input.cause }),
|
|
1624
|
+
...(input.error != null && { error: input.error }),
|
|
1625
|
+
...(input.executionArn != null && { executionArn: input.executionArn }),
|
|
1637
1626
|
};
|
|
1638
1627
|
};
|
|
1639
1628
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1640
1629
|
return {
|
|
1641
|
-
...(input.key
|
|
1642
|
-
...(input.value
|
|
1630
|
+
...(input.key != null && { key: input.key }),
|
|
1631
|
+
...(input.value != null && { value: input.value }),
|
|
1643
1632
|
};
|
|
1644
1633
|
};
|
|
1645
1634
|
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
@@ -1664,34 +1653,30 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1664
1653
|
};
|
|
1665
1654
|
const serializeAws_json1_0TagResourceInput = (input, context) => {
|
|
1666
1655
|
return {
|
|
1667
|
-
...(input.resourceArn
|
|
1668
|
-
...(input.tags
|
|
1656
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1657
|
+
...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
1669
1658
|
};
|
|
1670
1659
|
};
|
|
1671
1660
|
const serializeAws_json1_0TracingConfiguration = (input, context) => {
|
|
1672
1661
|
return {
|
|
1673
|
-
...(input.enabled
|
|
1662
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1674
1663
|
};
|
|
1675
1664
|
};
|
|
1676
1665
|
const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
1677
1666
|
return {
|
|
1678
|
-
...(input.resourceArn
|
|
1679
|
-
...(input.tagKeys
|
|
1680
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1667
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1668
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
|
|
1681
1669
|
};
|
|
1682
1670
|
};
|
|
1683
1671
|
const serializeAws_json1_0UpdateStateMachineInput = (input, context) => {
|
|
1684
1672
|
return {
|
|
1685
|
-
...(input.definition
|
|
1686
|
-
...(input.loggingConfiguration
|
|
1687
|
-
input.loggingConfiguration !== null && {
|
|
1673
|
+
...(input.definition != null && { definition: input.definition }),
|
|
1674
|
+
...(input.loggingConfiguration != null && {
|
|
1688
1675
|
loggingConfiguration: serializeAws_json1_0LoggingConfiguration(input.loggingConfiguration, context),
|
|
1689
1676
|
}),
|
|
1690
|
-
...(input.roleArn
|
|
1691
|
-
...(input.stateMachineArn
|
|
1692
|
-
|
|
1693
|
-
...(input.tracingConfiguration !== undefined &&
|
|
1694
|
-
input.tracingConfiguration !== null && {
|
|
1677
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1678
|
+
...(input.stateMachineArn != null && { stateMachineArn: input.stateMachineArn }),
|
|
1679
|
+
...(input.tracingConfiguration != null && {
|
|
1695
1680
|
tracingConfiguration: serializeAws_json1_0TracingConfiguration(input.tracingConfiguration, context),
|
|
1696
1681
|
}),
|
|
1697
1682
|
};
|
|
@@ -1726,7 +1711,7 @@ const deserializeAws_json1_0ActivityList = (output, context) => {
|
|
|
1726
1711
|
const deserializeAws_json1_0ActivityListItem = (output, context) => {
|
|
1727
1712
|
return {
|
|
1728
1713
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1729
|
-
creationDate: output.creationDate
|
|
1714
|
+
creationDate: output.creationDate != null
|
|
1730
1715
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1731
1716
|
: undefined,
|
|
1732
1717
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1736,7 +1721,7 @@ const deserializeAws_json1_0ActivityScheduledEventDetails = (output, context) =>
|
|
|
1736
1721
|
return {
|
|
1737
1722
|
heartbeatInSeconds: (0, smithy_client_1.expectLong)(output.heartbeatInSeconds),
|
|
1738
1723
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1739
|
-
inputDetails: output.inputDetails
|
|
1724
|
+
inputDetails: output.inputDetails != null
|
|
1740
1725
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
1741
1726
|
: undefined,
|
|
1742
1727
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -1757,7 +1742,7 @@ const deserializeAws_json1_0ActivityStartedEventDetails = (output, context) => {
|
|
|
1757
1742
|
const deserializeAws_json1_0ActivitySucceededEventDetails = (output, context) => {
|
|
1758
1743
|
return {
|
|
1759
1744
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1760
|
-
outputDetails: output.outputDetails
|
|
1745
|
+
outputDetails: output.outputDetails != null
|
|
1761
1746
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
1762
1747
|
: undefined,
|
|
1763
1748
|
};
|
|
@@ -1792,14 +1777,14 @@ const deserializeAws_json1_0CloudWatchLogsLogGroup = (output, context) => {
|
|
|
1792
1777
|
const deserializeAws_json1_0CreateActivityOutput = (output, context) => {
|
|
1793
1778
|
return {
|
|
1794
1779
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1795
|
-
creationDate: output.creationDate
|
|
1780
|
+
creationDate: output.creationDate != null
|
|
1796
1781
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1797
1782
|
: undefined,
|
|
1798
1783
|
};
|
|
1799
1784
|
};
|
|
1800
1785
|
const deserializeAws_json1_0CreateStateMachineOutput = (output, context) => {
|
|
1801
1786
|
return {
|
|
1802
|
-
creationDate: output.creationDate
|
|
1787
|
+
creationDate: output.creationDate != null
|
|
1803
1788
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1804
1789
|
: undefined,
|
|
1805
1790
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
@@ -1814,7 +1799,7 @@ const deserializeAws_json1_0DeleteStateMachineOutput = (output, context) => {
|
|
|
1814
1799
|
const deserializeAws_json1_0DescribeActivityOutput = (output, context) => {
|
|
1815
1800
|
return {
|
|
1816
1801
|
activityArn: (0, smithy_client_1.expectString)(output.activityArn),
|
|
1817
|
-
creationDate: output.creationDate
|
|
1802
|
+
creationDate: output.creationDate != null
|
|
1818
1803
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1819
1804
|
: undefined,
|
|
1820
1805
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1824,56 +1809,50 @@ const deserializeAws_json1_0DescribeExecutionOutput = (output, context) => {
|
|
|
1824
1809
|
return {
|
|
1825
1810
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1826
1811
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1827
|
-
inputDetails: output.inputDetails
|
|
1812
|
+
inputDetails: output.inputDetails != null
|
|
1828
1813
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
1829
1814
|
: undefined,
|
|
1830
1815
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1831
1816
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1832
|
-
outputDetails: output.outputDetails
|
|
1817
|
+
outputDetails: output.outputDetails != null
|
|
1833
1818
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
1834
1819
|
: undefined,
|
|
1835
|
-
startDate: output.startDate
|
|
1836
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
1837
|
-
: undefined,
|
|
1820
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1838
1821
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1839
1822
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1840
|
-
stopDate: output.stopDate
|
|
1841
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
1842
|
-
: undefined,
|
|
1823
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
1843
1824
|
traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
|
|
1844
1825
|
};
|
|
1845
1826
|
};
|
|
1846
1827
|
const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (output, context) => {
|
|
1847
1828
|
return {
|
|
1848
1829
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1849
|
-
loggingConfiguration: output.loggingConfiguration
|
|
1830
|
+
loggingConfiguration: output.loggingConfiguration != null
|
|
1850
1831
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1851
1832
|
: undefined,
|
|
1852
1833
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1853
1834
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1854
1835
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1855
|
-
tracingConfiguration: output.tracingConfiguration
|
|
1836
|
+
tracingConfiguration: output.tracingConfiguration != null
|
|
1856
1837
|
? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
|
|
1857
1838
|
: undefined,
|
|
1858
|
-
updateDate: output.updateDate
|
|
1859
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate)))
|
|
1860
|
-
: undefined,
|
|
1839
|
+
updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
|
|
1861
1840
|
};
|
|
1862
1841
|
};
|
|
1863
1842
|
const deserializeAws_json1_0DescribeStateMachineOutput = (output, context) => {
|
|
1864
1843
|
return {
|
|
1865
|
-
creationDate: output.creationDate
|
|
1844
|
+
creationDate: output.creationDate != null
|
|
1866
1845
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
1867
1846
|
: undefined,
|
|
1868
1847
|
definition: (0, smithy_client_1.expectString)(output.definition),
|
|
1869
|
-
loggingConfiguration: output.loggingConfiguration
|
|
1848
|
+
loggingConfiguration: output.loggingConfiguration != null
|
|
1870
1849
|
? deserializeAws_json1_0LoggingConfiguration(output.loggingConfiguration, context)
|
|
1871
1850
|
: undefined,
|
|
1872
1851
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1873
1852
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1874
1853
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1875
1854
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1876
|
-
tracingConfiguration: output.tracingConfiguration
|
|
1855
|
+
tracingConfiguration: output.tracingConfiguration != null
|
|
1877
1856
|
? deserializeAws_json1_0TracingConfiguration(output.tracingConfiguration, context)
|
|
1878
1857
|
: undefined,
|
|
1879
1858
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -1921,20 +1900,16 @@ const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
|
1921
1900
|
return {
|
|
1922
1901
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
1923
1902
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1924
|
-
startDate: output.startDate
|
|
1925
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
1926
|
-
: undefined,
|
|
1903
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
1927
1904
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
1928
1905
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1929
|
-
stopDate: output.stopDate
|
|
1930
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
1931
|
-
: undefined,
|
|
1906
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
1932
1907
|
};
|
|
1933
1908
|
};
|
|
1934
1909
|
const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) => {
|
|
1935
1910
|
return {
|
|
1936
1911
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
1937
|
-
inputDetails: output.inputDetails
|
|
1912
|
+
inputDetails: output.inputDetails != null
|
|
1938
1913
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
1939
1914
|
: undefined,
|
|
1940
1915
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
@@ -1943,7 +1918,7 @@ const deserializeAws_json1_0ExecutionStartedEventDetails = (output, context) =>
|
|
|
1943
1918
|
const deserializeAws_json1_0ExecutionSucceededEventDetails = (output, context) => {
|
|
1944
1919
|
return {
|
|
1945
1920
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
1946
|
-
outputDetails: output.outputDetails
|
|
1921
|
+
outputDetails: output.outputDetails != null
|
|
1947
1922
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
1948
1923
|
: undefined,
|
|
1949
1924
|
};
|
|
@@ -1962,117 +1937,111 @@ const deserializeAws_json1_0GetActivityTaskOutput = (output, context) => {
|
|
|
1962
1937
|
};
|
|
1963
1938
|
const deserializeAws_json1_0GetExecutionHistoryOutput = (output, context) => {
|
|
1964
1939
|
return {
|
|
1965
|
-
events: output.events
|
|
1966
|
-
? deserializeAws_json1_0HistoryEventList(output.events, context)
|
|
1967
|
-
: undefined,
|
|
1940
|
+
events: output.events != null ? deserializeAws_json1_0HistoryEventList(output.events, context) : undefined,
|
|
1968
1941
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1969
1942
|
};
|
|
1970
1943
|
};
|
|
1971
1944
|
const deserializeAws_json1_0HistoryEvent = (output, context) => {
|
|
1972
1945
|
return {
|
|
1973
|
-
activityFailedEventDetails: output.activityFailedEventDetails
|
|
1946
|
+
activityFailedEventDetails: output.activityFailedEventDetails != null
|
|
1974
1947
|
? deserializeAws_json1_0ActivityFailedEventDetails(output.activityFailedEventDetails, context)
|
|
1975
1948
|
: undefined,
|
|
1976
|
-
activityScheduleFailedEventDetails: output.activityScheduleFailedEventDetails
|
|
1949
|
+
activityScheduleFailedEventDetails: output.activityScheduleFailedEventDetails != null
|
|
1977
1950
|
? deserializeAws_json1_0ActivityScheduleFailedEventDetails(output.activityScheduleFailedEventDetails, context)
|
|
1978
1951
|
: undefined,
|
|
1979
|
-
activityScheduledEventDetails: output.activityScheduledEventDetails
|
|
1952
|
+
activityScheduledEventDetails: output.activityScheduledEventDetails != null
|
|
1980
1953
|
? deserializeAws_json1_0ActivityScheduledEventDetails(output.activityScheduledEventDetails, context)
|
|
1981
1954
|
: undefined,
|
|
1982
|
-
activityStartedEventDetails: output.activityStartedEventDetails
|
|
1955
|
+
activityStartedEventDetails: output.activityStartedEventDetails != null
|
|
1983
1956
|
? deserializeAws_json1_0ActivityStartedEventDetails(output.activityStartedEventDetails, context)
|
|
1984
1957
|
: undefined,
|
|
1985
|
-
activitySucceededEventDetails: output.activitySucceededEventDetails
|
|
1958
|
+
activitySucceededEventDetails: output.activitySucceededEventDetails != null
|
|
1986
1959
|
? deserializeAws_json1_0ActivitySucceededEventDetails(output.activitySucceededEventDetails, context)
|
|
1987
1960
|
: undefined,
|
|
1988
|
-
activityTimedOutEventDetails: output.activityTimedOutEventDetails
|
|
1961
|
+
activityTimedOutEventDetails: output.activityTimedOutEventDetails != null
|
|
1989
1962
|
? deserializeAws_json1_0ActivityTimedOutEventDetails(output.activityTimedOutEventDetails, context)
|
|
1990
1963
|
: undefined,
|
|
1991
|
-
executionAbortedEventDetails: output.executionAbortedEventDetails
|
|
1964
|
+
executionAbortedEventDetails: output.executionAbortedEventDetails != null
|
|
1992
1965
|
? deserializeAws_json1_0ExecutionAbortedEventDetails(output.executionAbortedEventDetails, context)
|
|
1993
1966
|
: undefined,
|
|
1994
|
-
executionFailedEventDetails: output.executionFailedEventDetails
|
|
1967
|
+
executionFailedEventDetails: output.executionFailedEventDetails != null
|
|
1995
1968
|
? deserializeAws_json1_0ExecutionFailedEventDetails(output.executionFailedEventDetails, context)
|
|
1996
1969
|
: undefined,
|
|
1997
|
-
executionStartedEventDetails: output.executionStartedEventDetails
|
|
1970
|
+
executionStartedEventDetails: output.executionStartedEventDetails != null
|
|
1998
1971
|
? deserializeAws_json1_0ExecutionStartedEventDetails(output.executionStartedEventDetails, context)
|
|
1999
1972
|
: undefined,
|
|
2000
|
-
executionSucceededEventDetails: output.executionSucceededEventDetails
|
|
1973
|
+
executionSucceededEventDetails: output.executionSucceededEventDetails != null
|
|
2001
1974
|
? deserializeAws_json1_0ExecutionSucceededEventDetails(output.executionSucceededEventDetails, context)
|
|
2002
1975
|
: undefined,
|
|
2003
|
-
executionTimedOutEventDetails: output.executionTimedOutEventDetails
|
|
1976
|
+
executionTimedOutEventDetails: output.executionTimedOutEventDetails != null
|
|
2004
1977
|
? deserializeAws_json1_0ExecutionTimedOutEventDetails(output.executionTimedOutEventDetails, context)
|
|
2005
1978
|
: undefined,
|
|
2006
1979
|
id: (0, smithy_client_1.expectLong)(output.id),
|
|
2007
|
-
lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails
|
|
1980
|
+
lambdaFunctionFailedEventDetails: output.lambdaFunctionFailedEventDetails != null
|
|
2008
1981
|
? deserializeAws_json1_0LambdaFunctionFailedEventDetails(output.lambdaFunctionFailedEventDetails, context)
|
|
2009
1982
|
: undefined,
|
|
2010
|
-
lambdaFunctionScheduleFailedEventDetails: output.lambdaFunctionScheduleFailedEventDetails
|
|
2011
|
-
output.lambdaFunctionScheduleFailedEventDetails !== null
|
|
1983
|
+
lambdaFunctionScheduleFailedEventDetails: output.lambdaFunctionScheduleFailedEventDetails != null
|
|
2012
1984
|
? deserializeAws_json1_0LambdaFunctionScheduleFailedEventDetails(output.lambdaFunctionScheduleFailedEventDetails, context)
|
|
2013
1985
|
: undefined,
|
|
2014
|
-
lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails
|
|
1986
|
+
lambdaFunctionScheduledEventDetails: output.lambdaFunctionScheduledEventDetails != null
|
|
2015
1987
|
? deserializeAws_json1_0LambdaFunctionScheduledEventDetails(output.lambdaFunctionScheduledEventDetails, context)
|
|
2016
1988
|
: undefined,
|
|
2017
|
-
lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails
|
|
2018
|
-
output.lambdaFunctionStartFailedEventDetails !== null
|
|
1989
|
+
lambdaFunctionStartFailedEventDetails: output.lambdaFunctionStartFailedEventDetails != null
|
|
2019
1990
|
? deserializeAws_json1_0LambdaFunctionStartFailedEventDetails(output.lambdaFunctionStartFailedEventDetails, context)
|
|
2020
1991
|
: undefined,
|
|
2021
|
-
lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails
|
|
1992
|
+
lambdaFunctionSucceededEventDetails: output.lambdaFunctionSucceededEventDetails != null
|
|
2022
1993
|
? deserializeAws_json1_0LambdaFunctionSucceededEventDetails(output.lambdaFunctionSucceededEventDetails, context)
|
|
2023
1994
|
: undefined,
|
|
2024
|
-
lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails
|
|
1995
|
+
lambdaFunctionTimedOutEventDetails: output.lambdaFunctionTimedOutEventDetails != null
|
|
2025
1996
|
? deserializeAws_json1_0LambdaFunctionTimedOutEventDetails(output.lambdaFunctionTimedOutEventDetails, context)
|
|
2026
1997
|
: undefined,
|
|
2027
|
-
mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails
|
|
1998
|
+
mapIterationAbortedEventDetails: output.mapIterationAbortedEventDetails != null
|
|
2028
1999
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationAbortedEventDetails, context)
|
|
2029
2000
|
: undefined,
|
|
2030
|
-
mapIterationFailedEventDetails: output.mapIterationFailedEventDetails
|
|
2001
|
+
mapIterationFailedEventDetails: output.mapIterationFailedEventDetails != null
|
|
2031
2002
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationFailedEventDetails, context)
|
|
2032
2003
|
: undefined,
|
|
2033
|
-
mapIterationStartedEventDetails: output.mapIterationStartedEventDetails
|
|
2004
|
+
mapIterationStartedEventDetails: output.mapIterationStartedEventDetails != null
|
|
2034
2005
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationStartedEventDetails, context)
|
|
2035
2006
|
: undefined,
|
|
2036
|
-
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails
|
|
2007
|
+
mapIterationSucceededEventDetails: output.mapIterationSucceededEventDetails != null
|
|
2037
2008
|
? deserializeAws_json1_0MapIterationEventDetails(output.mapIterationSucceededEventDetails, context)
|
|
2038
2009
|
: undefined,
|
|
2039
|
-
mapStateStartedEventDetails: output.mapStateStartedEventDetails
|
|
2010
|
+
mapStateStartedEventDetails: output.mapStateStartedEventDetails != null
|
|
2040
2011
|
? deserializeAws_json1_0MapStateStartedEventDetails(output.mapStateStartedEventDetails, context)
|
|
2041
2012
|
: undefined,
|
|
2042
2013
|
previousEventId: (0, smithy_client_1.expectLong)(output.previousEventId),
|
|
2043
|
-
stateEnteredEventDetails: output.stateEnteredEventDetails
|
|
2014
|
+
stateEnteredEventDetails: output.stateEnteredEventDetails != null
|
|
2044
2015
|
? deserializeAws_json1_0StateEnteredEventDetails(output.stateEnteredEventDetails, context)
|
|
2045
2016
|
: undefined,
|
|
2046
|
-
stateExitedEventDetails: output.stateExitedEventDetails
|
|
2017
|
+
stateExitedEventDetails: output.stateExitedEventDetails != null
|
|
2047
2018
|
? deserializeAws_json1_0StateExitedEventDetails(output.stateExitedEventDetails, context)
|
|
2048
2019
|
: undefined,
|
|
2049
|
-
taskFailedEventDetails: output.taskFailedEventDetails
|
|
2020
|
+
taskFailedEventDetails: output.taskFailedEventDetails != null
|
|
2050
2021
|
? deserializeAws_json1_0TaskFailedEventDetails(output.taskFailedEventDetails, context)
|
|
2051
2022
|
: undefined,
|
|
2052
|
-
taskScheduledEventDetails: output.taskScheduledEventDetails
|
|
2023
|
+
taskScheduledEventDetails: output.taskScheduledEventDetails != null
|
|
2053
2024
|
? deserializeAws_json1_0TaskScheduledEventDetails(output.taskScheduledEventDetails, context)
|
|
2054
2025
|
: undefined,
|
|
2055
|
-
taskStartFailedEventDetails: output.taskStartFailedEventDetails
|
|
2026
|
+
taskStartFailedEventDetails: output.taskStartFailedEventDetails != null
|
|
2056
2027
|
? deserializeAws_json1_0TaskStartFailedEventDetails(output.taskStartFailedEventDetails, context)
|
|
2057
2028
|
: undefined,
|
|
2058
|
-
taskStartedEventDetails: output.taskStartedEventDetails
|
|
2029
|
+
taskStartedEventDetails: output.taskStartedEventDetails != null
|
|
2059
2030
|
? deserializeAws_json1_0TaskStartedEventDetails(output.taskStartedEventDetails, context)
|
|
2060
2031
|
: undefined,
|
|
2061
|
-
taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails
|
|
2032
|
+
taskSubmitFailedEventDetails: output.taskSubmitFailedEventDetails != null
|
|
2062
2033
|
? deserializeAws_json1_0TaskSubmitFailedEventDetails(output.taskSubmitFailedEventDetails, context)
|
|
2063
2034
|
: undefined,
|
|
2064
|
-
taskSubmittedEventDetails: output.taskSubmittedEventDetails
|
|
2035
|
+
taskSubmittedEventDetails: output.taskSubmittedEventDetails != null
|
|
2065
2036
|
? deserializeAws_json1_0TaskSubmittedEventDetails(output.taskSubmittedEventDetails, context)
|
|
2066
2037
|
: undefined,
|
|
2067
|
-
taskSucceededEventDetails: output.taskSucceededEventDetails
|
|
2038
|
+
taskSucceededEventDetails: output.taskSucceededEventDetails != null
|
|
2068
2039
|
? deserializeAws_json1_0TaskSucceededEventDetails(output.taskSucceededEventDetails, context)
|
|
2069
2040
|
: undefined,
|
|
2070
|
-
taskTimedOutEventDetails: output.taskTimedOutEventDetails
|
|
2041
|
+
taskTimedOutEventDetails: output.taskTimedOutEventDetails != null
|
|
2071
2042
|
? deserializeAws_json1_0TaskTimedOutEventDetails(output.taskTimedOutEventDetails, context)
|
|
2072
2043
|
: undefined,
|
|
2073
|
-
timestamp: output.timestamp
|
|
2074
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
2075
|
-
: undefined,
|
|
2044
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
2076
2045
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2077
2046
|
};
|
|
2078
2047
|
};
|
|
@@ -2141,7 +2110,7 @@ const deserializeAws_json1_0LambdaFunctionFailedEventDetails = (output, context)
|
|
|
2141
2110
|
const deserializeAws_json1_0LambdaFunctionScheduledEventDetails = (output, context) => {
|
|
2142
2111
|
return {
|
|
2143
2112
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2144
|
-
inputDetails: output.inputDetails
|
|
2113
|
+
inputDetails: output.inputDetails != null
|
|
2145
2114
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2146
2115
|
: undefined,
|
|
2147
2116
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2163,7 +2132,7 @@ const deserializeAws_json1_0LambdaFunctionStartFailedEventDetails = (output, con
|
|
|
2163
2132
|
const deserializeAws_json1_0LambdaFunctionSucceededEventDetails = (output, context) => {
|
|
2164
2133
|
return {
|
|
2165
2134
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2166
|
-
outputDetails: output.outputDetails
|
|
2135
|
+
outputDetails: output.outputDetails != null
|
|
2167
2136
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2168
2137
|
: undefined,
|
|
2169
2138
|
};
|
|
@@ -2176,38 +2145,30 @@ const deserializeAws_json1_0LambdaFunctionTimedOutEventDetails = (output, contex
|
|
|
2176
2145
|
};
|
|
2177
2146
|
const deserializeAws_json1_0ListActivitiesOutput = (output, context) => {
|
|
2178
2147
|
return {
|
|
2179
|
-
activities: output.activities
|
|
2180
|
-
? deserializeAws_json1_0ActivityList(output.activities, context)
|
|
2181
|
-
: undefined,
|
|
2148
|
+
activities: output.activities != null ? deserializeAws_json1_0ActivityList(output.activities, context) : undefined,
|
|
2182
2149
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2183
2150
|
};
|
|
2184
2151
|
};
|
|
2185
2152
|
const deserializeAws_json1_0ListExecutionsOutput = (output, context) => {
|
|
2186
2153
|
return {
|
|
2187
|
-
executions: output.executions
|
|
2188
|
-
? deserializeAws_json1_0ExecutionList(output.executions, context)
|
|
2189
|
-
: undefined,
|
|
2154
|
+
executions: output.executions != null ? deserializeAws_json1_0ExecutionList(output.executions, context) : undefined,
|
|
2190
2155
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2191
2156
|
};
|
|
2192
2157
|
};
|
|
2193
2158
|
const deserializeAws_json1_0ListStateMachinesOutput = (output, context) => {
|
|
2194
2159
|
return {
|
|
2195
2160
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2196
|
-
stateMachines: output.stateMachines
|
|
2197
|
-
? deserializeAws_json1_0StateMachineList(output.stateMachines, context)
|
|
2198
|
-
: undefined,
|
|
2161
|
+
stateMachines: output.stateMachines != null ? deserializeAws_json1_0StateMachineList(output.stateMachines, context) : undefined,
|
|
2199
2162
|
};
|
|
2200
2163
|
};
|
|
2201
2164
|
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
2202
2165
|
return {
|
|
2203
|
-
tags: output.tags
|
|
2204
|
-
? deserializeAws_json1_0TagList(output.tags, context)
|
|
2205
|
-
: undefined,
|
|
2166
|
+
tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
|
|
2206
2167
|
};
|
|
2207
2168
|
};
|
|
2208
2169
|
const deserializeAws_json1_0LogDestination = (output, context) => {
|
|
2209
2170
|
return {
|
|
2210
|
-
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup
|
|
2171
|
+
cloudWatchLogsLogGroup: output.cloudWatchLogsLogGroup != null
|
|
2211
2172
|
? deserializeAws_json1_0CloudWatchLogsLogGroup(output.cloudWatchLogsLogGroup, context)
|
|
2212
2173
|
: undefined,
|
|
2213
2174
|
};
|
|
@@ -2225,9 +2186,7 @@ const deserializeAws_json1_0LogDestinationList = (output, context) => {
|
|
|
2225
2186
|
};
|
|
2226
2187
|
const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
|
|
2227
2188
|
return {
|
|
2228
|
-
destinations: output.destinations
|
|
2229
|
-
? deserializeAws_json1_0LogDestinationList(output.destinations, context)
|
|
2230
|
-
: undefined,
|
|
2189
|
+
destinations: output.destinations != null ? deserializeAws_json1_0LogDestinationList(output.destinations, context) : undefined,
|
|
2231
2190
|
includeExecutionData: (0, smithy_client_1.expectBoolean)(output.includeExecutionData),
|
|
2232
2191
|
level: (0, smithy_client_1.expectString)(output.level),
|
|
2233
2192
|
};
|
|
@@ -2266,43 +2225,35 @@ const deserializeAws_json1_0SendTaskSuccessOutput = (output, context) => {
|
|
|
2266
2225
|
const deserializeAws_json1_0StartExecutionOutput = (output, context) => {
|
|
2267
2226
|
return {
|
|
2268
2227
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2269
|
-
startDate: output.startDate
|
|
2270
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
2271
|
-
: undefined,
|
|
2228
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
2272
2229
|
};
|
|
2273
2230
|
};
|
|
2274
2231
|
const deserializeAws_json1_0StartSyncExecutionOutput = (output, context) => {
|
|
2275
2232
|
return {
|
|
2276
|
-
billingDetails: output.billingDetails
|
|
2277
|
-
? deserializeAws_json1_0BillingDetails(output.billingDetails, context)
|
|
2278
|
-
: undefined,
|
|
2233
|
+
billingDetails: output.billingDetails != null ? deserializeAws_json1_0BillingDetails(output.billingDetails, context) : undefined,
|
|
2279
2234
|
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2280
2235
|
error: (0, smithy_client_1.expectString)(output.error),
|
|
2281
2236
|
executionArn: (0, smithy_client_1.expectString)(output.executionArn),
|
|
2282
2237
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2283
|
-
inputDetails: output.inputDetails
|
|
2238
|
+
inputDetails: output.inputDetails != null
|
|
2284
2239
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.inputDetails, context)
|
|
2285
2240
|
: undefined,
|
|
2286
2241
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2287
2242
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2288
|
-
outputDetails: output.outputDetails
|
|
2243
|
+
outputDetails: output.outputDetails != null
|
|
2289
2244
|
? deserializeAws_json1_0CloudWatchEventsExecutionDataDetails(output.outputDetails, context)
|
|
2290
2245
|
: undefined,
|
|
2291
|
-
startDate: output.startDate
|
|
2292
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate)))
|
|
2293
|
-
: undefined,
|
|
2246
|
+
startDate: output.startDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startDate))) : undefined,
|
|
2294
2247
|
stateMachineArn: (0, smithy_client_1.expectString)(output.stateMachineArn),
|
|
2295
2248
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2296
|
-
stopDate: output.stopDate
|
|
2297
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
2298
|
-
: undefined,
|
|
2249
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
2299
2250
|
traceHeader: (0, smithy_client_1.expectString)(output.traceHeader),
|
|
2300
2251
|
};
|
|
2301
2252
|
};
|
|
2302
2253
|
const deserializeAws_json1_0StateEnteredEventDetails = (output, context) => {
|
|
2303
2254
|
return {
|
|
2304
2255
|
input: (0, smithy_client_1.expectString)(output.input),
|
|
2305
|
-
inputDetails: output.inputDetails
|
|
2256
|
+
inputDetails: output.inputDetails != null
|
|
2306
2257
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.inputDetails, context)
|
|
2307
2258
|
: undefined,
|
|
2308
2259
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2312,7 +2263,7 @@ const deserializeAws_json1_0StateExitedEventDetails = (output, context) => {
|
|
|
2312
2263
|
return {
|
|
2313
2264
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2314
2265
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2315
|
-
outputDetails: output.outputDetails
|
|
2266
|
+
outputDetails: output.outputDetails != null
|
|
2316
2267
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2317
2268
|
: undefined,
|
|
2318
2269
|
};
|
|
@@ -2350,7 +2301,7 @@ const deserializeAws_json1_0StateMachineList = (output, context) => {
|
|
|
2350
2301
|
};
|
|
2351
2302
|
const deserializeAws_json1_0StateMachineListItem = (output, context) => {
|
|
2352
2303
|
return {
|
|
2353
|
-
creationDate: output.creationDate
|
|
2304
|
+
creationDate: output.creationDate != null
|
|
2354
2305
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
2355
2306
|
: undefined,
|
|
2356
2307
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -2365,9 +2316,7 @@ const deserializeAws_json1_0StateMachineTypeNotSupported = (output, context) =>
|
|
|
2365
2316
|
};
|
|
2366
2317
|
const deserializeAws_json1_0StopExecutionOutput = (output, context) => {
|
|
2367
2318
|
return {
|
|
2368
|
-
stopDate: output.stopDate
|
|
2369
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate)))
|
|
2370
|
-
: undefined,
|
|
2319
|
+
stopDate: output.stopDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopDate))) : undefined,
|
|
2371
2320
|
};
|
|
2372
2321
|
};
|
|
2373
2322
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
@@ -2438,7 +2387,7 @@ const deserializeAws_json1_0TaskSubmitFailedEventDetails = (output, context) =>
|
|
|
2438
2387
|
const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
|
|
2439
2388
|
return {
|
|
2440
2389
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2441
|
-
outputDetails: output.outputDetails
|
|
2390
|
+
outputDetails: output.outputDetails != null
|
|
2442
2391
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2443
2392
|
: undefined,
|
|
2444
2393
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2448,7 +2397,7 @@ const deserializeAws_json1_0TaskSubmittedEventDetails = (output, context) => {
|
|
|
2448
2397
|
const deserializeAws_json1_0TaskSucceededEventDetails = (output, context) => {
|
|
2449
2398
|
return {
|
|
2450
2399
|
output: (0, smithy_client_1.expectString)(output.output),
|
|
2451
|
-
outputDetails: output.outputDetails
|
|
2400
|
+
outputDetails: output.outputDetails != null
|
|
2452
2401
|
? deserializeAws_json1_0HistoryEventExecutionDataDetails(output.outputDetails, context)
|
|
2453
2402
|
: undefined,
|
|
2454
2403
|
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
@@ -2484,9 +2433,7 @@ const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
|
2484
2433
|
};
|
|
2485
2434
|
const deserializeAws_json1_0UpdateStateMachineOutput = (output, context) => {
|
|
2486
2435
|
return {
|
|
2487
|
-
updateDate: output.updateDate
|
|
2488
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate)))
|
|
2489
|
-
: undefined,
|
|
2436
|
+
updateDate: output.updateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDate))) : undefined,
|
|
2490
2437
|
};
|
|
2491
2438
|
};
|
|
2492
2439
|
const deserializeMetadata = (output) => {
|
|
@@ -2533,6 +2480,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2533
2480
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2534
2481
|
const sanitizeErrorCode = (rawValue) => {
|
|
2535
2482
|
let cleanValue = rawValue;
|
|
2483
|
+
if (typeof cleanValue === "number") {
|
|
2484
|
+
cleanValue = cleanValue.toString();
|
|
2485
|
+
}
|
|
2536
2486
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2537
2487
|
cleanValue = cleanValue.split(":")[0];
|
|
2538
2488
|
}
|