@aws-sdk/client-global-accelerator 3.437.0 → 3.441.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/README.md +57 -1
- package/dist-cjs/GlobalAccelerator.js +14 -0
- package/dist-cjs/commands/CreateCrossAccountAttachmentCommand.js +51 -0
- package/dist-cjs/commands/DeleteCrossAccountAttachmentCommand.js +51 -0
- package/dist-cjs/commands/DescribeCrossAccountAttachmentCommand.js +51 -0
- package/dist-cjs/commands/ListCrossAccountAttachmentsCommand.js +51 -0
- package/dist-cjs/commands/ListCrossAccountResourceAccountsCommand.js +51 -0
- package/dist-cjs/commands/ListCrossAccountResourcesCommand.js +51 -0
- package/dist-cjs/commands/UpdateCrossAccountAttachmentCommand.js +51 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/pagination/ListCrossAccountAttachmentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListCrossAccountResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +409 -2
- package/dist-es/GlobalAccelerator.js +14 -0
- package/dist-es/commands/CreateCrossAccountAttachmentCommand.js +47 -0
- package/dist-es/commands/DeleteCrossAccountAttachmentCommand.js +47 -0
- package/dist-es/commands/DescribeCrossAccountAttachmentCommand.js +47 -0
- package/dist-es/commands/ListCrossAccountAttachmentsCommand.js +47 -0
- package/dist-es/commands/ListCrossAccountResourceAccountsCommand.js +47 -0
- package/dist-es/commands/ListCrossAccountResourcesCommand.js +47 -0
- package/dist-es/commands/UpdateCrossAccountAttachmentCommand.js +47 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/pagination/ListCrossAccountAttachmentsPaginator.js +25 -0
- package/dist-es/pagination/ListCrossAccountResourcesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +393 -1
- package/dist-types/GlobalAccelerator.d.ts +50 -1
- package/dist-types/GlobalAcceleratorClient.d.ts +10 -3
- package/dist-types/commands/AddCustomRoutingEndpointsCommand.d.ts +1 -0
- package/dist-types/commands/AddEndpointsCommand.d.ts +1 -0
- package/dist-types/commands/CreateCrossAccountAttachmentCommand.d.ts +126 -0
- package/dist-types/commands/CreateEndpointGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteCrossAccountAttachmentCommand.d.ts +103 -0
- package/dist-types/commands/DescribeCrossAccountAttachmentCommand.d.ts +99 -0
- package/dist-types/commands/ListCrossAccountAttachmentsCommand.d.ts +103 -0
- package/dist-types/commands/ListCrossAccountResourceAccountsCommand.d.ts +79 -0
- package/dist-types/commands/ListCrossAccountResourcesCommand.d.ts +97 -0
- package/dist-types/commands/UpdateCrossAccountAttachmentCommand.d.ts +141 -0
- package/dist-types/commands/UpdateEndpointGroupCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +316 -4
- package/dist-types/pagination/ListCrossAccountAttachmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCrossAccountResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/GlobalAccelerator.d.ts +119 -0
- package/dist-types/ts3.4/GlobalAcceleratorClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateCrossAccountAttachmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCrossAccountAttachmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeCrossAccountAttachmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCrossAccountAttachmentsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCrossAccountResourceAccountsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCrossAccountResourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateCrossAccountAttachmentCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +78 -0
- package/dist-types/ts3.4/pagination/ListCrossAccountAttachmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCrossAccountResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +7 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { GlobalAcceleratorServiceException as __BaseException } from "../models/GlobalAcceleratorServiceException";
|
|
5
|
-
import { AcceleratorNotDisabledException, AcceleratorNotFoundException, AccessDeniedException, AssociatedEndpointGroupFoundException, AssociatedListenerFoundException, ByoipCidrNotFoundException, ConflictException, EndpointAlreadyExistsException, EndpointGroupAlreadyExistsException, EndpointGroupNotFoundException, EndpointNotFoundException, IncorrectCidrStateException, InternalServiceErrorException, InvalidArgumentException, InvalidNextTokenException, InvalidPortRangeException, LimitExceededException, ListenerNotFoundException, TransactionInProgressException, } from "../models/models_0";
|
|
5
|
+
import { AcceleratorNotDisabledException, AcceleratorNotFoundException, AccessDeniedException, AssociatedEndpointGroupFoundException, AssociatedListenerFoundException, AttachmentNotFoundException, ByoipCidrNotFoundException, ConflictException, EndpointAlreadyExistsException, EndpointGroupAlreadyExistsException, EndpointGroupNotFoundException, EndpointNotFoundException, IncorrectCidrStateException, InternalServiceErrorException, InvalidArgumentException, InvalidNextTokenException, InvalidPortRangeException, LimitExceededException, ListenerNotFoundException, TransactionInProgressException, } from "../models/models_0";
|
|
6
6
|
export const se_AddCustomRoutingEndpointsCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("AddCustomRoutingEndpoints");
|
|
8
8
|
let body;
|
|
@@ -33,6 +33,12 @@ export const se_CreateAcceleratorCommand = async (input, context) => {
|
|
|
33
33
|
body = JSON.stringify(se_CreateAcceleratorRequest(input, context));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
|
+
export const se_CreateCrossAccountAttachmentCommand = async (input, context) => {
|
|
37
|
+
const headers = sharedHeaders("CreateCrossAccountAttachment");
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(se_CreateCrossAccountAttachmentRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
36
42
|
export const se_CreateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
37
43
|
const headers = sharedHeaders("CreateCustomRoutingAccelerator");
|
|
38
44
|
let body;
|
|
@@ -69,6 +75,12 @@ export const se_DeleteAcceleratorCommand = async (input, context) => {
|
|
|
69
75
|
body = JSON.stringify(_json(input));
|
|
70
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
77
|
};
|
|
78
|
+
export const se_DeleteCrossAccountAttachmentCommand = async (input, context) => {
|
|
79
|
+
const headers = sharedHeaders("DeleteCrossAccountAttachment");
|
|
80
|
+
let body;
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
82
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
+
};
|
|
72
84
|
export const se_DeleteCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
73
85
|
const headers = sharedHeaders("DeleteCustomRoutingAccelerator");
|
|
74
86
|
let body;
|
|
@@ -123,6 +135,12 @@ export const se_DescribeAcceleratorAttributesCommand = async (input, context) =>
|
|
|
123
135
|
body = JSON.stringify(_json(input));
|
|
124
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
137
|
};
|
|
138
|
+
export const se_DescribeCrossAccountAttachmentCommand = async (input, context) => {
|
|
139
|
+
const headers = sharedHeaders("DescribeCrossAccountAttachment");
|
|
140
|
+
let body;
|
|
141
|
+
body = JSON.stringify(_json(input));
|
|
142
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
+
};
|
|
126
144
|
export const se_DescribeCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
127
145
|
const headers = sharedHeaders("DescribeCustomRoutingAccelerator");
|
|
128
146
|
let body;
|
|
@@ -171,6 +189,24 @@ export const se_ListByoipCidrsCommand = async (input, context) => {
|
|
|
171
189
|
body = JSON.stringify(_json(input));
|
|
172
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
191
|
};
|
|
192
|
+
export const se_ListCrossAccountAttachmentsCommand = async (input, context) => {
|
|
193
|
+
const headers = sharedHeaders("ListCrossAccountAttachments");
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(_json(input));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
export const se_ListCrossAccountResourceAccountsCommand = async (input, context) => {
|
|
199
|
+
const headers = sharedHeaders("ListCrossAccountResourceAccounts");
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(_json(input));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
204
|
+
export const se_ListCrossAccountResourcesCommand = async (input, context) => {
|
|
205
|
+
const headers = sharedHeaders("ListCrossAccountResources");
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify(_json(input));
|
|
208
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
+
};
|
|
174
210
|
export const se_ListCustomRoutingAcceleratorsCommand = async (input, context) => {
|
|
175
211
|
const headers = sharedHeaders("ListCustomRoutingAccelerators");
|
|
176
212
|
let body;
|
|
@@ -261,6 +297,12 @@ export const se_UpdateAcceleratorAttributesCommand = async (input, context) => {
|
|
|
261
297
|
body = JSON.stringify(_json(input));
|
|
262
298
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
299
|
};
|
|
300
|
+
export const se_UpdateCrossAccountAttachmentCommand = async (input, context) => {
|
|
301
|
+
const headers = sharedHeaders("UpdateCrossAccountAttachment");
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(_json(input));
|
|
304
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
+
};
|
|
264
306
|
export const se_UpdateCustomRoutingAcceleratorCommand = async (input, context) => {
|
|
265
307
|
const headers = sharedHeaders("UpdateCustomRoutingAccelerator");
|
|
266
308
|
let body;
|
|
@@ -511,6 +553,50 @@ const de_CreateAcceleratorCommandError = async (output, context) => {
|
|
|
511
553
|
});
|
|
512
554
|
}
|
|
513
555
|
};
|
|
556
|
+
export const de_CreateCrossAccountAttachmentCommand = async (output, context) => {
|
|
557
|
+
if (output.statusCode >= 300) {
|
|
558
|
+
return de_CreateCrossAccountAttachmentCommandError(output, context);
|
|
559
|
+
}
|
|
560
|
+
const data = await parseBody(output.body, context);
|
|
561
|
+
let contents = {};
|
|
562
|
+
contents = de_CreateCrossAccountAttachmentResponse(data, context);
|
|
563
|
+
const response = {
|
|
564
|
+
$metadata: deserializeMetadata(output),
|
|
565
|
+
...contents,
|
|
566
|
+
};
|
|
567
|
+
return response;
|
|
568
|
+
};
|
|
569
|
+
const de_CreateCrossAccountAttachmentCommandError = async (output, context) => {
|
|
570
|
+
const parsedOutput = {
|
|
571
|
+
...output,
|
|
572
|
+
body: await parseErrorBody(output.body, context),
|
|
573
|
+
};
|
|
574
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
|
+
switch (errorCode) {
|
|
576
|
+
case "AccessDeniedException":
|
|
577
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
578
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
579
|
+
case "InternalServiceErrorException":
|
|
580
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
581
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
582
|
+
case "InvalidArgumentException":
|
|
583
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
584
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
585
|
+
case "LimitExceededException":
|
|
586
|
+
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
587
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
588
|
+
case "TransactionInProgressException":
|
|
589
|
+
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
590
|
+
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
591
|
+
default:
|
|
592
|
+
const parsedBody = parsedOutput.body;
|
|
593
|
+
return throwDefaultError({
|
|
594
|
+
output,
|
|
595
|
+
parsedBody,
|
|
596
|
+
errorCode,
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
};
|
|
514
600
|
export const de_CreateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
515
601
|
if (output.statusCode >= 300) {
|
|
516
602
|
return de_CreateCustomRoutingAcceleratorCommandError(output, context);
|
|
@@ -784,6 +870,47 @@ const de_DeleteAcceleratorCommandError = async (output, context) => {
|
|
|
784
870
|
});
|
|
785
871
|
}
|
|
786
872
|
};
|
|
873
|
+
export const de_DeleteCrossAccountAttachmentCommand = async (output, context) => {
|
|
874
|
+
if (output.statusCode >= 300) {
|
|
875
|
+
return de_DeleteCrossAccountAttachmentCommandError(output, context);
|
|
876
|
+
}
|
|
877
|
+
await collectBody(output.body, context);
|
|
878
|
+
const response = {
|
|
879
|
+
$metadata: deserializeMetadata(output),
|
|
880
|
+
};
|
|
881
|
+
return response;
|
|
882
|
+
};
|
|
883
|
+
const de_DeleteCrossAccountAttachmentCommandError = async (output, context) => {
|
|
884
|
+
const parsedOutput = {
|
|
885
|
+
...output,
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
|
+
};
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
+
switch (errorCode) {
|
|
890
|
+
case "AccessDeniedException":
|
|
891
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
892
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
+
case "AttachmentNotFoundException":
|
|
894
|
+
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
895
|
+
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
+
case "InternalServiceErrorException":
|
|
897
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
898
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
899
|
+
case "InvalidArgumentException":
|
|
900
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
901
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
902
|
+
case "TransactionInProgressException":
|
|
903
|
+
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
904
|
+
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
905
|
+
default:
|
|
906
|
+
const parsedBody = parsedOutput.body;
|
|
907
|
+
return throwDefaultError({
|
|
908
|
+
output,
|
|
909
|
+
parsedBody,
|
|
910
|
+
errorCode,
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
};
|
|
787
914
|
export const de_DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
788
915
|
if (output.statusCode >= 300) {
|
|
789
916
|
return de_DeleteCustomRoutingAcceleratorCommandError(output, context);
|
|
@@ -1126,6 +1253,47 @@ const de_DescribeAcceleratorAttributesCommandError = async (output, context) =>
|
|
|
1126
1253
|
});
|
|
1127
1254
|
}
|
|
1128
1255
|
};
|
|
1256
|
+
export const de_DescribeCrossAccountAttachmentCommand = async (output, context) => {
|
|
1257
|
+
if (output.statusCode >= 300) {
|
|
1258
|
+
return de_DescribeCrossAccountAttachmentCommandError(output, context);
|
|
1259
|
+
}
|
|
1260
|
+
const data = await parseBody(output.body, context);
|
|
1261
|
+
let contents = {};
|
|
1262
|
+
contents = de_DescribeCrossAccountAttachmentResponse(data, context);
|
|
1263
|
+
const response = {
|
|
1264
|
+
$metadata: deserializeMetadata(output),
|
|
1265
|
+
...contents,
|
|
1266
|
+
};
|
|
1267
|
+
return response;
|
|
1268
|
+
};
|
|
1269
|
+
const de_DescribeCrossAccountAttachmentCommandError = async (output, context) => {
|
|
1270
|
+
const parsedOutput = {
|
|
1271
|
+
...output,
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
|
+
};
|
|
1274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
+
switch (errorCode) {
|
|
1276
|
+
case "AccessDeniedException":
|
|
1277
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1278
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1279
|
+
case "AttachmentNotFoundException":
|
|
1280
|
+
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
1281
|
+
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
+
case "InternalServiceErrorException":
|
|
1283
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1284
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "InvalidArgumentException":
|
|
1286
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1287
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1288
|
+
default:
|
|
1289
|
+
const parsedBody = parsedOutput.body;
|
|
1290
|
+
return throwDefaultError({
|
|
1291
|
+
output,
|
|
1292
|
+
parsedBody,
|
|
1293
|
+
errorCode,
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1129
1297
|
export const de_DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
1130
1298
|
if (output.statusCode >= 300) {
|
|
1131
1299
|
return de_DescribeCustomRoutingAcceleratorCommandError(output, context);
|
|
@@ -1433,6 +1601,126 @@ const de_ListByoipCidrsCommandError = async (output, context) => {
|
|
|
1433
1601
|
});
|
|
1434
1602
|
}
|
|
1435
1603
|
};
|
|
1604
|
+
export const de_ListCrossAccountAttachmentsCommand = async (output, context) => {
|
|
1605
|
+
if (output.statusCode >= 300) {
|
|
1606
|
+
return de_ListCrossAccountAttachmentsCommandError(output, context);
|
|
1607
|
+
}
|
|
1608
|
+
const data = await parseBody(output.body, context);
|
|
1609
|
+
let contents = {};
|
|
1610
|
+
contents = de_ListCrossAccountAttachmentsResponse(data, context);
|
|
1611
|
+
const response = {
|
|
1612
|
+
$metadata: deserializeMetadata(output),
|
|
1613
|
+
...contents,
|
|
1614
|
+
};
|
|
1615
|
+
return response;
|
|
1616
|
+
};
|
|
1617
|
+
const de_ListCrossAccountAttachmentsCommandError = async (output, context) => {
|
|
1618
|
+
const parsedOutput = {
|
|
1619
|
+
...output,
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
|
+
};
|
|
1622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
+
switch (errorCode) {
|
|
1624
|
+
case "AccessDeniedException":
|
|
1625
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1626
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1627
|
+
case "InternalServiceErrorException":
|
|
1628
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1629
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1630
|
+
case "InvalidArgumentException":
|
|
1631
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1632
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1633
|
+
case "InvalidNextTokenException":
|
|
1634
|
+
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1635
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1636
|
+
default:
|
|
1637
|
+
const parsedBody = parsedOutput.body;
|
|
1638
|
+
return throwDefaultError({
|
|
1639
|
+
output,
|
|
1640
|
+
parsedBody,
|
|
1641
|
+
errorCode,
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
export const de_ListCrossAccountResourceAccountsCommand = async (output, context) => {
|
|
1646
|
+
if (output.statusCode >= 300) {
|
|
1647
|
+
return de_ListCrossAccountResourceAccountsCommandError(output, context);
|
|
1648
|
+
}
|
|
1649
|
+
const data = await parseBody(output.body, context);
|
|
1650
|
+
let contents = {};
|
|
1651
|
+
contents = _json(data);
|
|
1652
|
+
const response = {
|
|
1653
|
+
$metadata: deserializeMetadata(output),
|
|
1654
|
+
...contents,
|
|
1655
|
+
};
|
|
1656
|
+
return response;
|
|
1657
|
+
};
|
|
1658
|
+
const de_ListCrossAccountResourceAccountsCommandError = async (output, context) => {
|
|
1659
|
+
const parsedOutput = {
|
|
1660
|
+
...output,
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
|
+
};
|
|
1663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
+
switch (errorCode) {
|
|
1665
|
+
case "AccessDeniedException":
|
|
1666
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1667
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1668
|
+
case "InternalServiceErrorException":
|
|
1669
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1670
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1671
|
+
default:
|
|
1672
|
+
const parsedBody = parsedOutput.body;
|
|
1673
|
+
return throwDefaultError({
|
|
1674
|
+
output,
|
|
1675
|
+
parsedBody,
|
|
1676
|
+
errorCode,
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
};
|
|
1680
|
+
export const de_ListCrossAccountResourcesCommand = async (output, context) => {
|
|
1681
|
+
if (output.statusCode >= 300) {
|
|
1682
|
+
return de_ListCrossAccountResourcesCommandError(output, context);
|
|
1683
|
+
}
|
|
1684
|
+
const data = await parseBody(output.body, context);
|
|
1685
|
+
let contents = {};
|
|
1686
|
+
contents = _json(data);
|
|
1687
|
+
const response = {
|
|
1688
|
+
$metadata: deserializeMetadata(output),
|
|
1689
|
+
...contents,
|
|
1690
|
+
};
|
|
1691
|
+
return response;
|
|
1692
|
+
};
|
|
1693
|
+
const de_ListCrossAccountResourcesCommandError = async (output, context) => {
|
|
1694
|
+
const parsedOutput = {
|
|
1695
|
+
...output,
|
|
1696
|
+
body: await parseErrorBody(output.body, context),
|
|
1697
|
+
};
|
|
1698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
switch (errorCode) {
|
|
1700
|
+
case "AcceleratorNotFoundException":
|
|
1701
|
+
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
1702
|
+
throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
|
|
1703
|
+
case "AccessDeniedException":
|
|
1704
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
1705
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1706
|
+
case "InternalServiceErrorException":
|
|
1707
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1708
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1709
|
+
case "InvalidArgumentException":
|
|
1710
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
1711
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1712
|
+
case "InvalidNextTokenException":
|
|
1713
|
+
case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
|
|
1714
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1715
|
+
default:
|
|
1716
|
+
const parsedBody = parsedOutput.body;
|
|
1717
|
+
return throwDefaultError({
|
|
1718
|
+
output,
|
|
1719
|
+
parsedBody,
|
|
1720
|
+
errorCode,
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
};
|
|
1436
1724
|
export const de_ListCustomRoutingAcceleratorsCommand = async (output, context) => {
|
|
1437
1725
|
if (output.statusCode >= 300) {
|
|
1438
1726
|
return de_ListCustomRoutingAcceleratorsCommandError(output, context);
|
|
@@ -2045,6 +2333,53 @@ const de_UpdateAcceleratorAttributesCommandError = async (output, context) => {
|
|
|
2045
2333
|
});
|
|
2046
2334
|
}
|
|
2047
2335
|
};
|
|
2336
|
+
export const de_UpdateCrossAccountAttachmentCommand = async (output, context) => {
|
|
2337
|
+
if (output.statusCode >= 300) {
|
|
2338
|
+
return de_UpdateCrossAccountAttachmentCommandError(output, context);
|
|
2339
|
+
}
|
|
2340
|
+
const data = await parseBody(output.body, context);
|
|
2341
|
+
let contents = {};
|
|
2342
|
+
contents = de_UpdateCrossAccountAttachmentResponse(data, context);
|
|
2343
|
+
const response = {
|
|
2344
|
+
$metadata: deserializeMetadata(output),
|
|
2345
|
+
...contents,
|
|
2346
|
+
};
|
|
2347
|
+
return response;
|
|
2348
|
+
};
|
|
2349
|
+
const de_UpdateCrossAccountAttachmentCommandError = async (output, context) => {
|
|
2350
|
+
const parsedOutput = {
|
|
2351
|
+
...output,
|
|
2352
|
+
body: await parseErrorBody(output.body, context),
|
|
2353
|
+
};
|
|
2354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
+
switch (errorCode) {
|
|
2356
|
+
case "AccessDeniedException":
|
|
2357
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2358
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2359
|
+
case "AttachmentNotFoundException":
|
|
2360
|
+
case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
|
|
2361
|
+
throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
|
|
2362
|
+
case "InternalServiceErrorException":
|
|
2363
|
+
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2364
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2365
|
+
case "InvalidArgumentException":
|
|
2366
|
+
case "com.amazonaws.globalaccelerator#InvalidArgumentException":
|
|
2367
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2368
|
+
case "LimitExceededException":
|
|
2369
|
+
case "com.amazonaws.globalaccelerator#LimitExceededException":
|
|
2370
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2371
|
+
case "TransactionInProgressException":
|
|
2372
|
+
case "com.amazonaws.globalaccelerator#TransactionInProgressException":
|
|
2373
|
+
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
2374
|
+
default:
|
|
2375
|
+
const parsedBody = parsedOutput.body;
|
|
2376
|
+
return throwDefaultError({
|
|
2377
|
+
output,
|
|
2378
|
+
parsedBody,
|
|
2379
|
+
errorCode,
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
};
|
|
2048
2383
|
export const de_UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
2049
2384
|
if (output.statusCode >= 300) {
|
|
2050
2385
|
return de_UpdateCustomRoutingAcceleratorCommandError(output, context);
|
|
@@ -2345,6 +2680,15 @@ const de_AssociatedListenerFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
2345
2680
|
});
|
|
2346
2681
|
return __decorateServiceException(exception, body);
|
|
2347
2682
|
};
|
|
2683
|
+
const de_AttachmentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2684
|
+
const body = parsedOutput.body;
|
|
2685
|
+
const deserialized = _json(body);
|
|
2686
|
+
const exception = new AttachmentNotFoundException({
|
|
2687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2688
|
+
...deserialized,
|
|
2689
|
+
});
|
|
2690
|
+
return __decorateServiceException(exception, body);
|
|
2691
|
+
};
|
|
2348
2692
|
const de_ByoipCidrNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2349
2693
|
const body = parsedOutput.body;
|
|
2350
2694
|
const deserialized = _json(body);
|
|
@@ -2481,6 +2825,15 @@ const se_CreateAcceleratorRequest = (input, context) => {
|
|
|
2481
2825
|
Tags: _json,
|
|
2482
2826
|
});
|
|
2483
2827
|
};
|
|
2828
|
+
const se_CreateCrossAccountAttachmentRequest = (input, context) => {
|
|
2829
|
+
return take(input, {
|
|
2830
|
+
IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2831
|
+
Name: [],
|
|
2832
|
+
Principals: _json,
|
|
2833
|
+
Resources: _json,
|
|
2834
|
+
Tags: _json,
|
|
2835
|
+
});
|
|
2836
|
+
};
|
|
2484
2837
|
const se_CreateCustomRoutingAcceleratorRequest = (input, context) => {
|
|
2485
2838
|
return take(input, {
|
|
2486
2839
|
Enabled: [],
|
|
@@ -2585,6 +2938,24 @@ const de_AdvertiseByoipCidrResponse = (output, context) => {
|
|
|
2585
2938
|
ByoipCidr: (_) => de_ByoipCidr(_, context),
|
|
2586
2939
|
});
|
|
2587
2940
|
};
|
|
2941
|
+
const de_Attachment = (output, context) => {
|
|
2942
|
+
return take(output, {
|
|
2943
|
+
AttachmentArn: __expectString,
|
|
2944
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2945
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2946
|
+
Name: __expectString,
|
|
2947
|
+
Principals: _json,
|
|
2948
|
+
Resources: _json,
|
|
2949
|
+
});
|
|
2950
|
+
};
|
|
2951
|
+
const de_Attachments = (output, context) => {
|
|
2952
|
+
const retVal = (output || [])
|
|
2953
|
+
.filter((e) => e != null)
|
|
2954
|
+
.map((entry) => {
|
|
2955
|
+
return de_Attachment(entry, context);
|
|
2956
|
+
});
|
|
2957
|
+
return retVal;
|
|
2958
|
+
};
|
|
2588
2959
|
const de_ByoipCidr = (output, context) => {
|
|
2589
2960
|
return take(output, {
|
|
2590
2961
|
Cidr: __expectString,
|
|
@@ -2619,6 +2990,11 @@ const de_CreateAcceleratorResponse = (output, context) => {
|
|
|
2619
2990
|
Accelerator: (_) => de_Accelerator(_, context),
|
|
2620
2991
|
});
|
|
2621
2992
|
};
|
|
2993
|
+
const de_CreateCrossAccountAttachmentResponse = (output, context) => {
|
|
2994
|
+
return take(output, {
|
|
2995
|
+
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
2996
|
+
});
|
|
2997
|
+
};
|
|
2622
2998
|
const de_CreateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
2623
2999
|
return take(output, {
|
|
2624
3000
|
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
@@ -2660,6 +3036,11 @@ const de_DescribeAcceleratorResponse = (output, context) => {
|
|
|
2660
3036
|
Accelerator: (_) => de_Accelerator(_, context),
|
|
2661
3037
|
});
|
|
2662
3038
|
};
|
|
3039
|
+
const de_DescribeCrossAccountAttachmentResponse = (output, context) => {
|
|
3040
|
+
return take(output, {
|
|
3041
|
+
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
3042
|
+
});
|
|
3043
|
+
};
|
|
2663
3044
|
const de_DescribeCustomRoutingAcceleratorResponse = (output, context) => {
|
|
2664
3045
|
return take(output, {
|
|
2665
3046
|
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
@@ -2704,6 +3085,12 @@ const de_ListByoipCidrsResponse = (output, context) => {
|
|
|
2704
3085
|
NextToken: __expectString,
|
|
2705
3086
|
});
|
|
2706
3087
|
};
|
|
3088
|
+
const de_ListCrossAccountAttachmentsResponse = (output, context) => {
|
|
3089
|
+
return take(output, {
|
|
3090
|
+
CrossAccountAttachments: (_) => de_Attachments(_, context),
|
|
3091
|
+
NextToken: __expectString,
|
|
3092
|
+
});
|
|
3093
|
+
};
|
|
2707
3094
|
const de_ListCustomRoutingAcceleratorsResponse = (output, context) => {
|
|
2708
3095
|
return take(output, {
|
|
2709
3096
|
Accelerators: (_) => de_CustomRoutingAccelerators(_, context),
|
|
@@ -2726,6 +3113,11 @@ const de_UpdateAcceleratorResponse = (output, context) => {
|
|
|
2726
3113
|
Accelerator: (_) => de_Accelerator(_, context),
|
|
2727
3114
|
});
|
|
2728
3115
|
};
|
|
3116
|
+
const de_UpdateCrossAccountAttachmentResponse = (output, context) => {
|
|
3117
|
+
return take(output, {
|
|
3118
|
+
CrossAccountAttachment: (_) => de_Attachment(_, context),
|
|
3119
|
+
});
|
|
3120
|
+
};
|
|
2729
3121
|
const de_UpdateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
2730
3122
|
return take(output, {
|
|
2731
3123
|
Accelerator: (_) => de_CustomRoutingAccelerator(_, context),
|
|
@@ -4,12 +4,14 @@ import { AddEndpointsCommandInput, AddEndpointsCommandOutput } from "./commands/
|
|
|
4
4
|
import { AdvertiseByoipCidrCommandInput, AdvertiseByoipCidrCommandOutput } from "./commands/AdvertiseByoipCidrCommand";
|
|
5
5
|
import { AllowCustomRoutingTrafficCommandInput, AllowCustomRoutingTrafficCommandOutput } from "./commands/AllowCustomRoutingTrafficCommand";
|
|
6
6
|
import { CreateAcceleratorCommandInput, CreateAcceleratorCommandOutput } from "./commands/CreateAcceleratorCommand";
|
|
7
|
+
import { CreateCrossAccountAttachmentCommandInput, CreateCrossAccountAttachmentCommandOutput } from "./commands/CreateCrossAccountAttachmentCommand";
|
|
7
8
|
import { CreateCustomRoutingAcceleratorCommandInput, CreateCustomRoutingAcceleratorCommandOutput } from "./commands/CreateCustomRoutingAcceleratorCommand";
|
|
8
9
|
import { CreateCustomRoutingEndpointGroupCommandInput, CreateCustomRoutingEndpointGroupCommandOutput } from "./commands/CreateCustomRoutingEndpointGroupCommand";
|
|
9
10
|
import { CreateCustomRoutingListenerCommandInput, CreateCustomRoutingListenerCommandOutput } from "./commands/CreateCustomRoutingListenerCommand";
|
|
10
11
|
import { CreateEndpointGroupCommandInput, CreateEndpointGroupCommandOutput } from "./commands/CreateEndpointGroupCommand";
|
|
11
12
|
import { CreateListenerCommandInput, CreateListenerCommandOutput } from "./commands/CreateListenerCommand";
|
|
12
13
|
import { DeleteAcceleratorCommandInput, DeleteAcceleratorCommandOutput } from "./commands/DeleteAcceleratorCommand";
|
|
14
|
+
import { DeleteCrossAccountAttachmentCommandInput, DeleteCrossAccountAttachmentCommandOutput } from "./commands/DeleteCrossAccountAttachmentCommand";
|
|
13
15
|
import { DeleteCustomRoutingAcceleratorCommandInput, DeleteCustomRoutingAcceleratorCommandOutput } from "./commands/DeleteCustomRoutingAcceleratorCommand";
|
|
14
16
|
import { DeleteCustomRoutingEndpointGroupCommandInput, DeleteCustomRoutingEndpointGroupCommandOutput } from "./commands/DeleteCustomRoutingEndpointGroupCommand";
|
|
15
17
|
import { DeleteCustomRoutingListenerCommandInput, DeleteCustomRoutingListenerCommandOutput } from "./commands/DeleteCustomRoutingListenerCommand";
|
|
@@ -19,6 +21,7 @@ import { DenyCustomRoutingTrafficCommandInput, DenyCustomRoutingTrafficCommandOu
|
|
|
19
21
|
import { DeprovisionByoipCidrCommandInput, DeprovisionByoipCidrCommandOutput } from "./commands/DeprovisionByoipCidrCommand";
|
|
20
22
|
import { DescribeAcceleratorAttributesCommandInput, DescribeAcceleratorAttributesCommandOutput } from "./commands/DescribeAcceleratorAttributesCommand";
|
|
21
23
|
import { DescribeAcceleratorCommandInput, DescribeAcceleratorCommandOutput } from "./commands/DescribeAcceleratorCommand";
|
|
24
|
+
import { DescribeCrossAccountAttachmentCommandInput, DescribeCrossAccountAttachmentCommandOutput } from "./commands/DescribeCrossAccountAttachmentCommand";
|
|
22
25
|
import { DescribeCustomRoutingAcceleratorAttributesCommandInput, DescribeCustomRoutingAcceleratorAttributesCommandOutput } from "./commands/DescribeCustomRoutingAcceleratorAttributesCommand";
|
|
23
26
|
import { DescribeCustomRoutingAcceleratorCommandInput, DescribeCustomRoutingAcceleratorCommandOutput } from "./commands/DescribeCustomRoutingAcceleratorCommand";
|
|
24
27
|
import { DescribeCustomRoutingEndpointGroupCommandInput, DescribeCustomRoutingEndpointGroupCommandOutput } from "./commands/DescribeCustomRoutingEndpointGroupCommand";
|
|
@@ -27,6 +30,9 @@ import { DescribeEndpointGroupCommandInput, DescribeEndpointGroupCommandOutput }
|
|
|
27
30
|
import { DescribeListenerCommandInput, DescribeListenerCommandOutput } from "./commands/DescribeListenerCommand";
|
|
28
31
|
import { ListAcceleratorsCommandInput, ListAcceleratorsCommandOutput } from "./commands/ListAcceleratorsCommand";
|
|
29
32
|
import { ListByoipCidrsCommandInput, ListByoipCidrsCommandOutput } from "./commands/ListByoipCidrsCommand";
|
|
33
|
+
import { ListCrossAccountAttachmentsCommandInput, ListCrossAccountAttachmentsCommandOutput } from "./commands/ListCrossAccountAttachmentsCommand";
|
|
34
|
+
import { ListCrossAccountResourceAccountsCommandInput, ListCrossAccountResourceAccountsCommandOutput } from "./commands/ListCrossAccountResourceAccountsCommand";
|
|
35
|
+
import { ListCrossAccountResourcesCommandInput, ListCrossAccountResourcesCommandOutput } from "./commands/ListCrossAccountResourcesCommand";
|
|
30
36
|
import { ListCustomRoutingAcceleratorsCommandInput, ListCustomRoutingAcceleratorsCommandOutput } from "./commands/ListCustomRoutingAcceleratorsCommand";
|
|
31
37
|
import { ListCustomRoutingEndpointGroupsCommandInput, ListCustomRoutingEndpointGroupsCommandOutput } from "./commands/ListCustomRoutingEndpointGroupsCommand";
|
|
32
38
|
import { ListCustomRoutingListenersCommandInput, ListCustomRoutingListenersCommandOutput } from "./commands/ListCustomRoutingListenersCommand";
|
|
@@ -42,6 +48,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
42
48
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
43
49
|
import { UpdateAcceleratorAttributesCommandInput, UpdateAcceleratorAttributesCommandOutput } from "./commands/UpdateAcceleratorAttributesCommand";
|
|
44
50
|
import { UpdateAcceleratorCommandInput, UpdateAcceleratorCommandOutput } from "./commands/UpdateAcceleratorCommand";
|
|
51
|
+
import { UpdateCrossAccountAttachmentCommandInput, UpdateCrossAccountAttachmentCommandOutput } from "./commands/UpdateCrossAccountAttachmentCommand";
|
|
45
52
|
import { UpdateCustomRoutingAcceleratorAttributesCommandInput, UpdateCustomRoutingAcceleratorAttributesCommandOutput } from "./commands/UpdateCustomRoutingAcceleratorAttributesCommand";
|
|
46
53
|
import { UpdateCustomRoutingAcceleratorCommandInput, UpdateCustomRoutingAcceleratorCommandOutput } from "./commands/UpdateCustomRoutingAcceleratorCommand";
|
|
47
54
|
import { UpdateCustomRoutingListenerCommandInput, UpdateCustomRoutingListenerCommandOutput } from "./commands/UpdateCustomRoutingListenerCommand";
|
|
@@ -80,6 +87,12 @@ export interface GlobalAccelerator {
|
|
|
80
87
|
createAccelerator(args: CreateAcceleratorCommandInput, options?: __HttpHandlerOptions): Promise<CreateAcceleratorCommandOutput>;
|
|
81
88
|
createAccelerator(args: CreateAcceleratorCommandInput, cb: (err: any, data?: CreateAcceleratorCommandOutput) => void): void;
|
|
82
89
|
createAccelerator(args: CreateAcceleratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAcceleratorCommandOutput) => void): void;
|
|
90
|
+
/**
|
|
91
|
+
* @see {@link CreateCrossAccountAttachmentCommand}
|
|
92
|
+
*/
|
|
93
|
+
createCrossAccountAttachment(args: CreateCrossAccountAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateCrossAccountAttachmentCommandOutput>;
|
|
94
|
+
createCrossAccountAttachment(args: CreateCrossAccountAttachmentCommandInput, cb: (err: any, data?: CreateCrossAccountAttachmentCommandOutput) => void): void;
|
|
95
|
+
createCrossAccountAttachment(args: CreateCrossAccountAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCrossAccountAttachmentCommandOutput) => void): void;
|
|
83
96
|
/**
|
|
84
97
|
* @see {@link CreateCustomRoutingAcceleratorCommand}
|
|
85
98
|
*/
|
|
@@ -116,6 +129,12 @@ export interface GlobalAccelerator {
|
|
|
116
129
|
deleteAccelerator(args: DeleteAcceleratorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAcceleratorCommandOutput>;
|
|
117
130
|
deleteAccelerator(args: DeleteAcceleratorCommandInput, cb: (err: any, data?: DeleteAcceleratorCommandOutput) => void): void;
|
|
118
131
|
deleteAccelerator(args: DeleteAcceleratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAcceleratorCommandOutput) => void): void;
|
|
132
|
+
/**
|
|
133
|
+
* @see {@link DeleteCrossAccountAttachmentCommand}
|
|
134
|
+
*/
|
|
135
|
+
deleteCrossAccountAttachment(args: DeleteCrossAccountAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCrossAccountAttachmentCommandOutput>;
|
|
136
|
+
deleteCrossAccountAttachment(args: DeleteCrossAccountAttachmentCommandInput, cb: (err: any, data?: DeleteCrossAccountAttachmentCommandOutput) => void): void;
|
|
137
|
+
deleteCrossAccountAttachment(args: DeleteCrossAccountAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCrossAccountAttachmentCommandOutput) => void): void;
|
|
119
138
|
/**
|
|
120
139
|
* @see {@link DeleteCustomRoutingAcceleratorCommand}
|
|
121
140
|
*/
|
|
@@ -170,6 +189,12 @@ export interface GlobalAccelerator {
|
|
|
170
189
|
describeAcceleratorAttributes(args: DescribeAcceleratorAttributesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAcceleratorAttributesCommandOutput>;
|
|
171
190
|
describeAcceleratorAttributes(args: DescribeAcceleratorAttributesCommandInput, cb: (err: any, data?: DescribeAcceleratorAttributesCommandOutput) => void): void;
|
|
172
191
|
describeAcceleratorAttributes(args: DescribeAcceleratorAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAcceleratorAttributesCommandOutput) => void): void;
|
|
192
|
+
/**
|
|
193
|
+
* @see {@link DescribeCrossAccountAttachmentCommand}
|
|
194
|
+
*/
|
|
195
|
+
describeCrossAccountAttachment(args: DescribeCrossAccountAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCrossAccountAttachmentCommandOutput>;
|
|
196
|
+
describeCrossAccountAttachment(args: DescribeCrossAccountAttachmentCommandInput, cb: (err: any, data?: DescribeCrossAccountAttachmentCommandOutput) => void): void;
|
|
197
|
+
describeCrossAccountAttachment(args: DescribeCrossAccountAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCrossAccountAttachmentCommandOutput) => void): void;
|
|
173
198
|
/**
|
|
174
199
|
* @see {@link DescribeCustomRoutingAcceleratorCommand}
|
|
175
200
|
*/
|
|
@@ -218,6 +243,24 @@ export interface GlobalAccelerator {
|
|
|
218
243
|
listByoipCidrs(args: ListByoipCidrsCommandInput, options?: __HttpHandlerOptions): Promise<ListByoipCidrsCommandOutput>;
|
|
219
244
|
listByoipCidrs(args: ListByoipCidrsCommandInput, cb: (err: any, data?: ListByoipCidrsCommandOutput) => void): void;
|
|
220
245
|
listByoipCidrs(args: ListByoipCidrsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListByoipCidrsCommandOutput) => void): void;
|
|
246
|
+
/**
|
|
247
|
+
* @see {@link ListCrossAccountAttachmentsCommand}
|
|
248
|
+
*/
|
|
249
|
+
listCrossAccountAttachments(args: ListCrossAccountAttachmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListCrossAccountAttachmentsCommandOutput>;
|
|
250
|
+
listCrossAccountAttachments(args: ListCrossAccountAttachmentsCommandInput, cb: (err: any, data?: ListCrossAccountAttachmentsCommandOutput) => void): void;
|
|
251
|
+
listCrossAccountAttachments(args: ListCrossAccountAttachmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCrossAccountAttachmentsCommandOutput) => void): void;
|
|
252
|
+
/**
|
|
253
|
+
* @see {@link ListCrossAccountResourceAccountsCommand}
|
|
254
|
+
*/
|
|
255
|
+
listCrossAccountResourceAccounts(args: ListCrossAccountResourceAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListCrossAccountResourceAccountsCommandOutput>;
|
|
256
|
+
listCrossAccountResourceAccounts(args: ListCrossAccountResourceAccountsCommandInput, cb: (err: any, data?: ListCrossAccountResourceAccountsCommandOutput) => void): void;
|
|
257
|
+
listCrossAccountResourceAccounts(args: ListCrossAccountResourceAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCrossAccountResourceAccountsCommandOutput) => void): void;
|
|
258
|
+
/**
|
|
259
|
+
* @see {@link ListCrossAccountResourcesCommand}
|
|
260
|
+
*/
|
|
261
|
+
listCrossAccountResources(args: ListCrossAccountResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListCrossAccountResourcesCommandOutput>;
|
|
262
|
+
listCrossAccountResources(args: ListCrossAccountResourcesCommandInput, cb: (err: any, data?: ListCrossAccountResourcesCommandOutput) => void): void;
|
|
263
|
+
listCrossAccountResources(args: ListCrossAccountResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCrossAccountResourcesCommandOutput) => void): void;
|
|
221
264
|
/**
|
|
222
265
|
* @see {@link ListCustomRoutingAcceleratorsCommand}
|
|
223
266
|
*/
|
|
@@ -308,6 +351,12 @@ export interface GlobalAccelerator {
|
|
|
308
351
|
updateAcceleratorAttributes(args: UpdateAcceleratorAttributesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAcceleratorAttributesCommandOutput>;
|
|
309
352
|
updateAcceleratorAttributes(args: UpdateAcceleratorAttributesCommandInput, cb: (err: any, data?: UpdateAcceleratorAttributesCommandOutput) => void): void;
|
|
310
353
|
updateAcceleratorAttributes(args: UpdateAcceleratorAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAcceleratorAttributesCommandOutput) => void): void;
|
|
354
|
+
/**
|
|
355
|
+
* @see {@link UpdateCrossAccountAttachmentCommand}
|
|
356
|
+
*/
|
|
357
|
+
updateCrossAccountAttachment(args: UpdateCrossAccountAttachmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCrossAccountAttachmentCommandOutput>;
|
|
358
|
+
updateCrossAccountAttachment(args: UpdateCrossAccountAttachmentCommandInput, cb: (err: any, data?: UpdateCrossAccountAttachmentCommandOutput) => void): void;
|
|
359
|
+
updateCrossAccountAttachment(args: UpdateCrossAccountAttachmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCrossAccountAttachmentCommandOutput) => void): void;
|
|
311
360
|
/**
|
|
312
361
|
* @see {@link UpdateCustomRoutingAcceleratorCommand}
|
|
313
362
|
*/
|
|
@@ -374,7 +423,7 @@ export interface GlobalAccelerator {
|
|
|
374
423
|
* are anycast from the Amazon Web Services edge network. For IPv4, Global Accelerator provides two static IPv4 addresses. For dual-stack,
|
|
375
424
|
* Global Accelerator provides a total of four addresses: two static IPv4 addresses and two static IPv6 addresses.
|
|
376
425
|
* With a standard accelerator for IPv4, instead of using the addresses that Global Accelerator provides, you can configure
|
|
377
|
-
* these entry points to be IPv4 addresses from your own IP address ranges that you bring
|
|
426
|
+
* these entry points to be IPv4 addresses from your own IP address ranges that you bring to Global Accelerator (BYOIP). </p>
|
|
378
427
|
* <p>For a standard accelerator,
|
|
379
428
|
* they distribute incoming application traffic across multiple endpoint resources in multiple Amazon Web Services Regions , which increases
|
|
380
429
|
* the availability of your applications. Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers,
|