@aws-sdk/client-organizations 3.354.0 → 3.357.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.
|
@@ -454,7 +454,7 @@ const de_AttachPolicyCommand = async (output, context) => {
|
|
|
454
454
|
if (output.statusCode >= 300) {
|
|
455
455
|
return de_AttachPolicyCommandError(output, context);
|
|
456
456
|
}
|
|
457
|
-
await collectBody(output.body, context);
|
|
457
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
458
458
|
const response = {
|
|
459
459
|
$metadata: deserializeMetadata(output),
|
|
460
460
|
};
|
|
@@ -574,7 +574,7 @@ const de_CloseAccountCommand = async (output, context) => {
|
|
|
574
574
|
if (output.statusCode >= 300) {
|
|
575
575
|
return de_CloseAccountCommandError(output, context);
|
|
576
576
|
}
|
|
577
|
-
await collectBody(output.body, context);
|
|
577
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
578
578
|
const response = {
|
|
579
579
|
$metadata: deserializeMetadata(output),
|
|
580
580
|
};
|
|
@@ -976,7 +976,7 @@ const de_DeleteOrganizationCommand = async (output, context) => {
|
|
|
976
976
|
if (output.statusCode >= 300) {
|
|
977
977
|
return de_DeleteOrganizationCommandError(output, context);
|
|
978
978
|
}
|
|
979
|
-
await collectBody(output.body, context);
|
|
979
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
980
980
|
const response = {
|
|
981
981
|
$metadata: deserializeMetadata(output),
|
|
982
982
|
};
|
|
@@ -1024,7 +1024,7 @@ const de_DeleteOrganizationalUnitCommand = async (output, context) => {
|
|
|
1024
1024
|
if (output.statusCode >= 300) {
|
|
1025
1025
|
return de_DeleteOrganizationalUnitCommandError(output, context);
|
|
1026
1026
|
}
|
|
1027
|
-
await collectBody(output.body, context);
|
|
1027
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1028
1028
|
const response = {
|
|
1029
1029
|
$metadata: deserializeMetadata(output),
|
|
1030
1030
|
};
|
|
@@ -1075,7 +1075,7 @@ const de_DeletePolicyCommand = async (output, context) => {
|
|
|
1075
1075
|
if (output.statusCode >= 300) {
|
|
1076
1076
|
return de_DeletePolicyCommandError(output, context);
|
|
1077
1077
|
}
|
|
1078
|
-
await collectBody(output.body, context);
|
|
1078
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1079
1079
|
const response = {
|
|
1080
1080
|
$metadata: deserializeMetadata(output),
|
|
1081
1081
|
};
|
|
@@ -1129,7 +1129,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
1129
1129
|
if (output.statusCode >= 300) {
|
|
1130
1130
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1131
1131
|
}
|
|
1132
|
-
await collectBody(output.body, context);
|
|
1132
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1133
1133
|
const response = {
|
|
1134
1134
|
$metadata: deserializeMetadata(output),
|
|
1135
1135
|
};
|
|
@@ -1180,7 +1180,7 @@ const de_DeregisterDelegatedAdministratorCommand = async (output, context) => {
|
|
|
1180
1180
|
if (output.statusCode >= 300) {
|
|
1181
1181
|
return de_DeregisterDelegatedAdministratorCommandError(output, context);
|
|
1182
1182
|
}
|
|
1183
|
-
await collectBody(output.body, context);
|
|
1183
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1184
1184
|
const response = {
|
|
1185
1185
|
$metadata: deserializeMetadata(output),
|
|
1186
1186
|
};
|
|
@@ -1636,7 +1636,7 @@ const de_DetachPolicyCommand = async (output, context) => {
|
|
|
1636
1636
|
if (output.statusCode >= 300) {
|
|
1637
1637
|
return de_DetachPolicyCommandError(output, context);
|
|
1638
1638
|
}
|
|
1639
|
-
await collectBody(output.body, context);
|
|
1639
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1640
1640
|
const response = {
|
|
1641
1641
|
$metadata: deserializeMetadata(output),
|
|
1642
1642
|
};
|
|
@@ -1699,7 +1699,7 @@ const de_DisableAWSServiceAccessCommand = async (output, context) => {
|
|
|
1699
1699
|
if (output.statusCode >= 300) {
|
|
1700
1700
|
return de_DisableAWSServiceAccessCommandError(output, context);
|
|
1701
1701
|
}
|
|
1702
|
-
await collectBody(output.body, context);
|
|
1702
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1703
1703
|
const response = {
|
|
1704
1704
|
$metadata: deserializeMetadata(output),
|
|
1705
1705
|
};
|
|
@@ -1864,7 +1864,7 @@ const de_EnableAWSServiceAccessCommand = async (output, context) => {
|
|
|
1864
1864
|
if (output.statusCode >= 300) {
|
|
1865
1865
|
return de_EnableAWSServiceAccessCommandError(output, context);
|
|
1866
1866
|
}
|
|
1867
|
-
await collectBody(output.body, context);
|
|
1867
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1868
1868
|
const response = {
|
|
1869
1869
|
$metadata: deserializeMetadata(output),
|
|
1870
1870
|
};
|
|
@@ -2044,7 +2044,7 @@ const de_LeaveOrganizationCommand = async (output, context) => {
|
|
|
2044
2044
|
if (output.statusCode >= 300) {
|
|
2045
2045
|
return de_LeaveOrganizationCommandError(output, context);
|
|
2046
2046
|
}
|
|
2047
|
-
await collectBody(output.body, context);
|
|
2047
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2048
2048
|
const response = {
|
|
2049
2049
|
$metadata: deserializeMetadata(output),
|
|
2050
2050
|
};
|
|
@@ -2878,7 +2878,7 @@ const de_MoveAccountCommand = async (output, context) => {
|
|
|
2878
2878
|
if (output.statusCode >= 300) {
|
|
2879
2879
|
return de_MoveAccountCommandError(output, context);
|
|
2880
2880
|
}
|
|
2881
|
-
await collectBody(output.body, context);
|
|
2881
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2882
2882
|
const response = {
|
|
2883
2883
|
$metadata: deserializeMetadata(output),
|
|
2884
2884
|
};
|
|
@@ -2989,7 +2989,7 @@ const de_RegisterDelegatedAdministratorCommand = async (output, context) => {
|
|
|
2989
2989
|
if (output.statusCode >= 300) {
|
|
2990
2990
|
return de_RegisterDelegatedAdministratorCommandError(output, context);
|
|
2991
2991
|
}
|
|
2992
|
-
await collectBody(output.body, context);
|
|
2992
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2993
2993
|
const response = {
|
|
2994
2994
|
$metadata: deserializeMetadata(output),
|
|
2995
2995
|
};
|
|
@@ -3046,7 +3046,7 @@ const de_RemoveAccountFromOrganizationCommand = async (output, context) => {
|
|
|
3046
3046
|
if (output.statusCode >= 300) {
|
|
3047
3047
|
return de_RemoveAccountFromOrganizationCommandError(output, context);
|
|
3048
3048
|
}
|
|
3049
|
-
await collectBody(output.body, context);
|
|
3049
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3050
3050
|
const response = {
|
|
3051
3051
|
$metadata: deserializeMetadata(output),
|
|
3052
3052
|
};
|
|
@@ -3100,7 +3100,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3100
3100
|
if (output.statusCode >= 300) {
|
|
3101
3101
|
return de_TagResourceCommandError(output, context);
|
|
3102
3102
|
}
|
|
3103
|
-
await collectBody(output.body, context);
|
|
3103
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3104
3104
|
const response = {
|
|
3105
3105
|
$metadata: deserializeMetadata(output),
|
|
3106
3106
|
};
|
|
@@ -3151,7 +3151,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3151
3151
|
if (output.statusCode >= 300) {
|
|
3152
3152
|
return de_UntagResourceCommandError(output, context);
|
|
3153
3153
|
}
|
|
3154
|
-
await collectBody(output.body, context);
|
|
3154
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3155
3155
|
const response = {
|
|
3156
3156
|
$metadata: deserializeMetadata(output),
|
|
3157
3157
|
};
|
|
@@ -3980,13 +3980,7 @@ const deserializeMetadata = (output) => ({
|
|
|
3980
3980
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3981
3981
|
cfId: output.headers["x-amz-cf-id"],
|
|
3982
3982
|
});
|
|
3983
|
-
const
|
|
3984
|
-
if (streamBody instanceof Uint8Array) {
|
|
3985
|
-
return Promise.resolve(streamBody);
|
|
3986
|
-
}
|
|
3987
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3988
|
-
};
|
|
3989
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3983
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3990
3984
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(OrganizationsServiceException_1.OrganizationsServiceException);
|
|
3991
3985
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3992
3986
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { AccessDeniedException, AccessDeniedForDependencyException, AccountAlreadyClosedException, AccountAlreadyRegisteredException, AccountNotFoundException, AccountNotRegisteredException, AccountOwnerNotVerifiedException, AlreadyInOrganizationException, AWSOrganizationsNotInUseException, ChildNotFoundException, ConcurrentModificationException, ConflictException, ConstraintViolationException, CreateAccountStatusNotFoundException, DestinationParentNotFoundException, DuplicateAccountException, DuplicateHandshakeException, DuplicateOrganizationalUnitException, DuplicatePolicyAttachmentException, DuplicatePolicyException, EffectivePolicyNotFoundException, FinalizingOrganizationException, HandshakeAlreadyInStateException, HandshakeConstraintViolationException, HandshakeNotFoundException, InvalidHandshakeTransitionException, InvalidInputException, MalformedPolicyDocumentException, MasterCannotLeaveOrganizationException, OrganizationalUnitNotEmptyException, OrganizationalUnitNotFoundException, OrganizationNotEmptyException, ParentNotFoundException, PolicyChangesInProgressException, PolicyInUseException, PolicyNotAttachedException, PolicyNotFoundException, PolicyTypeAlreadyEnabledException, PolicyTypeNotAvailableForOrganizationException, PolicyTypeNotEnabledException, ResourcePolicyNotFoundException, RootNotFoundException, ServiceException, SourceParentNotFoundException, TargetNotFoundException, TooManyRequestsException, UnsupportedAPIEndpointException, } from "../models/models_0";
|
|
4
4
|
import { OrganizationsServiceException as __BaseException } from "../models/OrganizationsServiceException";
|
|
@@ -3865,12 +3865,6 @@ const deserializeMetadata = (output) => ({
|
|
|
3865
3865
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3866
3866
|
cfId: output.headers["x-amz-cf-id"],
|
|
3867
3867
|
});
|
|
3868
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3869
|
-
if (streamBody instanceof Uint8Array) {
|
|
3870
|
-
return Promise.resolve(streamBody);
|
|
3871
|
-
}
|
|
3872
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3873
|
-
};
|
|
3874
3868
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3875
3869
|
const throwDefaultError = withBaseException(__BaseException);
|
|
3876
3870
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
@@ -128,7 +128,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
128
128
|
*/
|
|
129
129
|
runtime?: string;
|
|
130
130
|
/**
|
|
131
|
-
* Disable
|
|
131
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
132
132
|
* trait of an operation.
|
|
133
133
|
*/
|
|
134
134
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-organizations",
|
|
3
3
|
"description": "AWS SDK for JavaScript Organizations Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.357.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",
|
|
@@ -21,36 +21,36 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|