@aws-sdk/client-grafana 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +75 -137
- package/dist-es/protocols/Aws_restJson1.js +49 -111
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-grafana
|
|
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
|
|
|
@@ -52,36 +52,27 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
52
52
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
|
|
53
53
|
let body;
|
|
54
54
|
body = JSON.stringify({
|
|
55
|
-
...(input.accountAccessType
|
|
56
|
-
|
|
57
|
-
...(input.authenticationProviders !== undefined &&
|
|
58
|
-
input.authenticationProviders !== null && {
|
|
55
|
+
...(input.accountAccessType != null && { accountAccessType: input.accountAccessType }),
|
|
56
|
+
...(input.authenticationProviders != null && {
|
|
59
57
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
60
58
|
}),
|
|
61
59
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
62
|
-
...(input.organizationRoleName
|
|
63
|
-
|
|
64
|
-
...(input.
|
|
65
|
-
|
|
66
|
-
...(input.
|
|
67
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
68
|
-
...(input.workspaceDataSources !== undefined &&
|
|
69
|
-
input.workspaceDataSources !== null && {
|
|
60
|
+
...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
|
|
61
|
+
...(input.permissionType != null && { permissionType: input.permissionType }),
|
|
62
|
+
...(input.stackSetName != null && { stackSetName: input.stackSetName }),
|
|
63
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
64
|
+
...(input.workspaceDataSources != null && {
|
|
70
65
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
71
66
|
}),
|
|
72
|
-
...(input.workspaceDescription
|
|
73
|
-
|
|
74
|
-
...(input.
|
|
75
|
-
...(input.workspaceNotificationDestinations !== undefined &&
|
|
76
|
-
input.workspaceNotificationDestinations !== null && {
|
|
67
|
+
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
68
|
+
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
69
|
+
...(input.workspaceNotificationDestinations != null && {
|
|
77
70
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
78
71
|
}),
|
|
79
|
-
...(input.workspaceOrganizationalUnits
|
|
80
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
72
|
+
...(input.workspaceOrganizationalUnits != null && {
|
|
81
73
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
82
74
|
}),
|
|
83
|
-
...(input.workspaceRoleArn
|
|
84
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
75
|
+
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
85
76
|
});
|
|
86
77
|
return new protocol_http_1.HttpRequest({
|
|
87
78
|
protocol,
|
|
@@ -112,9 +103,9 @@ const serializeAws_restJson1CreateWorkspaceApiKeyCommand = async (input, context
|
|
|
112
103
|
}
|
|
113
104
|
let body;
|
|
114
105
|
body = JSON.stringify({
|
|
115
|
-
...(input.keyName
|
|
116
|
-
...(input.keyRole
|
|
117
|
-
...(input.secondsToLive
|
|
106
|
+
...(input.keyName != null && { keyName: input.keyName }),
|
|
107
|
+
...(input.keyRole != null && { keyRole: input.keyRole }),
|
|
108
|
+
...(input.secondsToLive != null && { secondsToLive: input.secondsToLive }),
|
|
118
109
|
});
|
|
119
110
|
return new protocol_http_1.HttpRequest({
|
|
120
111
|
protocol,
|
|
@@ -378,7 +369,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
378
369
|
}
|
|
379
370
|
let body;
|
|
380
371
|
body = JSON.stringify({
|
|
381
|
-
...(input.tags
|
|
372
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
382
373
|
});
|
|
383
374
|
return new protocol_http_1.HttpRequest({
|
|
384
375
|
protocol,
|
|
@@ -439,8 +430,7 @@ const serializeAws_restJson1UpdatePermissionsCommand = async (input, context) =>
|
|
|
439
430
|
}
|
|
440
431
|
let body;
|
|
441
432
|
body = JSON.stringify({
|
|
442
|
-
...(input.updateInstructionBatch
|
|
443
|
-
input.updateInstructionBatch !== null && {
|
|
433
|
+
...(input.updateInstructionBatch != null && {
|
|
444
434
|
updateInstructionBatch: serializeAws_restJson1UpdateInstructionBatch(input.updateInstructionBatch, context),
|
|
445
435
|
}),
|
|
446
436
|
});
|
|
@@ -473,30 +463,22 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
|
|
|
473
463
|
}
|
|
474
464
|
let body;
|
|
475
465
|
body = JSON.stringify({
|
|
476
|
-
...(input.accountAccessType
|
|
477
|
-
|
|
478
|
-
...(input.
|
|
479
|
-
|
|
480
|
-
...(input.
|
|
481
|
-
input.permissionType !== null && { permissionType: input.permissionType }),
|
|
482
|
-
...(input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName }),
|
|
483
|
-
...(input.workspaceDataSources !== undefined &&
|
|
484
|
-
input.workspaceDataSources !== null && {
|
|
466
|
+
...(input.accountAccessType != null && { accountAccessType: input.accountAccessType }),
|
|
467
|
+
...(input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName }),
|
|
468
|
+
...(input.permissionType != null && { permissionType: input.permissionType }),
|
|
469
|
+
...(input.stackSetName != null && { stackSetName: input.stackSetName }),
|
|
470
|
+
...(input.workspaceDataSources != null && {
|
|
485
471
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
486
472
|
}),
|
|
487
|
-
...(input.workspaceDescription
|
|
488
|
-
|
|
489
|
-
...(input.
|
|
490
|
-
...(input.workspaceNotificationDestinations !== undefined &&
|
|
491
|
-
input.workspaceNotificationDestinations !== null && {
|
|
473
|
+
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
474
|
+
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
475
|
+
...(input.workspaceNotificationDestinations != null && {
|
|
492
476
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
493
477
|
}),
|
|
494
|
-
...(input.workspaceOrganizationalUnits
|
|
495
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
478
|
+
...(input.workspaceOrganizationalUnits != null && {
|
|
496
479
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
497
480
|
}),
|
|
498
|
-
...(input.workspaceRoleArn
|
|
499
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
481
|
+
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
500
482
|
});
|
|
501
483
|
return new protocol_http_1.HttpRequest({
|
|
502
484
|
protocol,
|
|
@@ -527,12 +509,10 @@ const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = async (input,
|
|
|
527
509
|
}
|
|
528
510
|
let body;
|
|
529
511
|
body = JSON.stringify({
|
|
530
|
-
...(input.authenticationProviders
|
|
531
|
-
input.authenticationProviders !== null && {
|
|
512
|
+
...(input.authenticationProviders != null && {
|
|
532
513
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
533
514
|
}),
|
|
534
|
-
...(input.samlConfiguration
|
|
535
|
-
input.samlConfiguration !== null && {
|
|
515
|
+
...(input.samlConfiguration != null && {
|
|
536
516
|
samlConfiguration: serializeAws_restJson1SamlConfiguration(input.samlConfiguration, context),
|
|
537
517
|
}),
|
|
538
518
|
});
|
|
@@ -1512,12 +1492,12 @@ const serializeAws_restJson1AllowedOrganizations = (input, context) => {
|
|
|
1512
1492
|
};
|
|
1513
1493
|
const serializeAws_restJson1AssertionAttributes = (input, context) => {
|
|
1514
1494
|
return {
|
|
1515
|
-
...(input.email
|
|
1516
|
-
...(input.groups
|
|
1517
|
-
...(input.login
|
|
1518
|
-
...(input.name
|
|
1519
|
-
...(input.org
|
|
1520
|
-
...(input.role
|
|
1495
|
+
...(input.email != null && { email: input.email }),
|
|
1496
|
+
...(input.groups != null && { groups: input.groups }),
|
|
1497
|
+
...(input.login != null && { login: input.login }),
|
|
1498
|
+
...(input.name != null && { name: input.name }),
|
|
1499
|
+
...(input.org != null && { org: input.org }),
|
|
1500
|
+
...(input.role != null && { role: input.role }),
|
|
1521
1501
|
};
|
|
1522
1502
|
};
|
|
1523
1503
|
const serializeAws_restJson1AuthenticationProviders = (input, context) => {
|
|
@@ -1579,28 +1559,21 @@ const serializeAws_restJson1RoleValueList = (input, context) => {
|
|
|
1579
1559
|
};
|
|
1580
1560
|
const serializeAws_restJson1RoleValues = (input, context) => {
|
|
1581
1561
|
return {
|
|
1582
|
-
...(input.admin
|
|
1583
|
-
|
|
1584
|
-
...(input.editor !== undefined &&
|
|
1585
|
-
input.editor !== null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }),
|
|
1562
|
+
...(input.admin != null && { admin: serializeAws_restJson1RoleValueList(input.admin, context) }),
|
|
1563
|
+
...(input.editor != null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }),
|
|
1586
1564
|
};
|
|
1587
1565
|
};
|
|
1588
1566
|
const serializeAws_restJson1SamlConfiguration = (input, context) => {
|
|
1589
1567
|
return {
|
|
1590
|
-
...(input.allowedOrganizations
|
|
1591
|
-
input.allowedOrganizations !== null && {
|
|
1568
|
+
...(input.allowedOrganizations != null && {
|
|
1592
1569
|
allowedOrganizations: serializeAws_restJson1AllowedOrganizations(input.allowedOrganizations, context),
|
|
1593
1570
|
}),
|
|
1594
|
-
...(input.assertionAttributes
|
|
1595
|
-
input.assertionAttributes !== null && {
|
|
1571
|
+
...(input.assertionAttributes != null && {
|
|
1596
1572
|
assertionAttributes: serializeAws_restJson1AssertionAttributes(input.assertionAttributes, context),
|
|
1597
1573
|
}),
|
|
1598
|
-
...(input.idpMetadata
|
|
1599
|
-
|
|
1600
|
-
...(input.
|
|
1601
|
-
input.loginValidityDuration !== null && { loginValidityDuration: input.loginValidityDuration }),
|
|
1602
|
-
...(input.roleValues !== undefined &&
|
|
1603
|
-
input.roleValues !== null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }),
|
|
1574
|
+
...(input.idpMetadata != null && { idpMetadata: serializeAws_restJson1IdpMetadata(input.idpMetadata, context) }),
|
|
1575
|
+
...(input.loginValidityDuration != null && { loginValidityDuration: input.loginValidityDuration }),
|
|
1576
|
+
...(input.roleValues != null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }),
|
|
1604
1577
|
};
|
|
1605
1578
|
};
|
|
1606
1579
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -1616,10 +1589,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1616
1589
|
};
|
|
1617
1590
|
const serializeAws_restJson1UpdateInstruction = (input, context) => {
|
|
1618
1591
|
return {
|
|
1619
|
-
...(input.action
|
|
1620
|
-
...(input.role
|
|
1621
|
-
...(input.users
|
|
1622
|
-
input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) }),
|
|
1592
|
+
...(input.action != null && { action: input.action }),
|
|
1593
|
+
...(input.role != null && { role: input.role }),
|
|
1594
|
+
...(input.users != null && { users: serializeAws_restJson1UserList(input.users, context) }),
|
|
1623
1595
|
};
|
|
1624
1596
|
};
|
|
1625
1597
|
const serializeAws_restJson1UpdateInstructionBatch = (input, context) => {
|
|
@@ -1634,8 +1606,8 @@ const serializeAws_restJson1UpdateInstructionBatch = (input, context) => {
|
|
|
1634
1606
|
};
|
|
1635
1607
|
const serializeAws_restJson1User = (input, context) => {
|
|
1636
1608
|
return {
|
|
1637
|
-
...(input.id
|
|
1638
|
-
...(input.type
|
|
1609
|
+
...(input.id != null && { id: input.id }),
|
|
1610
|
+
...(input.type != null && { type: input.type }),
|
|
1639
1611
|
};
|
|
1640
1612
|
};
|
|
1641
1613
|
const serializeAws_restJson1UserList = (input, context) => {
|
|
@@ -1671,15 +1643,9 @@ const deserializeAws_restJson1AssertionAttributes = (output, context) => {
|
|
|
1671
1643
|
};
|
|
1672
1644
|
const deserializeAws_restJson1AuthenticationDescription = (output, context) => {
|
|
1673
1645
|
return {
|
|
1674
|
-
awsSso: output.awsSso
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
providers: output.providers !== undefined && output.providers !== null
|
|
1678
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
1679
|
-
: undefined,
|
|
1680
|
-
saml: output.saml !== undefined && output.saml !== null
|
|
1681
|
-
? deserializeAws_restJson1SamlAuthentication(output.saml, context)
|
|
1682
|
-
: undefined,
|
|
1646
|
+
awsSso: output.awsSso != null ? deserializeAws_restJson1AwsSsoAuthentication(output.awsSso, context) : undefined,
|
|
1647
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
1648
|
+
saml: output.saml != null ? deserializeAws_restJson1SamlAuthentication(output.saml, context) : undefined,
|
|
1683
1649
|
};
|
|
1684
1650
|
};
|
|
1685
1651
|
const deserializeAws_restJson1AuthenticationProviders = (output, context) => {
|
|
@@ -1695,9 +1661,7 @@ const deserializeAws_restJson1AuthenticationProviders = (output, context) => {
|
|
|
1695
1661
|
};
|
|
1696
1662
|
const deserializeAws_restJson1AuthenticationSummary = (output, context) => {
|
|
1697
1663
|
return {
|
|
1698
|
-
providers: output.providers
|
|
1699
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
1700
|
-
: undefined,
|
|
1664
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
1701
1665
|
samlConfigurationStatus: (0, smithy_client_1.expectString)(output.samlConfigurationStatus),
|
|
1702
1666
|
};
|
|
1703
1667
|
};
|
|
@@ -1751,9 +1715,7 @@ const deserializeAws_restJson1OrganizationalUnitList = (output, context) => {
|
|
|
1751
1715
|
const deserializeAws_restJson1PermissionEntry = (output, context) => {
|
|
1752
1716
|
return {
|
|
1753
1717
|
role: (0, smithy_client_1.expectString)(output.role),
|
|
1754
|
-
user: output.user
|
|
1755
|
-
? deserializeAws_restJson1User(output.user, context)
|
|
1756
|
-
: undefined,
|
|
1718
|
+
user: output.user != null ? deserializeAws_restJson1User(output.user, context) : undefined,
|
|
1757
1719
|
};
|
|
1758
1720
|
};
|
|
1759
1721
|
const deserializeAws_restJson1PermissionEntryList = (output, context) => {
|
|
@@ -1780,17 +1742,13 @@ const deserializeAws_restJson1RoleValueList = (output, context) => {
|
|
|
1780
1742
|
};
|
|
1781
1743
|
const deserializeAws_restJson1RoleValues = (output, context) => {
|
|
1782
1744
|
return {
|
|
1783
|
-
admin: output.admin
|
|
1784
|
-
|
|
1785
|
-
: undefined,
|
|
1786
|
-
editor: output.editor !== undefined && output.editor !== null
|
|
1787
|
-
? deserializeAws_restJson1RoleValueList(output.editor, context)
|
|
1788
|
-
: undefined,
|
|
1745
|
+
admin: output.admin != null ? deserializeAws_restJson1RoleValueList(output.admin, context) : undefined,
|
|
1746
|
+
editor: output.editor != null ? deserializeAws_restJson1RoleValueList(output.editor, context) : undefined,
|
|
1789
1747
|
};
|
|
1790
1748
|
};
|
|
1791
1749
|
const deserializeAws_restJson1SamlAuthentication = (output, context) => {
|
|
1792
1750
|
return {
|
|
1793
|
-
configuration: output.configuration
|
|
1751
|
+
configuration: output.configuration != null
|
|
1794
1752
|
? deserializeAws_restJson1SamlConfiguration(output.configuration, context)
|
|
1795
1753
|
: undefined,
|
|
1796
1754
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -1798,19 +1756,17 @@ const deserializeAws_restJson1SamlAuthentication = (output, context) => {
|
|
|
1798
1756
|
};
|
|
1799
1757
|
const deserializeAws_restJson1SamlConfiguration = (output, context) => {
|
|
1800
1758
|
return {
|
|
1801
|
-
allowedOrganizations: output.allowedOrganizations
|
|
1759
|
+
allowedOrganizations: output.allowedOrganizations != null
|
|
1802
1760
|
? deserializeAws_restJson1AllowedOrganizations(output.allowedOrganizations, context)
|
|
1803
1761
|
: undefined,
|
|
1804
|
-
assertionAttributes: output.assertionAttributes
|
|
1762
|
+
assertionAttributes: output.assertionAttributes != null
|
|
1805
1763
|
? deserializeAws_restJson1AssertionAttributes(output.assertionAttributes, context)
|
|
1806
1764
|
: undefined,
|
|
1807
|
-
idpMetadata: output.idpMetadata
|
|
1765
|
+
idpMetadata: output.idpMetadata != null
|
|
1808
1766
|
? deserializeAws_restJson1IdpMetadata((0, smithy_client_1.expectUnion)(output.idpMetadata), context)
|
|
1809
1767
|
: undefined,
|
|
1810
1768
|
loginValidityDuration: (0, smithy_client_1.expectInt32)(output.loginValidityDuration),
|
|
1811
|
-
roleValues: output.roleValues
|
|
1812
|
-
? deserializeAws_restJson1RoleValues(output.roleValues, context)
|
|
1813
|
-
: undefined,
|
|
1769
|
+
roleValues: output.roleValues != null ? deserializeAws_restJson1RoleValues(output.roleValues, context) : undefined,
|
|
1814
1770
|
};
|
|
1815
1771
|
};
|
|
1816
1772
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -1826,9 +1782,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1826
1782
|
};
|
|
1827
1783
|
const deserializeAws_restJson1UpdateError = (output, context) => {
|
|
1828
1784
|
return {
|
|
1829
|
-
causedBy: output.causedBy
|
|
1830
|
-
? deserializeAws_restJson1UpdateInstruction(output.causedBy, context)
|
|
1831
|
-
: undefined,
|
|
1785
|
+
causedBy: output.causedBy != null ? deserializeAws_restJson1UpdateInstruction(output.causedBy, context) : undefined,
|
|
1832
1786
|
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
1833
1787
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1834
1788
|
};
|
|
@@ -1848,9 +1802,7 @@ const deserializeAws_restJson1UpdateInstruction = (output, context) => {
|
|
|
1848
1802
|
return {
|
|
1849
1803
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
1850
1804
|
role: (0, smithy_client_1.expectString)(output.role),
|
|
1851
|
-
users: output.users
|
|
1852
|
-
? deserializeAws_restJson1UserList(output.users, context)
|
|
1853
|
-
: undefined,
|
|
1805
|
+
users: output.users != null ? deserializeAws_restJson1UserList(output.users, context) : undefined,
|
|
1854
1806
|
};
|
|
1855
1807
|
};
|
|
1856
1808
|
const deserializeAws_restJson1User = (output, context) => {
|
|
@@ -1890,44 +1842,36 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
1890
1842
|
const deserializeAws_restJson1WorkspaceDescription = (output, context) => {
|
|
1891
1843
|
return {
|
|
1892
1844
|
accountAccessType: (0, smithy_client_1.expectString)(output.accountAccessType),
|
|
1893
|
-
authentication: output.authentication
|
|
1845
|
+
authentication: output.authentication != null
|
|
1894
1846
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1895
1847
|
: undefined,
|
|
1896
|
-
created: output.created
|
|
1897
|
-
|
|
1898
|
-
: undefined,
|
|
1899
|
-
dataSources: output.dataSources !== undefined && output.dataSources !== null
|
|
1900
|
-
? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context)
|
|
1901
|
-
: undefined,
|
|
1848
|
+
created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
|
|
1849
|
+
dataSources: output.dataSources != null ? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context) : undefined,
|
|
1902
1850
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1903
1851
|
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
1904
1852
|
freeTrialConsumed: (0, smithy_client_1.expectBoolean)(output.freeTrialConsumed),
|
|
1905
|
-
freeTrialExpiration: output.freeTrialExpiration
|
|
1853
|
+
freeTrialExpiration: output.freeTrialExpiration != null
|
|
1906
1854
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.freeTrialExpiration)))
|
|
1907
1855
|
: undefined,
|
|
1908
1856
|
grafanaVersion: (0, smithy_client_1.expectString)(output.grafanaVersion),
|
|
1909
1857
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1910
|
-
licenseExpiration: output.licenseExpiration
|
|
1858
|
+
licenseExpiration: output.licenseExpiration != null
|
|
1911
1859
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.licenseExpiration)))
|
|
1912
1860
|
: undefined,
|
|
1913
1861
|
licenseType: (0, smithy_client_1.expectString)(output.licenseType),
|
|
1914
|
-
modified: output.modified
|
|
1915
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified)))
|
|
1916
|
-
: undefined,
|
|
1862
|
+
modified: output.modified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified))) : undefined,
|
|
1917
1863
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1918
|
-
notificationDestinations: output.notificationDestinations
|
|
1864
|
+
notificationDestinations: output.notificationDestinations != null
|
|
1919
1865
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
1920
1866
|
: undefined,
|
|
1921
1867
|
organizationRoleName: (0, smithy_client_1.expectString)(output.organizationRoleName),
|
|
1922
|
-
organizationalUnits: output.organizationalUnits
|
|
1868
|
+
organizationalUnits: output.organizationalUnits != null
|
|
1923
1869
|
? deserializeAws_restJson1OrganizationalUnitList(output.organizationalUnits, context)
|
|
1924
1870
|
: undefined,
|
|
1925
1871
|
permissionType: (0, smithy_client_1.expectString)(output.permissionType),
|
|
1926
1872
|
stackSetName: (0, smithy_client_1.expectString)(output.stackSetName),
|
|
1927
1873
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1928
|
-
tags: output.tags
|
|
1929
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1930
|
-
: undefined,
|
|
1874
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1931
1875
|
workspaceRoleArn: (0, smithy_client_1.expectString)(output.workspaceRoleArn),
|
|
1932
1876
|
};
|
|
1933
1877
|
};
|
|
@@ -1944,27 +1888,21 @@ const deserializeAws_restJson1WorkspaceList = (output, context) => {
|
|
|
1944
1888
|
};
|
|
1945
1889
|
const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
|
|
1946
1890
|
return {
|
|
1947
|
-
authentication: output.authentication
|
|
1891
|
+
authentication: output.authentication != null
|
|
1948
1892
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
1949
1893
|
: undefined,
|
|
1950
|
-
created: output.created
|
|
1951
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
|
|
1952
|
-
: undefined,
|
|
1894
|
+
created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
|
|
1953
1895
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1954
1896
|
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
1955
1897
|
grafanaVersion: (0, smithy_client_1.expectString)(output.grafanaVersion),
|
|
1956
1898
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1957
|
-
modified: output.modified
|
|
1958
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified)))
|
|
1959
|
-
: undefined,
|
|
1899
|
+
modified: output.modified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modified))) : undefined,
|
|
1960
1900
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1961
|
-
notificationDestinations: output.notificationDestinations
|
|
1901
|
+
notificationDestinations: output.notificationDestinations != null
|
|
1962
1902
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
1963
1903
|
: undefined,
|
|
1964
1904
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1965
|
-
tags: output.tags
|
|
1966
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1967
|
-
: undefined,
|
|
1905
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1968
1906
|
};
|
|
1969
1907
|
};
|
|
1970
1908
|
const deserializeMetadata = (output) => {
|
|
@@ -58,24 +58,15 @@ export var serializeAws_restJson1CreateWorkspaceCommand = function (input, conte
|
|
|
58
58
|
"content-type": "application/json",
|
|
59
59
|
};
|
|
60
60
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces";
|
|
61
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType
|
|
62
|
-
input.accountAccessType !== null && { accountAccessType: input.accountAccessType })), (input.authenticationProviders !== undefined &&
|
|
63
|
-
input.authenticationProviders !== null && {
|
|
61
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType != null && { accountAccessType: input.accountAccessType })), (input.authenticationProviders != null && {
|
|
64
62
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
65
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.organizationRoleName
|
|
66
|
-
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName })), (input.permissionType !== undefined &&
|
|
67
|
-
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workspaceDataSources !== undefined &&
|
|
68
|
-
input.workspaceDataSources !== null && {
|
|
63
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName })), (input.permissionType != null && { permissionType: input.permissionType })), (input.stackSetName != null && { stackSetName: input.stackSetName })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workspaceDataSources != null && {
|
|
69
64
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
70
|
-
})), (input.workspaceDescription
|
|
71
|
-
input.workspaceDescription !== null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName !== undefined && input.workspaceName !== null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations !== undefined &&
|
|
72
|
-
input.workspaceNotificationDestinations !== null && {
|
|
65
|
+
})), (input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName != null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations != null && {
|
|
73
66
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
74
|
-
})), (input.workspaceOrganizationalUnits
|
|
75
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
67
|
+
})), (input.workspaceOrganizationalUnits != null && {
|
|
76
68
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
77
|
-
})), (input.workspaceRoleArn
|
|
78
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
69
|
+
})), (input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
79
70
|
return [2, new __HttpRequest({
|
|
80
71
|
protocol: protocol,
|
|
81
72
|
hostname: hostname,
|
|
@@ -109,7 +100,7 @@ export var serializeAws_restJson1CreateWorkspaceApiKeyCommand = function (input,
|
|
|
109
100
|
else {
|
|
110
101
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
111
102
|
}
|
|
112
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.keyName
|
|
103
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.keyName != null && { keyName: input.keyName })), (input.keyRole != null && { keyRole: input.keyRole })), (input.secondsToLive != null && { secondsToLive: input.secondsToLive })));
|
|
113
104
|
return [2, new __HttpRequest({
|
|
114
105
|
protocol: protocol,
|
|
115
106
|
hostname: hostname,
|
|
@@ -407,7 +398,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
407
398
|
else {
|
|
408
399
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
409
400
|
}
|
|
410
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
401
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
411
402
|
return [2, new __HttpRequest({
|
|
412
403
|
protocol: protocol,
|
|
413
404
|
hostname: hostname,
|
|
@@ -474,8 +465,7 @@ export var serializeAws_restJson1UpdatePermissionsCommand = function (input, con
|
|
|
474
465
|
else {
|
|
475
466
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
476
467
|
}
|
|
477
|
-
body = JSON.stringify(__assign({}, (input.updateInstructionBatch
|
|
478
|
-
input.updateInstructionBatch !== null && {
|
|
468
|
+
body = JSON.stringify(__assign({}, (input.updateInstructionBatch != null && {
|
|
479
469
|
updateInstructionBatch: serializeAws_restJson1UpdateInstructionBatch(input.updateInstructionBatch, context),
|
|
480
470
|
})));
|
|
481
471
|
return [2, new __HttpRequest({
|
|
@@ -511,21 +501,13 @@ export var serializeAws_restJson1UpdateWorkspaceCommand = function (input, conte
|
|
|
511
501
|
else {
|
|
512
502
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
513
503
|
}
|
|
514
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType
|
|
515
|
-
input.accountAccessType !== null && { accountAccessType: input.accountAccessType })), (input.organizationRoleName !== undefined &&
|
|
516
|
-
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName })), (input.permissionType !== undefined &&
|
|
517
|
-
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.workspaceDataSources !== undefined &&
|
|
518
|
-
input.workspaceDataSources !== null && {
|
|
504
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType != null && { accountAccessType: input.accountAccessType })), (input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName })), (input.permissionType != null && { permissionType: input.permissionType })), (input.stackSetName != null && { stackSetName: input.stackSetName })), (input.workspaceDataSources != null && {
|
|
519
505
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
520
|
-
})), (input.workspaceDescription
|
|
521
|
-
input.workspaceDescription !== null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName !== undefined && input.workspaceName !== null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations !== undefined &&
|
|
522
|
-
input.workspaceNotificationDestinations !== null && {
|
|
506
|
+
})), (input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName != null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations != null && {
|
|
523
507
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
524
|
-
})), (input.workspaceOrganizationalUnits
|
|
525
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
508
|
+
})), (input.workspaceOrganizationalUnits != null && {
|
|
526
509
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
527
|
-
})), (input.workspaceRoleArn
|
|
528
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
510
|
+
})), (input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
529
511
|
return [2, new __HttpRequest({
|
|
530
512
|
protocol: protocol,
|
|
531
513
|
hostname: hostname,
|
|
@@ -559,11 +541,9 @@ export var serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = function
|
|
|
559
541
|
else {
|
|
560
542
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
561
543
|
}
|
|
562
|
-
body = JSON.stringify(__assign(__assign({}, (input.authenticationProviders
|
|
563
|
-
input.authenticationProviders !== null && {
|
|
544
|
+
body = JSON.stringify(__assign(__assign({}, (input.authenticationProviders != null && {
|
|
564
545
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
565
|
-
})), (input.samlConfiguration
|
|
566
|
-
input.samlConfiguration !== null && {
|
|
546
|
+
})), (input.samlConfiguration != null && {
|
|
567
547
|
samlConfiguration: serializeAws_restJson1SamlConfiguration(input.samlConfiguration, context),
|
|
568
548
|
})));
|
|
569
549
|
return [2, new __HttpRequest({
|
|
@@ -1911,7 +1891,7 @@ var serializeAws_restJson1AllowedOrganizations = function (input, context) {
|
|
|
1911
1891
|
});
|
|
1912
1892
|
};
|
|
1913
1893
|
var serializeAws_restJson1AssertionAttributes = function (input, context) {
|
|
1914
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.email
|
|
1894
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.email != null && { email: input.email })), (input.groups != null && { groups: input.groups })), (input.login != null && { login: input.login })), (input.name != null && { name: input.name })), (input.org != null && { org: input.org })), (input.role != null && { role: input.role }));
|
|
1915
1895
|
};
|
|
1916
1896
|
var serializeAws_restJson1AuthenticationProviders = function (input, context) {
|
|
1917
1897
|
return input
|
|
@@ -1971,21 +1951,14 @@ var serializeAws_restJson1RoleValueList = function (input, context) {
|
|
|
1971
1951
|
});
|
|
1972
1952
|
};
|
|
1973
1953
|
var serializeAws_restJson1RoleValues = function (input, context) {
|
|
1974
|
-
return __assign(__assign({}, (input.admin
|
|
1975
|
-
input.admin !== null && { admin: serializeAws_restJson1RoleValueList(input.admin, context) })), (input.editor !== undefined &&
|
|
1976
|
-
input.editor !== null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }));
|
|
1954
|
+
return __assign(__assign({}, (input.admin != null && { admin: serializeAws_restJson1RoleValueList(input.admin, context) })), (input.editor != null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }));
|
|
1977
1955
|
};
|
|
1978
1956
|
var serializeAws_restJson1SamlConfiguration = function (input, context) {
|
|
1979
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedOrganizations
|
|
1980
|
-
input.allowedOrganizations !== null && {
|
|
1957
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedOrganizations != null && {
|
|
1981
1958
|
allowedOrganizations: serializeAws_restJson1AllowedOrganizations(input.allowedOrganizations, context),
|
|
1982
|
-
})), (input.assertionAttributes
|
|
1983
|
-
input.assertionAttributes !== null && {
|
|
1959
|
+
})), (input.assertionAttributes != null && {
|
|
1984
1960
|
assertionAttributes: serializeAws_restJson1AssertionAttributes(input.assertionAttributes, context),
|
|
1985
|
-
})), (input.idpMetadata
|
|
1986
|
-
input.idpMetadata !== null && { idpMetadata: serializeAws_restJson1IdpMetadata(input.idpMetadata, context) })), (input.loginValidityDuration !== undefined &&
|
|
1987
|
-
input.loginValidityDuration !== null && { loginValidityDuration: input.loginValidityDuration })), (input.roleValues !== undefined &&
|
|
1988
|
-
input.roleValues !== null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }));
|
|
1961
|
+
})), (input.idpMetadata != null && { idpMetadata: serializeAws_restJson1IdpMetadata(input.idpMetadata, context) })), (input.loginValidityDuration != null && { loginValidityDuration: input.loginValidityDuration })), (input.roleValues != null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }));
|
|
1989
1962
|
};
|
|
1990
1963
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1991
1964
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -1998,8 +1971,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
1998
1971
|
}, {});
|
|
1999
1972
|
};
|
|
2000
1973
|
var serializeAws_restJson1UpdateInstruction = function (input, context) {
|
|
2001
|
-
return __assign(__assign(__assign({}, (input.action
|
|
2002
|
-
input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) }));
|
|
1974
|
+
return __assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.role != null && { role: input.role })), (input.users != null && { users: serializeAws_restJson1UserList(input.users, context) }));
|
|
2003
1975
|
};
|
|
2004
1976
|
var serializeAws_restJson1UpdateInstructionBatch = function (input, context) {
|
|
2005
1977
|
return input
|
|
@@ -2012,7 +1984,7 @@ var serializeAws_restJson1UpdateInstructionBatch = function (input, context) {
|
|
|
2012
1984
|
});
|
|
2013
1985
|
};
|
|
2014
1986
|
var serializeAws_restJson1User = function (input, context) {
|
|
2015
|
-
return __assign(__assign({}, (input.id
|
|
1987
|
+
return __assign(__assign({}, (input.id != null && { id: input.id })), (input.type != null && { type: input.type }));
|
|
2016
1988
|
};
|
|
2017
1989
|
var serializeAws_restJson1UserList = function (input, context) {
|
|
2018
1990
|
return input
|
|
@@ -2047,15 +2019,9 @@ var deserializeAws_restJson1AssertionAttributes = function (output, context) {
|
|
|
2047
2019
|
};
|
|
2048
2020
|
var deserializeAws_restJson1AuthenticationDescription = function (output, context) {
|
|
2049
2021
|
return {
|
|
2050
|
-
awsSso: output.awsSso
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
providers: output.providers !== undefined && output.providers !== null
|
|
2054
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
2055
|
-
: undefined,
|
|
2056
|
-
saml: output.saml !== undefined && output.saml !== null
|
|
2057
|
-
? deserializeAws_restJson1SamlAuthentication(output.saml, context)
|
|
2058
|
-
: undefined,
|
|
2022
|
+
awsSso: output.awsSso != null ? deserializeAws_restJson1AwsSsoAuthentication(output.awsSso, context) : undefined,
|
|
2023
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
2024
|
+
saml: output.saml != null ? deserializeAws_restJson1SamlAuthentication(output.saml, context) : undefined,
|
|
2059
2025
|
};
|
|
2060
2026
|
};
|
|
2061
2027
|
var deserializeAws_restJson1AuthenticationProviders = function (output, context) {
|
|
@@ -2071,9 +2037,7 @@ var deserializeAws_restJson1AuthenticationProviders = function (output, context)
|
|
|
2071
2037
|
};
|
|
2072
2038
|
var deserializeAws_restJson1AuthenticationSummary = function (output, context) {
|
|
2073
2039
|
return {
|
|
2074
|
-
providers: output.providers
|
|
2075
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
2076
|
-
: undefined,
|
|
2040
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
2077
2041
|
samlConfigurationStatus: __expectString(output.samlConfigurationStatus),
|
|
2078
2042
|
};
|
|
2079
2043
|
};
|
|
@@ -2127,9 +2091,7 @@ var deserializeAws_restJson1OrganizationalUnitList = function (output, context)
|
|
|
2127
2091
|
var deserializeAws_restJson1PermissionEntry = function (output, context) {
|
|
2128
2092
|
return {
|
|
2129
2093
|
role: __expectString(output.role),
|
|
2130
|
-
user: output.user
|
|
2131
|
-
? deserializeAws_restJson1User(output.user, context)
|
|
2132
|
-
: undefined,
|
|
2094
|
+
user: output.user != null ? deserializeAws_restJson1User(output.user, context) : undefined,
|
|
2133
2095
|
};
|
|
2134
2096
|
};
|
|
2135
2097
|
var deserializeAws_restJson1PermissionEntryList = function (output, context) {
|
|
@@ -2156,17 +2118,13 @@ var deserializeAws_restJson1RoleValueList = function (output, context) {
|
|
|
2156
2118
|
};
|
|
2157
2119
|
var deserializeAws_restJson1RoleValues = function (output, context) {
|
|
2158
2120
|
return {
|
|
2159
|
-
admin: output.admin
|
|
2160
|
-
|
|
2161
|
-
: undefined,
|
|
2162
|
-
editor: output.editor !== undefined && output.editor !== null
|
|
2163
|
-
? deserializeAws_restJson1RoleValueList(output.editor, context)
|
|
2164
|
-
: undefined,
|
|
2121
|
+
admin: output.admin != null ? deserializeAws_restJson1RoleValueList(output.admin, context) : undefined,
|
|
2122
|
+
editor: output.editor != null ? deserializeAws_restJson1RoleValueList(output.editor, context) : undefined,
|
|
2165
2123
|
};
|
|
2166
2124
|
};
|
|
2167
2125
|
var deserializeAws_restJson1SamlAuthentication = function (output, context) {
|
|
2168
2126
|
return {
|
|
2169
|
-
configuration: output.configuration
|
|
2127
|
+
configuration: output.configuration != null
|
|
2170
2128
|
? deserializeAws_restJson1SamlConfiguration(output.configuration, context)
|
|
2171
2129
|
: undefined,
|
|
2172
2130
|
status: __expectString(output.status),
|
|
@@ -2174,19 +2132,17 @@ var deserializeAws_restJson1SamlAuthentication = function (output, context) {
|
|
|
2174
2132
|
};
|
|
2175
2133
|
var deserializeAws_restJson1SamlConfiguration = function (output, context) {
|
|
2176
2134
|
return {
|
|
2177
|
-
allowedOrganizations: output.allowedOrganizations
|
|
2135
|
+
allowedOrganizations: output.allowedOrganizations != null
|
|
2178
2136
|
? deserializeAws_restJson1AllowedOrganizations(output.allowedOrganizations, context)
|
|
2179
2137
|
: undefined,
|
|
2180
|
-
assertionAttributes: output.assertionAttributes
|
|
2138
|
+
assertionAttributes: output.assertionAttributes != null
|
|
2181
2139
|
? deserializeAws_restJson1AssertionAttributes(output.assertionAttributes, context)
|
|
2182
2140
|
: undefined,
|
|
2183
|
-
idpMetadata: output.idpMetadata
|
|
2141
|
+
idpMetadata: output.idpMetadata != null
|
|
2184
2142
|
? deserializeAws_restJson1IdpMetadata(__expectUnion(output.idpMetadata), context)
|
|
2185
2143
|
: undefined,
|
|
2186
2144
|
loginValidityDuration: __expectInt32(output.loginValidityDuration),
|
|
2187
|
-
roleValues: output.roleValues
|
|
2188
|
-
? deserializeAws_restJson1RoleValues(output.roleValues, context)
|
|
2189
|
-
: undefined,
|
|
2145
|
+
roleValues: output.roleValues != null ? deserializeAws_restJson1RoleValues(output.roleValues, context) : undefined,
|
|
2190
2146
|
};
|
|
2191
2147
|
};
|
|
2192
2148
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
@@ -2201,9 +2157,7 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
2201
2157
|
};
|
|
2202
2158
|
var deserializeAws_restJson1UpdateError = function (output, context) {
|
|
2203
2159
|
return {
|
|
2204
|
-
causedBy: output.causedBy
|
|
2205
|
-
? deserializeAws_restJson1UpdateInstruction(output.causedBy, context)
|
|
2206
|
-
: undefined,
|
|
2160
|
+
causedBy: output.causedBy != null ? deserializeAws_restJson1UpdateInstruction(output.causedBy, context) : undefined,
|
|
2207
2161
|
code: __expectInt32(output.code),
|
|
2208
2162
|
message: __expectString(output.message),
|
|
2209
2163
|
};
|
|
@@ -2223,9 +2177,7 @@ var deserializeAws_restJson1UpdateInstruction = function (output, context) {
|
|
|
2223
2177
|
return {
|
|
2224
2178
|
action: __expectString(output.action),
|
|
2225
2179
|
role: __expectString(output.role),
|
|
2226
|
-
users: output.users
|
|
2227
|
-
? deserializeAws_restJson1UserList(output.users, context)
|
|
2228
|
-
: undefined,
|
|
2180
|
+
users: output.users != null ? deserializeAws_restJson1UserList(output.users, context) : undefined,
|
|
2229
2181
|
};
|
|
2230
2182
|
};
|
|
2231
2183
|
var deserializeAws_restJson1User = function (output, context) {
|
|
@@ -2265,44 +2217,36 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
|
|
|
2265
2217
|
var deserializeAws_restJson1WorkspaceDescription = function (output, context) {
|
|
2266
2218
|
return {
|
|
2267
2219
|
accountAccessType: __expectString(output.accountAccessType),
|
|
2268
|
-
authentication: output.authentication
|
|
2220
|
+
authentication: output.authentication != null
|
|
2269
2221
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
2270
2222
|
: undefined,
|
|
2271
|
-
created: output.created
|
|
2272
|
-
|
|
2273
|
-
: undefined,
|
|
2274
|
-
dataSources: output.dataSources !== undefined && output.dataSources !== null
|
|
2275
|
-
? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context)
|
|
2276
|
-
: undefined,
|
|
2223
|
+
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
2224
|
+
dataSources: output.dataSources != null ? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context) : undefined,
|
|
2277
2225
|
description: __expectString(output.description),
|
|
2278
2226
|
endpoint: __expectString(output.endpoint),
|
|
2279
2227
|
freeTrialConsumed: __expectBoolean(output.freeTrialConsumed),
|
|
2280
|
-
freeTrialExpiration: output.freeTrialExpiration
|
|
2228
|
+
freeTrialExpiration: output.freeTrialExpiration != null
|
|
2281
2229
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.freeTrialExpiration)))
|
|
2282
2230
|
: undefined,
|
|
2283
2231
|
grafanaVersion: __expectString(output.grafanaVersion),
|
|
2284
2232
|
id: __expectString(output.id),
|
|
2285
|
-
licenseExpiration: output.licenseExpiration
|
|
2233
|
+
licenseExpiration: output.licenseExpiration != null
|
|
2286
2234
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.licenseExpiration)))
|
|
2287
2235
|
: undefined,
|
|
2288
2236
|
licenseType: __expectString(output.licenseType),
|
|
2289
|
-
modified: output.modified
|
|
2290
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified)))
|
|
2291
|
-
: undefined,
|
|
2237
|
+
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
2292
2238
|
name: __expectString(output.name),
|
|
2293
|
-
notificationDestinations: output.notificationDestinations
|
|
2239
|
+
notificationDestinations: output.notificationDestinations != null
|
|
2294
2240
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
2295
2241
|
: undefined,
|
|
2296
2242
|
organizationRoleName: __expectString(output.organizationRoleName),
|
|
2297
|
-
organizationalUnits: output.organizationalUnits
|
|
2243
|
+
organizationalUnits: output.organizationalUnits != null
|
|
2298
2244
|
? deserializeAws_restJson1OrganizationalUnitList(output.organizationalUnits, context)
|
|
2299
2245
|
: undefined,
|
|
2300
2246
|
permissionType: __expectString(output.permissionType),
|
|
2301
2247
|
stackSetName: __expectString(output.stackSetName),
|
|
2302
2248
|
status: __expectString(output.status),
|
|
2303
|
-
tags: output.tags
|
|
2304
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2305
|
-
: undefined,
|
|
2249
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2306
2250
|
workspaceRoleArn: __expectString(output.workspaceRoleArn),
|
|
2307
2251
|
};
|
|
2308
2252
|
};
|
|
@@ -2319,27 +2263,21 @@ var deserializeAws_restJson1WorkspaceList = function (output, context) {
|
|
|
2319
2263
|
};
|
|
2320
2264
|
var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
|
|
2321
2265
|
return {
|
|
2322
|
-
authentication: output.authentication
|
|
2266
|
+
authentication: output.authentication != null
|
|
2323
2267
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
2324
2268
|
: undefined,
|
|
2325
|
-
created: output.created
|
|
2326
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
2327
|
-
: undefined,
|
|
2269
|
+
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
2328
2270
|
description: __expectString(output.description),
|
|
2329
2271
|
endpoint: __expectString(output.endpoint),
|
|
2330
2272
|
grafanaVersion: __expectString(output.grafanaVersion),
|
|
2331
2273
|
id: __expectString(output.id),
|
|
2332
|
-
modified: output.modified
|
|
2333
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified)))
|
|
2334
|
-
: undefined,
|
|
2274
|
+
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
2335
2275
|
name: __expectString(output.name),
|
|
2336
|
-
notificationDestinations: output.notificationDestinations
|
|
2276
|
+
notificationDestinations: output.notificationDestinations != null
|
|
2337
2277
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
2338
2278
|
: undefined,
|
|
2339
2279
|
status: __expectString(output.status),
|
|
2340
|
-
tags: output.tags
|
|
2341
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2342
|
-
: undefined,
|
|
2280
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2343
2281
|
};
|
|
2344
2282
|
};
|
|
2345
2283
|
var deserializeMetadata = function (output) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-grafana",
|
|
3
3
|
"description": "AWS SDK for JavaScript Grafana Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|