@aws-sdk/client-ec2 3.488.0 → 3.490.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/dist-cjs/EC2Client.js +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/protocols/Aws_ec2.js +25 -9
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-es/EC2Client.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/protocols/Aws_ec2.js +25 -9
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/EC2Client.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/commands/AttachVolumeCommand.d.ts +2 -0
- package/dist-types/commands/CreateVolumeCommand.d.ts +2 -0
- package/dist-types/commands/DescribeInstanceAttributeCommand.d.ts +2 -0
- package/dist-types/commands/DescribeInstancesCommand.d.ts +2 -0
- package/dist-types/commands/DescribeVolumesCommand.d.ts +2 -0
- package/dist-types/commands/DetachVolumeCommand.d.ts +5 -0
- package/dist-types/commands/RunInstancesCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +18 -0
- package/dist-types/models/models_1.d.ts +7 -8
- package/dist-types/models/models_3.d.ts +9 -9
- package/dist-types/models/models_4.d.ts +26 -15
- package/dist-types/models/models_5.d.ts +6 -3
- package/dist-types/models/models_6.d.ts +14 -15
- package/dist-types/models/models_7.d.ts +14 -13
- package/dist-types/ts3.4/EC2Client.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/models/models_4.d.ts +2 -0
- package/package.json +14 -14
package/dist-cjs/EC2Client.js
CHANGED
|
@@ -17,14 +17,6 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
|
17
17
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
18
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
19
19
|
class EC2Client extends smithy_client_1.Client {
|
|
20
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
21
|
-
return httpAuthSchemeProvider_1.defaultEC2HttpAuthSchemeParametersProvider;
|
|
22
|
-
}
|
|
23
|
-
getIdentityProviderConfigProvider() {
|
|
24
|
-
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
25
|
-
"aws.auth#sigv4": config.credentials,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
20
|
constructor(...[configuration]) {
|
|
29
21
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
30
22
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
@@ -52,5 +44,13 @@ class EC2Client extends smithy_client_1.Client {
|
|
|
52
44
|
destroy() {
|
|
53
45
|
super.destroy();
|
|
54
46
|
}
|
|
47
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
48
|
+
return httpAuthSchemeProvider_1.defaultEC2HttpAuthSchemeParametersProvider;
|
|
49
|
+
}
|
|
50
|
+
getIdentityProviderConfigProvider() {
|
|
51
|
+
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
52
|
+
"aws.auth#sigv4": config.credentials,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
55
|
}
|
|
56
56
|
exports.EC2Client = EC2Client;
|
|
@@ -39,7 +39,7 @@ const defaultEC2HttpAuthSchemeProvider = (authParameters) => {
|
|
|
39
39
|
};
|
|
40
40
|
exports.defaultEC2HttpAuthSchemeProvider = defaultEC2HttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
-
const config_0 = (0, core_1.
|
|
42
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
43
|
return {
|
|
44
44
|
...config_0,
|
|
45
45
|
};
|
|
@@ -52768,6 +52768,12 @@ const de_EbsInstanceBlockDevice = (output, context) => {
|
|
|
52768
52768
|
if (output[_vIo] != null) {
|
|
52769
52769
|
contents[_VIo] = (0, smithy_client_1.expectString)(output[_vIo]);
|
|
52770
52770
|
}
|
|
52771
|
+
if (output[_aRs] != null) {
|
|
52772
|
+
contents[_ARs] = (0, smithy_client_1.expectString)(output[_aRs]);
|
|
52773
|
+
}
|
|
52774
|
+
if (output[_vOI] != null) {
|
|
52775
|
+
contents[_VOI] = (0, smithy_client_1.expectString)(output[_vOI]);
|
|
52776
|
+
}
|
|
52771
52777
|
return contents;
|
|
52772
52778
|
};
|
|
52773
52779
|
const de_EbsOptimizedInfo = (output, context) => {
|
|
@@ -54209,10 +54215,10 @@ const de_FpgaInfo = (output, context) => {
|
|
|
54209
54215
|
const de_GetAssociatedEnclaveCertificateIamRolesResult = (output, context) => {
|
|
54210
54216
|
const contents = {};
|
|
54211
54217
|
if (output.associatedRoleSet === "") {
|
|
54212
|
-
contents[
|
|
54218
|
+
contents[_ARss] = [];
|
|
54213
54219
|
}
|
|
54214
54220
|
else if (output[_aRS] != null && output[_aRS][_i] != null) {
|
|
54215
|
-
contents[
|
|
54221
|
+
contents[_ARss] = de_AssociatedRolesList((0, smithy_client_1.getArrayIfSingleItem)(output[_aRS][_i]), context);
|
|
54216
54222
|
}
|
|
54217
54223
|
return contents;
|
|
54218
54224
|
};
|
|
@@ -57954,7 +57960,7 @@ const de_Ipv6CidrAssociation = (output, context) => {
|
|
|
57954
57960
|
contents[_ICp] = (0, smithy_client_1.expectString)(output[_iCp]);
|
|
57955
57961
|
}
|
|
57956
57962
|
if (output[_aRs] != null) {
|
|
57957
|
-
contents[
|
|
57963
|
+
contents[_ARs] = (0, smithy_client_1.expectString)(output[_aRs]);
|
|
57958
57964
|
}
|
|
57959
57965
|
return contents;
|
|
57960
57966
|
};
|
|
@@ -65575,8 +65581,8 @@ const de_TransitGatewayVpcAttachment = (output, context) => {
|
|
|
65575
65581
|
if (output[_vI] != null) {
|
|
65576
65582
|
contents[_VI] = (0, smithy_client_1.expectString)(output[_vI]);
|
|
65577
65583
|
}
|
|
65578
|
-
if (output[
|
|
65579
|
-
contents[
|
|
65584
|
+
if (output[_vOIp] != null) {
|
|
65585
|
+
contents[_VOIp] = (0, smithy_client_1.expectString)(output[_vOIp]);
|
|
65580
65586
|
}
|
|
65581
65587
|
if (output[_st] != null) {
|
|
65582
65588
|
contents[_Stat] = (0, smithy_client_1.expectString)(output[_st]);
|
|
@@ -66495,6 +66501,12 @@ const de_VolumeAttachment = (output, context) => {
|
|
|
66495
66501
|
if (output[_dOT] != null) {
|
|
66496
66502
|
contents[_DOT] = (0, smithy_client_1.parseBoolean)(output[_dOT]);
|
|
66497
66503
|
}
|
|
66504
|
+
if (output[_aRs] != null) {
|
|
66505
|
+
contents[_ARs] = (0, smithy_client_1.expectString)(output[_aRs]);
|
|
66506
|
+
}
|
|
66507
|
+
if (output[_iOS] != null) {
|
|
66508
|
+
contents[_IOS] = (0, smithy_client_1.expectString)(output[_iOS]);
|
|
66509
|
+
}
|
|
66498
66510
|
return contents;
|
|
66499
66511
|
};
|
|
66500
66512
|
const de_VolumeAttachmentList = (output, context) => {
|
|
@@ -67433,8 +67445,8 @@ const _ARcl = "AclRule";
|
|
|
67433
67445
|
const _ARd = "AddressRegion";
|
|
67434
67446
|
const _ARl = "AllowReassociation";
|
|
67435
67447
|
const _ARll = "AllRegions";
|
|
67436
|
-
const _ARs = "
|
|
67437
|
-
const _ARss = "
|
|
67448
|
+
const _ARs = "AssociatedResource";
|
|
67449
|
+
const _ARss = "AssociatedRoles";
|
|
67438
67450
|
const _ARu = "AutoRecovery";
|
|
67439
67451
|
const _ARut = "AuthorizationRules";
|
|
67440
67452
|
const _AS = "AllocationStrategy";
|
|
@@ -68542,6 +68554,7 @@ const _INLp = "Ipv4NetmaskLength";
|
|
|
68542
68554
|
const _IOA = "ImageOwnerAlias";
|
|
68543
68555
|
const _IOI = "IpOwnerId";
|
|
68544
68556
|
const _IOIn = "InstanceOwnerId";
|
|
68557
|
+
const _IOS = "InstanceOwningService";
|
|
68545
68558
|
const _IP = "Ipv6Prefixes";
|
|
68546
68559
|
const _IPA = "IpamPoolAllocation";
|
|
68547
68560
|
const _IPAI = "IpamPoolAllocationId";
|
|
@@ -69793,7 +69806,8 @@ const _VMo = "VolumeModification";
|
|
|
69793
69806
|
const _VN = "VirtualName";
|
|
69794
69807
|
const _VNI = "VirtualNetworkId";
|
|
69795
69808
|
const _VNe = "VersionNumber";
|
|
69796
|
-
const _VOI = "
|
|
69809
|
+
const _VOI = "VolumeOwnerId";
|
|
69810
|
+
const _VOIp = "VpcOwnerId";
|
|
69797
69811
|
const _VP = "VpnPort";
|
|
69798
69812
|
const _VPC = "VpcPeeringConnection";
|
|
69799
69813
|
const _VPCI = "VpcPeeringConnectionId";
|
|
@@ -70464,6 +70478,7 @@ const _iOA = "imageOwnerAlias";
|
|
|
70464
70478
|
const _iOI = "imageOwnerId";
|
|
70465
70479
|
const _iOIn = "instanceOwnerId";
|
|
70466
70480
|
const _iOIp = "ipOwnerId";
|
|
70481
|
+
const _iOS = "instanceOwningService";
|
|
70467
70482
|
const _iP = "instancePort";
|
|
70468
70483
|
const _iPA = "ipamPoolAllocation";
|
|
70469
70484
|
const _iPAI = "ipamPoolAllocationId";
|
|
@@ -71410,7 +71425,8 @@ const _vMS = "volumeModificationSet";
|
|
|
71410
71425
|
const _vN = "virtualName";
|
|
71411
71426
|
const _vNI = "virtualNetworkId";
|
|
71412
71427
|
const _vNe = "versionNumber";
|
|
71413
|
-
const _vOI = "
|
|
71428
|
+
const _vOI = "volumeOwnerId";
|
|
71429
|
+
const _vOIp = "vpcOwnerId";
|
|
71414
71430
|
const _vP = "vpnProtocol";
|
|
71415
71431
|
const _vPC = "vpcPeeringConnection";
|
|
71416
71432
|
const _vPCI = "vpcPeeringConnectionId";
|
|
@@ -21,7 +21,7 @@ const getRuntimeConfig = (config) => {
|
|
|
21
21
|
{
|
|
22
22
|
schemeId: "aws.auth#sigv4",
|
|
23
23
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
-
signer: new core_1.
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
package/dist-es/EC2Client.js
CHANGED
|
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class EC2Client extends __Client {
|
|
17
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
-
return defaultEC2HttpAuthSchemeParametersProvider;
|
|
19
|
-
}
|
|
20
|
-
getIdentityProviderConfigProvider() {
|
|
21
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
-
"aws.auth#sigv4": config.credentials,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
constructor(...[configuration]) {
|
|
26
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
27
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -49,4 +41,12 @@ export class EC2Client extends __Client {
|
|
|
49
41
|
destroy() {
|
|
50
42
|
super.destroy();
|
|
51
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultEC2HttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
3
|
export const defaultEC2HttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
@@ -34,7 +34,7 @@ export const defaultEC2HttpAuthSchemeProvider = (authParameters) => {
|
|
|
34
34
|
return options;
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
-
const config_0 =
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
38
|
return {
|
|
39
39
|
...config_0,
|
|
40
40
|
};
|
|
@@ -51511,6 +51511,12 @@ const de_EbsInstanceBlockDevice = (output, context) => {
|
|
|
51511
51511
|
if (output[_vIo] != null) {
|
|
51512
51512
|
contents[_VIo] = __expectString(output[_vIo]);
|
|
51513
51513
|
}
|
|
51514
|
+
if (output[_aRs] != null) {
|
|
51515
|
+
contents[_ARs] = __expectString(output[_aRs]);
|
|
51516
|
+
}
|
|
51517
|
+
if (output[_vOI] != null) {
|
|
51518
|
+
contents[_VOI] = __expectString(output[_vOI]);
|
|
51519
|
+
}
|
|
51514
51520
|
return contents;
|
|
51515
51521
|
};
|
|
51516
51522
|
const de_EbsOptimizedInfo = (output, context) => {
|
|
@@ -52952,10 +52958,10 @@ const de_FpgaInfo = (output, context) => {
|
|
|
52952
52958
|
const de_GetAssociatedEnclaveCertificateIamRolesResult = (output, context) => {
|
|
52953
52959
|
const contents = {};
|
|
52954
52960
|
if (output.associatedRoleSet === "") {
|
|
52955
|
-
contents[
|
|
52961
|
+
contents[_ARss] = [];
|
|
52956
52962
|
}
|
|
52957
52963
|
else if (output[_aRS] != null && output[_aRS][_i] != null) {
|
|
52958
|
-
contents[
|
|
52964
|
+
contents[_ARss] = de_AssociatedRolesList(__getArrayIfSingleItem(output[_aRS][_i]), context);
|
|
52959
52965
|
}
|
|
52960
52966
|
return contents;
|
|
52961
52967
|
};
|
|
@@ -56697,7 +56703,7 @@ const de_Ipv6CidrAssociation = (output, context) => {
|
|
|
56697
56703
|
contents[_ICp] = __expectString(output[_iCp]);
|
|
56698
56704
|
}
|
|
56699
56705
|
if (output[_aRs] != null) {
|
|
56700
|
-
contents[
|
|
56706
|
+
contents[_ARs] = __expectString(output[_aRs]);
|
|
56701
56707
|
}
|
|
56702
56708
|
return contents;
|
|
56703
56709
|
};
|
|
@@ -64318,8 +64324,8 @@ const de_TransitGatewayVpcAttachment = (output, context) => {
|
|
|
64318
64324
|
if (output[_vI] != null) {
|
|
64319
64325
|
contents[_VI] = __expectString(output[_vI]);
|
|
64320
64326
|
}
|
|
64321
|
-
if (output[
|
|
64322
|
-
contents[
|
|
64327
|
+
if (output[_vOIp] != null) {
|
|
64328
|
+
contents[_VOIp] = __expectString(output[_vOIp]);
|
|
64323
64329
|
}
|
|
64324
64330
|
if (output[_st] != null) {
|
|
64325
64331
|
contents[_Stat] = __expectString(output[_st]);
|
|
@@ -65238,6 +65244,12 @@ const de_VolumeAttachment = (output, context) => {
|
|
|
65238
65244
|
if (output[_dOT] != null) {
|
|
65239
65245
|
contents[_DOT] = __parseBoolean(output[_dOT]);
|
|
65240
65246
|
}
|
|
65247
|
+
if (output[_aRs] != null) {
|
|
65248
|
+
contents[_ARs] = __expectString(output[_aRs]);
|
|
65249
|
+
}
|
|
65250
|
+
if (output[_iOS] != null) {
|
|
65251
|
+
contents[_IOS] = __expectString(output[_iOS]);
|
|
65252
|
+
}
|
|
65241
65253
|
return contents;
|
|
65242
65254
|
};
|
|
65243
65255
|
const de_VolumeAttachmentList = (output, context) => {
|
|
@@ -66176,8 +66188,8 @@ const _ARcl = "AclRule";
|
|
|
66176
66188
|
const _ARd = "AddressRegion";
|
|
66177
66189
|
const _ARl = "AllowReassociation";
|
|
66178
66190
|
const _ARll = "AllRegions";
|
|
66179
|
-
const _ARs = "
|
|
66180
|
-
const _ARss = "
|
|
66191
|
+
const _ARs = "AssociatedResource";
|
|
66192
|
+
const _ARss = "AssociatedRoles";
|
|
66181
66193
|
const _ARu = "AutoRecovery";
|
|
66182
66194
|
const _ARut = "AuthorizationRules";
|
|
66183
66195
|
const _AS = "AllocationStrategy";
|
|
@@ -67285,6 +67297,7 @@ const _INLp = "Ipv4NetmaskLength";
|
|
|
67285
67297
|
const _IOA = "ImageOwnerAlias";
|
|
67286
67298
|
const _IOI = "IpOwnerId";
|
|
67287
67299
|
const _IOIn = "InstanceOwnerId";
|
|
67300
|
+
const _IOS = "InstanceOwningService";
|
|
67288
67301
|
const _IP = "Ipv6Prefixes";
|
|
67289
67302
|
const _IPA = "IpamPoolAllocation";
|
|
67290
67303
|
const _IPAI = "IpamPoolAllocationId";
|
|
@@ -68536,7 +68549,8 @@ const _VMo = "VolumeModification";
|
|
|
68536
68549
|
const _VN = "VirtualName";
|
|
68537
68550
|
const _VNI = "VirtualNetworkId";
|
|
68538
68551
|
const _VNe = "VersionNumber";
|
|
68539
|
-
const _VOI = "
|
|
68552
|
+
const _VOI = "VolumeOwnerId";
|
|
68553
|
+
const _VOIp = "VpcOwnerId";
|
|
68540
68554
|
const _VP = "VpnPort";
|
|
68541
68555
|
const _VPC = "VpcPeeringConnection";
|
|
68542
68556
|
const _VPCI = "VpcPeeringConnectionId";
|
|
@@ -69207,6 +69221,7 @@ const _iOA = "imageOwnerAlias";
|
|
|
69207
69221
|
const _iOI = "imageOwnerId";
|
|
69208
69222
|
const _iOIn = "instanceOwnerId";
|
|
69209
69223
|
const _iOIp = "ipOwnerId";
|
|
69224
|
+
const _iOS = "instanceOwningService";
|
|
69210
69225
|
const _iP = "instancePort";
|
|
69211
69226
|
const _iPA = "ipamPoolAllocation";
|
|
69212
69227
|
const _iPAI = "ipamPoolAllocationId";
|
|
@@ -70153,7 +70168,8 @@ const _vMS = "volumeModificationSet";
|
|
|
70153
70168
|
const _vN = "virtualName";
|
|
70154
70169
|
const _vNI = "virtualNetworkId";
|
|
70155
70170
|
const _vNe = "versionNumber";
|
|
70156
|
-
const _vOI = "
|
|
70171
|
+
const _vOI = "volumeOwnerId";
|
|
70172
|
+
const _vOIp = "vpcOwnerId";
|
|
70157
70173
|
const _vP = "vpnProtocol";
|
|
70158
70174
|
const _vPC = "vpcPeeringConnection";
|
|
70159
70175
|
const _vPCI = "vpcPeeringConnectionId";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -18,7 +18,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
18
|
{
|
|
19
19
|
schemeId: "aws.auth#sigv4",
|
|
20
20
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
-
signer: new
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
logger: config?.logger ?? new NoOpLogger(),
|
|
@@ -799,8 +799,6 @@ export declare class EC2Client extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
799
799
|
* The resolved configuration of EC2Client class. This is resolved and normalized from the {@link EC2ClientConfig | constructor configuration interface}.
|
|
800
800
|
*/
|
|
801
801
|
readonly config: EC2ClientResolvedConfig;
|
|
802
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
803
|
-
private getIdentityProviderConfigProvider;
|
|
804
802
|
constructor(...[configuration]: __CheckOptionalClientConfig<EC2ClientConfig>);
|
|
805
803
|
/**
|
|
806
804
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -808,4 +806,6 @@ export declare class EC2Client extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
808
806
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
809
807
|
*/
|
|
810
808
|
destroy(): void;
|
|
809
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
810
|
+
private getIdentityProviderConfigProvider;
|
|
811
811
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { EC2ClientResolvedConfig } from "../EC2Client";
|
|
4
4
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const defaultEC2HttpAuthSchemeProvider: EC2HttpAuthSchemeProvider
|
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
32
|
/**
|
|
33
33
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
34
|
* @internal
|
|
@@ -43,7 +43,7 @@ export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
|
-
export interface HttpAuthSchemeResolvedConfig extends
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
47
|
/**
|
|
48
48
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
49
|
* @internal
|
|
@@ -58,4 +58,4 @@ export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedCon
|
|
|
58
58
|
/**
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig &
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -72,6 +72,8 @@ declare const AttachVolumeCommand_base: {
|
|
|
72
72
|
* // State: "attaching" || "attached" || "detaching" || "detached" || "busy",
|
|
73
73
|
* // VolumeId: "STRING_VALUE",
|
|
74
74
|
* // DeleteOnTermination: true || false,
|
|
75
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
76
|
+
* // InstanceOwningService: "STRING_VALUE",
|
|
75
77
|
* // };
|
|
76
78
|
*
|
|
77
79
|
* ```
|
|
@@ -79,6 +79,8 @@ declare const CreateVolumeCommand_base: {
|
|
|
79
79
|
* // State: "attaching" || "attached" || "detaching" || "detached" || "busy",
|
|
80
80
|
* // VolumeId: "STRING_VALUE",
|
|
81
81
|
* // DeleteOnTermination: true || false,
|
|
82
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
83
|
+
* // InstanceOwningService: "STRING_VALUE",
|
|
82
84
|
* // },
|
|
83
85
|
* // ],
|
|
84
86
|
* // AvailabilityZone: "STRING_VALUE",
|
|
@@ -62,6 +62,8 @@ declare const DescribeInstanceAttributeCommand_base: {
|
|
|
62
62
|
* // DeleteOnTermination: true || false,
|
|
63
63
|
* // Status: "attaching" || "attached" || "detaching" || "detached",
|
|
64
64
|
* // VolumeId: "STRING_VALUE",
|
|
65
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
66
|
+
* // VolumeOwnerId: "STRING_VALUE",
|
|
65
67
|
* // },
|
|
66
68
|
* // },
|
|
67
69
|
* // ],
|
|
@@ -126,6 +126,8 @@ declare const DescribeInstancesCommand_base: {
|
|
|
126
126
|
* // DeleteOnTermination: true || false,
|
|
127
127
|
* // Status: "attaching" || "attached" || "detaching" || "detached",
|
|
128
128
|
* // VolumeId: "STRING_VALUE",
|
|
129
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
130
|
+
* // VolumeOwnerId: "STRING_VALUE",
|
|
129
131
|
* // },
|
|
130
132
|
* // },
|
|
131
133
|
* // ],
|
|
@@ -65,6 +65,8 @@ declare const DescribeVolumesCommand_base: {
|
|
|
65
65
|
* // State: "attaching" || "attached" || "detaching" || "detached" || "busy",
|
|
66
66
|
* // VolumeId: "STRING_VALUE",
|
|
67
67
|
* // DeleteOnTermination: true || false,
|
|
68
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
69
|
+
* // InstanceOwningService: "STRING_VALUE",
|
|
68
70
|
* // },
|
|
69
71
|
* // ],
|
|
70
72
|
* // AvailabilityZone: "STRING_VALUE",
|
|
@@ -36,6 +36,9 @@ declare const DetachVolumeCommand_base: {
|
|
|
36
36
|
* first.</p>
|
|
37
37
|
* <p>When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the
|
|
38
38
|
* product code is no longer associated with the instance.</p>
|
|
39
|
+
* <p>You can't detach or force detach volumes that are attached to Amazon ECS or
|
|
40
|
+
* Fargate tasks. Attempting to do this results in the <code>UnsupportedOperationException</code>
|
|
41
|
+
* exception with the <code>Unable to detach volume attached to ECS tasks</code> error message.</p>
|
|
39
42
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html">Detach an Amazon EBS volume</a> in the
|
|
40
43
|
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
41
44
|
* @example
|
|
@@ -60,6 +63,8 @@ declare const DetachVolumeCommand_base: {
|
|
|
60
63
|
* // State: "attaching" || "attached" || "detaching" || "detached" || "busy",
|
|
61
64
|
* // VolumeId: "STRING_VALUE",
|
|
62
65
|
* // DeleteOnTermination: true || false,
|
|
66
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
67
|
+
* // InstanceOwningService: "STRING_VALUE",
|
|
63
68
|
* // };
|
|
64
69
|
*
|
|
65
70
|
* ```
|
|
@@ -343,6 +343,8 @@ declare const RunInstancesCommand_base: {
|
|
|
343
343
|
* // DeleteOnTermination: true || false,
|
|
344
344
|
* // Status: "attaching" || "attached" || "detaching" || "detached",
|
|
345
345
|
* // VolumeId: "STRING_VALUE",
|
|
346
|
+
* // AssociatedResource: "STRING_VALUE",
|
|
347
|
+
* // VolumeOwnerId: "STRING_VALUE",
|
|
346
348
|
* // },
|
|
347
349
|
* // },
|
|
348
350
|
* // ],
|
|
@@ -5364,11 +5364,15 @@ export interface VolumeAttachment {
|
|
|
5364
5364
|
/**
|
|
5365
5365
|
* @public
|
|
5366
5366
|
* <p>The device name.</p>
|
|
5367
|
+
* <p>If the volume is attached to a Fargate task, this parameter
|
|
5368
|
+
* returns <code>null</code>.</p>
|
|
5367
5369
|
*/
|
|
5368
5370
|
Device?: string;
|
|
5369
5371
|
/**
|
|
5370
5372
|
* @public
|
|
5371
5373
|
* <p>The ID of the instance.</p>
|
|
5374
|
+
* <p>If the volume is attached to a Fargate task, this parameter
|
|
5375
|
+
* returns <code>null</code>.</p>
|
|
5372
5376
|
*/
|
|
5373
5377
|
InstanceId?: string;
|
|
5374
5378
|
/**
|
|
@@ -5386,6 +5390,20 @@ export interface VolumeAttachment {
|
|
|
5386
5390
|
* <p>Indicates whether the EBS volume is deleted on instance termination.</p>
|
|
5387
5391
|
*/
|
|
5388
5392
|
DeleteOnTermination?: boolean;
|
|
5393
|
+
/**
|
|
5394
|
+
* @public
|
|
5395
|
+
* <p>The ARN of the Amazon ECS or Fargate task
|
|
5396
|
+
* to which the volume is attached.</p>
|
|
5397
|
+
*/
|
|
5398
|
+
AssociatedResource?: string;
|
|
5399
|
+
/**
|
|
5400
|
+
* @public
|
|
5401
|
+
* <p>The service principal of Amazon Web Services service that owns the underlying
|
|
5402
|
+
* instance to which the volume is attached.</p>
|
|
5403
|
+
* <p>This parameter is returned only for volumes that are attached to
|
|
5404
|
+
* Fargate tasks.</p>
|
|
5405
|
+
*/
|
|
5406
|
+
InstanceOwningService?: string;
|
|
5389
5407
|
}
|
|
5390
5408
|
/**
|
|
5391
5409
|
* @public
|
|
@@ -2437,15 +2437,14 @@ export type TargetCapacityUnitType = (typeof TargetCapacityUnitType)[keyof typeo
|
|
|
2437
2437
|
* does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances
|
|
2438
2438
|
* in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're
|
|
2439
2439
|
* willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops
|
|
2440
|
-
* launching instances even if it hasn
|
|
2440
|
+
* launching instances even if it hasn't met the target capacity. The
|
|
2441
2441
|
* <code>MaxTotalPrice</code> parameters are located in <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptionsRequest">OnDemandOptionsRequest</a>
|
|
2442
2442
|
* and <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptionsRequest">SpotOptionsRequest</a>.</p>
|
|
2443
2443
|
*/
|
|
2444
2444
|
export interface TargetCapacitySpecificationRequest {
|
|
2445
2445
|
/**
|
|
2446
2446
|
* @public
|
|
2447
|
-
* <p>The number of units to request, filled using
|
|
2448
|
-
* <code>DefaultTargetCapacityType</code>.</p>
|
|
2447
|
+
* <p>The number of units to request, filled using the default target capacity type.</p>
|
|
2449
2448
|
*/
|
|
2450
2449
|
TotalTargetCapacity: number | undefined;
|
|
2451
2450
|
/**
|
|
@@ -2460,14 +2459,14 @@ export interface TargetCapacitySpecificationRequest {
|
|
|
2460
2459
|
SpotTargetCapacity?: number;
|
|
2461
2460
|
/**
|
|
2462
2461
|
* @public
|
|
2463
|
-
* <p>The default
|
|
2464
|
-
* <code>On-Demand</code>.</p>
|
|
2462
|
+
* <p>The default target capacity type.</p>
|
|
2465
2463
|
*/
|
|
2466
2464
|
DefaultTargetCapacityType?: DefaultTargetCapacityType;
|
|
2467
2465
|
/**
|
|
2468
2466
|
* @public
|
|
2469
|
-
* <p>The unit for the target capacity.
|
|
2470
|
-
*
|
|
2467
|
+
* <p>The unit for the target capacity. You can specify this parameter only when using
|
|
2468
|
+
* attributed-based instance type selection.</p>
|
|
2469
|
+
* <p>Default: <code>units</code> (the number of instances)</p>
|
|
2471
2470
|
*/
|
|
2472
2471
|
TargetCapacityUnitType?: TargetCapacityUnitType;
|
|
2473
2472
|
}
|
|
@@ -8135,7 +8134,7 @@ export interface StateReason {
|
|
|
8135
8134
|
* <li>
|
|
8136
8135
|
* <p>
|
|
8137
8136
|
* <code>Client.InstanceInitiatedShutdown</code>: The instance was shut down
|
|
8138
|
-
*
|
|
8137
|
+
* from the operating system of the instance.</p>
|
|
8139
8138
|
* </li>
|
|
8140
8139
|
* <li>
|
|
8141
8140
|
* <p>
|
|
@@ -2479,7 +2479,8 @@ export interface DescribeCapacityBlockOfferingsRequest {
|
|
|
2479
2479
|
NextToken?: string;
|
|
2480
2480
|
/**
|
|
2481
2481
|
* @public
|
|
2482
|
-
* <p>The maximum number of
|
|
2482
|
+
* <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information,
|
|
2483
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
2483
2484
|
*/
|
|
2484
2485
|
MaxResults?: number;
|
|
2485
2486
|
}
|
|
@@ -2570,7 +2571,8 @@ export interface DescribeCapacityReservationFleetsRequest {
|
|
|
2570
2571
|
NextToken?: string;
|
|
2571
2572
|
/**
|
|
2572
2573
|
* @public
|
|
2573
|
-
* <p>The maximum number of
|
|
2574
|
+
* <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information,
|
|
2575
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
2574
2576
|
*/
|
|
2575
2577
|
MaxResults?: number;
|
|
2576
2578
|
/**
|
|
@@ -2776,7 +2778,8 @@ export interface DescribeCapacityReservationsRequest {
|
|
|
2776
2778
|
NextToken?: string;
|
|
2777
2779
|
/**
|
|
2778
2780
|
* @public
|
|
2779
|
-
* <p>The maximum number of
|
|
2781
|
+
* <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information,
|
|
2782
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
2780
2783
|
*/
|
|
2781
2784
|
MaxResults?: number;
|
|
2782
2785
|
/**
|
|
@@ -5829,8 +5832,7 @@ export interface SpotOptions {
|
|
|
5829
5832
|
export interface TargetCapacitySpecification {
|
|
5830
5833
|
/**
|
|
5831
5834
|
* @public
|
|
5832
|
-
* <p>The number of units to request, filled
|
|
5833
|
-
* <code>DefaultTargetCapacityType</code>.</p>
|
|
5835
|
+
* <p>The number of units to request, filled the default target capacity type.</p>
|
|
5834
5836
|
*/
|
|
5835
5837
|
TotalTargetCapacity?: number;
|
|
5836
5838
|
/**
|
|
@@ -5845,14 +5847,12 @@ export interface TargetCapacitySpecification {
|
|
|
5845
5847
|
SpotTargetCapacity?: number;
|
|
5846
5848
|
/**
|
|
5847
5849
|
* @public
|
|
5848
|
-
* <p>The default
|
|
5849
|
-
* <code>On-Demand</code>.</p>
|
|
5850
|
+
* <p>The default target capacity type.</p>
|
|
5850
5851
|
*/
|
|
5851
5852
|
DefaultTargetCapacityType?: DefaultTargetCapacityType;
|
|
5852
5853
|
/**
|
|
5853
5854
|
* @public
|
|
5854
|
-
* <p>The unit for the target capacity
|
|
5855
|
-
* <p>Default: <code>units</code> (translates to number of instances)</p>
|
|
5855
|
+
* <p>The unit for the target capacity.</p>
|
|
5856
5856
|
*/
|
|
5857
5857
|
TargetCapacityUnitType?: TargetCapacityUnitType;
|
|
5858
5858
|
}
|
|
@@ -213,6 +213,19 @@ export interface EbsInstanceBlockDevice {
|
|
|
213
213
|
* <p>The ID of the EBS volume.</p>
|
|
214
214
|
*/
|
|
215
215
|
VolumeId?: string;
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
* <p>The ARN of the Amazon ECS or Fargate task
|
|
219
|
+
* to which the volume is attached.</p>
|
|
220
|
+
*/
|
|
221
|
+
AssociatedResource?: string;
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
* <p>The ID of the Amazon Web Services account that owns the volume.</p>
|
|
225
|
+
* <p>This parameter is returned only for volumes that are attached to
|
|
226
|
+
* Fargate tasks.</p>
|
|
227
|
+
*/
|
|
228
|
+
VolumeOwnerId?: string;
|
|
216
229
|
}
|
|
217
230
|
/**
|
|
218
231
|
* @public
|
|
@@ -1635,27 +1648,24 @@ export interface InstanceMetadataOptionsResponse {
|
|
|
1635
1648
|
State?: InstanceMetadataOptionsState;
|
|
1636
1649
|
/**
|
|
1637
1650
|
* @public
|
|
1638
|
-
* <p>
|
|
1639
|
-
* <code>optional</code> (in other words, indicates whether the use of IMDSv2 is
|
|
1640
|
-
* <code>optional</code>) or <code>required</code> (in other words, indicates whether
|
|
1641
|
-
* the use of IMDSv2 is <code>required</code>).</p>
|
|
1651
|
+
* <p>Indicates whether IMDSv2 is required.</p>
|
|
1642
1652
|
* <ul>
|
|
1643
1653
|
* <li>
|
|
1644
1654
|
* <p>
|
|
1645
|
-
* <code>optional</code> -
|
|
1646
|
-
*
|
|
1647
|
-
*
|
|
1648
|
-
*
|
|
1655
|
+
* <code>optional</code> - IMDSv2 is optional. You can choose whether to send a
|
|
1656
|
+
* session token in your instance metadata retrieval requests. If you retrieve
|
|
1657
|
+
* IAM role credentials without a session token, you receive the IMDSv1 role
|
|
1658
|
+
* credentials. If you retrieve IAM role credentials using a valid session token,
|
|
1659
|
+
* you receive the IMDSv2 role credentials.</p>
|
|
1649
1660
|
* </li>
|
|
1650
1661
|
* <li>
|
|
1651
1662
|
* <p>
|
|
1652
|
-
* <code>required</code> -
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1663
|
+
* <code>required</code> - IMDSv2 is required. You must send a session token
|
|
1664
|
+
* in your instance metadata retrieval requests. With this option, retrieving the
|
|
1665
|
+
* IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are
|
|
1666
|
+
* not available.</p>
|
|
1655
1667
|
* </li>
|
|
1656
1668
|
* </ul>
|
|
1657
|
-
* <p>Default: <code>optional</code>
|
|
1658
|
-
* </p>
|
|
1659
1669
|
*/
|
|
1660
1670
|
HttpTokens?: HttpTokensState;
|
|
1661
1671
|
/**
|
|
@@ -10459,8 +10469,9 @@ export interface SpotFleetRequestConfigData {
|
|
|
10459
10469
|
Context?: string;
|
|
10460
10470
|
/**
|
|
10461
10471
|
* @public
|
|
10462
|
-
* <p>The unit for the target capacity.
|
|
10463
|
-
*
|
|
10472
|
+
* <p>The unit for the target capacity. You can specify this parameter only when
|
|
10473
|
+
* using attribute-based instance type selection.</p>
|
|
10474
|
+
* <p>Default: <code>units</code> (the number of instances)</p>
|
|
10464
10475
|
*/
|
|
10465
10476
|
TargetCapacityUnitType?: TargetCapacityUnitType;
|
|
10466
10477
|
/**
|
|
@@ -5389,6 +5389,8 @@ export interface EnableSnapshotBlockPublicAccessRequest {
|
|
|
5389
5389
|
* available.</p>
|
|
5390
5390
|
* </li>
|
|
5391
5391
|
* </ul>
|
|
5392
|
+
* <p>
|
|
5393
|
+
* <code>unblocked</code> is not a valid value for <b>EnableSnapshotBlockPublicAccess</b>.</p>
|
|
5392
5394
|
*/
|
|
5393
5395
|
State: SnapshotBlockPublicAccessState | undefined;
|
|
5394
5396
|
/**
|
|
@@ -6103,8 +6105,8 @@ export interface GetCapacityReservationUsageRequest {
|
|
|
6103
6105
|
NextToken?: string;
|
|
6104
6106
|
/**
|
|
6105
6107
|
* @public
|
|
6106
|
-
* <p>The maximum number of
|
|
6107
|
-
*
|
|
6108
|
+
* <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information,
|
|
6109
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
6108
6110
|
*/
|
|
6109
6111
|
MaxResults?: number;
|
|
6110
6112
|
/**
|
|
@@ -6593,7 +6595,8 @@ export interface GetGroupsForCapacityReservationRequest {
|
|
|
6593
6595
|
NextToken?: string;
|
|
6594
6596
|
/**
|
|
6595
6597
|
* @public
|
|
6596
|
-
* <p>The maximum number of
|
|
6598
|
+
* <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information,
|
|
6599
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
|
|
6597
6600
|
*/
|
|
6598
6601
|
MaxResults?: number;
|
|
6599
6602
|
/**
|
|
@@ -832,7 +832,6 @@ export interface GetSpotPlacementScoresRequest {
|
|
|
832
832
|
/**
|
|
833
833
|
* @public
|
|
834
834
|
* <p>The unit for the target capacity.</p>
|
|
835
|
-
* <p>Default: <code>units</code> (translates to number of instances)</p>
|
|
836
835
|
*/
|
|
837
836
|
TargetCapacityUnitType?: TargetCapacityUnitType;
|
|
838
837
|
/**
|
|
@@ -3839,7 +3838,8 @@ export interface ModifyInstanceAttributeRequest {
|
|
|
3839
3838
|
* <p>Modifies the <code>DeleteOnTermination</code> attribute for volumes that are currently
|
|
3840
3839
|
* attached. The volume must be owned by the caller. If no value is specified for
|
|
3841
3840
|
* <code>DeleteOnTermination</code>, the default is <code>true</code> and the volume is
|
|
3842
|
-
* deleted when the instance is terminated
|
|
3841
|
+
* deleted when the instance is terminated. You can't modify the <code>DeleteOnTermination</code>
|
|
3842
|
+
* attribute for volumes that are attached to Fargate tasks.</p>
|
|
3843
3843
|
* <p>To add instance store volumes to an Amazon EBS-backed instance, you must add them when
|
|
3844
3844
|
* you launch the instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM">Update the block device mapping when launching an instance</a> in the
|
|
3845
3845
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
@@ -4289,27 +4289,26 @@ export interface ModifyInstanceMetadataOptionsRequest {
|
|
|
4289
4289
|
InstanceId: string | undefined;
|
|
4290
4290
|
/**
|
|
4291
4291
|
* @public
|
|
4292
|
-
* <p>
|
|
4293
|
-
* (in other words, set the use of IMDSv2 to <code>optional</code>) or
|
|
4294
|
-
* <code>required</code> (in other words, set the use of IMDSv2 to
|
|
4295
|
-
* <code>required</code>).</p>
|
|
4292
|
+
* <p>Indicates whether IMDSv2 is required.</p>
|
|
4296
4293
|
* <ul>
|
|
4297
4294
|
* <li>
|
|
4298
4295
|
* <p>
|
|
4299
|
-
* <code>optional</code> -
|
|
4300
|
-
*
|
|
4301
|
-
*
|
|
4302
|
-
*
|
|
4296
|
+
* <code>optional</code> - IMDSv2 is optional. You can choose whether to send a
|
|
4297
|
+
* session token in your instance metadata retrieval requests. If you retrieve
|
|
4298
|
+
* IAM role credentials without a session token, you receive the IMDSv1 role
|
|
4299
|
+
* credentials. If you retrieve IAM role credentials using a valid session token,
|
|
4300
|
+
* you receive the IMDSv2 role credentials.</p>
|
|
4303
4301
|
* </li>
|
|
4304
4302
|
* <li>
|
|
4305
4303
|
* <p>
|
|
4306
|
-
* <code>required</code> -
|
|
4307
|
-
*
|
|
4308
|
-
*
|
|
4304
|
+
* <code>required</code> - IMDSv2 is required. You must send a session token
|
|
4305
|
+
* in your instance metadata retrieval requests. With this option, retrieving the
|
|
4306
|
+
* IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are
|
|
4307
|
+
* not available.</p>
|
|
4309
4308
|
* </li>
|
|
4310
4309
|
* </ul>
|
|
4311
|
-
* <p>Default: <code>
|
|
4312
|
-
*
|
|
4310
|
+
* <p>Default: If the value of <code>ImdsSupport</code> for the Amazon Machine Image (AMI)
|
|
4311
|
+
* for your instance is <code>v2.0</code>, the default is <code>required</code>.</p>
|
|
4313
4312
|
*/
|
|
4314
4313
|
HttpTokens?: HttpTokensState;
|
|
4315
4314
|
/**
|
|
@@ -1841,27 +1841,26 @@ export interface InstanceMaintenanceOptionsRequest {
|
|
|
1841
1841
|
export interface InstanceMetadataOptionsRequest {
|
|
1842
1842
|
/**
|
|
1843
1843
|
* @public
|
|
1844
|
-
* <p>
|
|
1845
|
-
* (in other words, set the use of IMDSv2 to <code>optional</code>) or
|
|
1846
|
-
* <code>required</code> (in other words, set the use of IMDSv2 to
|
|
1847
|
-
* <code>required</code>).</p>
|
|
1844
|
+
* <p>Indicates whether IMDSv2 is required.</p>
|
|
1848
1845
|
* <ul>
|
|
1849
1846
|
* <li>
|
|
1850
1847
|
* <p>
|
|
1851
|
-
* <code>optional</code> -
|
|
1852
|
-
*
|
|
1853
|
-
*
|
|
1854
|
-
*
|
|
1848
|
+
* <code>optional</code> - IMDSv2 is optional. You can choose whether to send a
|
|
1849
|
+
* session token in your instance metadata retrieval requests. If you retrieve
|
|
1850
|
+
* IAM role credentials without a session token, you receive the IMDSv1 role
|
|
1851
|
+
* credentials. If you retrieve IAM role credentials using a valid session token,
|
|
1852
|
+
* you receive the IMDSv2 role credentials.</p>
|
|
1855
1853
|
* </li>
|
|
1856
1854
|
* <li>
|
|
1857
1855
|
* <p>
|
|
1858
|
-
* <code>required</code> -
|
|
1859
|
-
*
|
|
1860
|
-
*
|
|
1856
|
+
* <code>required</code> - IMDSv2 is required. You must send a session token
|
|
1857
|
+
* in your instance metadata retrieval requests. With this option, retrieving the
|
|
1858
|
+
* IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are
|
|
1859
|
+
* not available.</p>
|
|
1861
1860
|
* </li>
|
|
1862
1861
|
* </ul>
|
|
1863
|
-
* <p>Default: <code>
|
|
1864
|
-
*
|
|
1862
|
+
* <p>Default: If the value of <code>ImdsSupport</code> for the Amazon Machine Image (AMI)
|
|
1863
|
+
* for your instance is <code>v2.0</code>, the default is <code>required</code>.</p>
|
|
1865
1864
|
*/
|
|
1866
1865
|
HttpTokens?: HttpTokensState;
|
|
1867
1866
|
/**
|
|
@@ -2438,6 +2437,8 @@ export interface ScheduledInstancesNetworkInterface {
|
|
|
2438
2437
|
* assigned to a new network interface, not an existing one. You cannot specify more than one
|
|
2439
2438
|
* network interface in the request. If launching into a default subnet, the default value is
|
|
2440
2439
|
* <code>true</code>.</p>
|
|
2440
|
+
* <p>Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses
|
|
2441
|
+
* associated with running instances and Elastic IP addresses. For more information, see the <i>Public IPv4 Address</i> tab on the <a href="http://aws.amazon.com/vpc/pricing/">Amazon VPC pricing page</a>.</p>
|
|
2441
2442
|
*/
|
|
2442
2443
|
AssociatePublicIpAddress?: boolean;
|
|
2443
2444
|
/**
|
|
@@ -3800,8 +3800,8 @@ export declare class EC2Client extends __Client<
|
|
|
3800
3800
|
EC2ClientResolvedConfig
|
|
3801
3801
|
> {
|
|
3802
3802
|
readonly config: EC2ClientResolvedConfig;
|
|
3803
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
3804
|
-
private getIdentityProviderConfigProvider;
|
|
3805
3803
|
constructor(...[configuration]: __CheckOptionalClientConfig<EC2ClientConfig>);
|
|
3806
3804
|
destroy(): void;
|
|
3805
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
3806
|
+
private getIdentityProviderConfigProvider;
|
|
3807
3807
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
5
|
} from "@aws-sdk/core";
|
|
6
6
|
import {
|
|
7
7
|
HandlerExecutionContext,
|
|
@@ -29,15 +29,15 @@ export declare const defaultEC2HttpAuthSchemeParametersProvider: (
|
|
|
29
29
|
export interface EC2HttpAuthSchemeProvider
|
|
30
30
|
extends HttpAuthSchemeProvider<EC2HttpAuthSchemeParameters> {}
|
|
31
31
|
export declare const defaultEC2HttpAuthSchemeProvider: EC2HttpAuthSchemeProvider;
|
|
32
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
32
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
33
33
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
34
|
httpAuthSchemeProvider?: EC2HttpAuthSchemeProvider;
|
|
35
35
|
}
|
|
36
36
|
export interface HttpAuthSchemeResolvedConfig
|
|
37
|
-
extends
|
|
37
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
38
38
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
39
|
readonly httpAuthSchemeProvider: EC2HttpAuthSchemeProvider;
|
|
40
40
|
}
|
|
41
41
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
-
config: T & HttpAuthSchemeInputConfig &
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
43
43
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1469,6 +1469,8 @@ export interface VolumeAttachment {
|
|
|
1469
1469
|
State?: VolumeAttachmentState;
|
|
1470
1470
|
VolumeId?: string;
|
|
1471
1471
|
DeleteOnTermination?: boolean;
|
|
1472
|
+
AssociatedResource?: string;
|
|
1473
|
+
InstanceOwningService?: string;
|
|
1472
1474
|
}
|
|
1473
1475
|
export interface AttachVpnGatewayRequest {
|
|
1474
1476
|
VpcId: string | undefined;
|
|
@@ -152,6 +152,8 @@ export interface EbsInstanceBlockDevice {
|
|
|
152
152
|
DeleteOnTermination?: boolean;
|
|
153
153
|
Status?: AttachmentStatus;
|
|
154
154
|
VolumeId?: string;
|
|
155
|
+
AssociatedResource?: string;
|
|
156
|
+
VolumeOwnerId?: string;
|
|
155
157
|
}
|
|
156
158
|
export interface InstanceBlockDeviceMapping {
|
|
157
159
|
DeviceName?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.490.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",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-sdk-ec2": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.490.0",
|
|
24
|
+
"@aws-sdk/core": "3.490.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.490.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.489.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.489.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.489.0",
|
|
29
|
+
"@aws-sdk/middleware-sdk-ec2": "3.489.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.489.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.489.0",
|
|
32
|
+
"@aws-sdk/types": "3.489.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.489.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.489.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.489.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.23",
|
|
37
37
|
"@smithy/core": "^1.2.2",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.3.2",
|