@aws-sdk/client-ec2 3.1076.0 → 3.1077.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.
Files changed (61) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +72 -7
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/ModifyVpcEndpointPayerResponsibilityCommand.js +16 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/enums.js +7 -0
  8. package/dist-es/models/models_8.js +1 -0
  9. package/dist-es/runtimeConfig.browser.js +0 -2
  10. package/dist-es/runtimeConfig.js +1 -2
  11. package/dist-es/runtimeConfig.native.js +0 -2
  12. package/dist-es/runtimeConfig.shared.js +2 -0
  13. package/dist-es/schemas/schemas_0.js +41 -4
  14. package/dist-types/EC2.d.ts +7 -0
  15. package/dist-types/EC2Client.d.ts +3 -2
  16. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +6 -0
  17. package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +1 -2
  18. package/dist-types/commands/DescribeImportImageTasksCommand.d.ts +2 -1
  19. package/dist-types/commands/DescribeVpcEndpointConnectionsCommand.d.ts +6 -0
  20. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +6 -0
  21. package/dist-types/commands/ModifyIpamResourceDiscoveryCommand.d.ts +2 -1
  22. package/dist-types/commands/ModifyVpcEndpointPayerResponsibilityCommand.d.ts +86 -0
  23. package/dist-types/commands/WithdrawByoipCidrCommand.d.ts +2 -1
  24. package/dist-types/commands/index.d.ts +1 -0
  25. package/dist-types/index.d.ts +1 -0
  26. package/dist-types/models/enums.d.ts +23 -0
  27. package/dist-types/models/models_2.d.ts +22 -25
  28. package/dist-types/models/models_3.d.ts +24 -17
  29. package/dist-types/models/models_4.d.ts +20 -132
  30. package/dist-types/models/models_5.d.ts +137 -44
  31. package/dist-types/models/models_6.d.ts +44 -13
  32. package/dist-types/models/models_7.d.ts +62 -15
  33. package/dist-types/models/models_8.d.ts +11 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/schemas/schemas_0.d.ts +4 -0
  39. package/dist-types/ts3.4/EC2.d.ts +23 -0
  40. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  41. package/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +4 -2
  42. package/dist-types/ts3.4/commands/DescribeImportImageTasksCommand.d.ts +2 -4
  43. package/dist-types/ts3.4/commands/ModifyIpamResourceDiscoveryCommand.d.ts +2 -4
  44. package/dist-types/ts3.4/commands/ModifyVpcEndpointPayerResponsibilityCommand.d.ts +53 -0
  45. package/dist-types/ts3.4/commands/WithdrawByoipCidrCommand.d.ts +2 -4
  46. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  47. package/dist-types/ts3.4/index.d.ts +1 -0
  48. package/dist-types/ts3.4/models/enums.d.ts +11 -0
  49. package/dist-types/ts3.4/models/models_2.d.ts +7 -5
  50. package/dist-types/ts3.4/models/models_3.d.ts +5 -4
  51. package/dist-types/ts3.4/models/models_4.d.ts +5 -25
  52. package/dist-types/ts3.4/models/models_5.d.ts +30 -10
  53. package/dist-types/ts3.4/models/models_6.d.ts +13 -5
  54. package/dist-types/ts3.4/models/models_7.d.ts +19 -4
  55. package/dist-types/ts3.4/models/models_8.d.ts +4 -0
  56. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  57. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  58. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  59. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  60. package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
  61. package/package.json +8 -10
package/README.md CHANGED
@@ -4993,6 +4993,13 @@ ModifyVpcEndpointConnectionNotification
4993
4993
  </details>
4994
4994
  <details>
4995
4995
  <summary>
4996
+ ModifyVpcEndpointPayerResponsibility
4997
+ </summary>
4998
+
4999
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyVpcEndpointPayerResponsibilityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcEndpointPayerResponsibilityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyVpcEndpointPayerResponsibilityCommandOutput/)
5000
+ </details>
5001
+ <details>
5002
+ <summary>
4996
5003
  ModifyVpcEndpointServiceConfiguration
4997
5004
  </summary>
4998
5005
 
package/dist-cjs/index.js CHANGED
@@ -10,9 +10,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
10
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
11
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
12
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
14
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
15
  const { AwsEc2QueryProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
16
17
  const { getCopySnapshotPresignedUrlPlugin } = require("@aws-sdk/middleware-sdk-ec2");
17
18
 
18
19
  const defaultEC2HttpAuthSchemeParametersProvider = async (config, context, input) => {
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1075.0";
72
+ var version = "3.1076.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -4276,6 +4277,9 @@ const _MVECNR = "ModifyVpcEndpointConnectionNotificationRequest";
4276
4277
  const _MVECNRo = "ModifyVpcEndpointConnectionNotificationResult";
4277
4278
  const _MVECR = "ModifyVpcEncryptionControlRequest";
4278
4279
  const _MVECRo = "ModifyVpcEncryptionControlResult";
4280
+ const _MVEPR = "ModifyVpcEndpointPayerResponsibility";
4281
+ const _MVEPRR = "ModifyVpcEndpointPayerResponsibilityRequest";
4282
+ const _MVEPRRo = "ModifyVpcEndpointPayerResponsibilityResult";
4279
4283
  const _MVER = "ModifyVpcEndpointRequest";
4280
4284
  const _MVERo = "ModifyVpcEndpointResult";
4281
4285
  const _MVESC = "ModifyVpcEndpointServiceConfiguration";
@@ -4744,6 +4748,7 @@ const _PPIPCR = "ProvisionPublicIpv4PoolCidrRequest";
4744
4748
  const _PPIPCRr = "ProvisionPublicIpv4PoolCidrResult";
4745
4749
  const _PR = "PtrRecord";
4746
4750
  const _PRD = "PersistRoutesDuration";
4751
+ const _PRE = "PayerResponsibilityEntry";
4747
4752
  const _PRF = "PathRequestFilter";
4748
4753
  const _PRIO = "PurchaseReservedInstancesOffering";
4749
4754
  const _PRIOR = "PurchaseReservedInstancesOfferingRequest";
@@ -4752,9 +4757,12 @@ const _PRL = "PortRangeList";
4752
4757
  const _PRN = "PolicyRuleNumber";
4753
4758
  const _PRNo = "PolicyReferenceName";
4754
4759
  const _PRS = "PersistRoutesState";
4760
+ const _PRSa = "PayerResponsibilitySet";
4755
4761
  const _PRSu = "PurchaseRequestSet";
4762
+ const _PRT = "PayerResponsibilityType";
4756
4763
  const _PRU = "PtrRecordUpdate";
4757
4764
  const _PRa = "PayerResponsibility";
4765
+ const _PRay = "PayerResponsibilities";
4758
4766
  const _PRe = "PersistRoutes";
4759
4767
  const _PRee = "PeerRegion";
4760
4768
  const _PRer = "PermanentRestore";
@@ -7673,7 +7681,9 @@ const _pRD = "persistRoutesDuration";
7673
7681
  const _pRN = "policyRuleNumber";
7674
7682
  const _pRNo = "policyReferenceName";
7675
7683
  const _pRS = "portRangeSet";
7684
+ const _pRSa = "payerResponsibilitySet";
7676
7685
  const _pRSe = "persistRoutesState";
7686
+ const _pRT = "payerResponsibilityType";
7677
7687
  const _pRU = "ptrRecordUpdate";
7678
7688
  const _pRa = "payerResponsibility";
7679
7689
  const _pRo = "portRange";
@@ -21159,6 +21169,18 @@ var ModifyVpcEndpointConnectionNotificationResult$ = [3, n0, _MVECNRo,
21159
21169
  [[2, { [_eQN]: `Return`,
21160
21170
  [_xN]: _r }]]
21161
21171
  ];
21172
+ var ModifyVpcEndpointPayerResponsibilityRequest$ = [3, n0, _MVEPRR,
21173
+ 0,
21174
+ [_VEIp, _PRa, _Sco, _DR, _SIe],
21175
+ [0, 0, 0, 2, 0], 3
21176
+ ];
21177
+ var ModifyVpcEndpointPayerResponsibilityResult$ = [3, n0, _MVEPRRo,
21178
+ 0,
21179
+ [_VEIp, _PRay],
21180
+ [[0, { [_eQN]: `VpcEndpointId`,
21181
+ [_xN]: _vEI }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
21182
+ [_xN]: _pRSa }]]
21183
+ ];
21162
21184
  var ModifyVpcEndpointRequest$ = [3, n0, _MVER,
21163
21185
  0,
21164
21186
  [_VEIp, _DR, _RP, _PDo, _ARTI, _RRTI, _ASId, _RSIe, _ASGI, _RSGI, _IAT, _DOn, _PDE, _SC],
@@ -21838,6 +21860,13 @@ var PathStatementRequest$ = [3, n0, _PSRa,
21838
21860
  [_PHS, _RSes],
21839
21861
  [[() => PacketHeaderStatementRequest$, 0], [() => ResourceStatementRequest$, 0]]
21840
21862
  ];
21863
+ var PayerResponsibilityEntry$ = [3, n0, _PRE,
21864
+ 0,
21865
+ [_Sco, _PRT],
21866
+ [[0, { [_eQN]: `Scope`,
21867
+ [_xN]: _sco }], [0, { [_eQN]: `PayerResponsibilityType`,
21868
+ [_xN]: _pRT }]]
21869
+ ];
21841
21870
  var PciId$ = [3, n0, _PIc,
21842
21871
  0,
21843
21872
  [_DIev, _VIe, _SIub, _SVIu],
@@ -25793,7 +25822,7 @@ var VpcEncryptionNonCompliantResource$ = [3, n0, _VENCR,
25793
25822
  ];
25794
25823
  var VpcEndpoint$ = [3, n0, _VE,
25795
25824
  0,
25796
- [_VEIp, _VET, _VI, _SN, _St, _PDo, _RTIo, _SI, _G, _IAT, _DOn, _PDE, _RMeq, _NIIe, _DEn, _CTrea, _T, _OI, _LEa, _IPpvr, _IPp, _FR, _SNA, _RCA, _SR],
25825
+ [_VEIp, _VET, _VI, _SN, _St, _PDo, _RTIo, _SI, _G, _IAT, _DOn, _PDE, _RMeq, _NIIe, _DEn, _CTrea, _T, _OI, _LEa, _IPpvr, _IPp, _FR, _SNA, _RCA, _SR, _PRay],
25797
25826
  [[0, { [_eQN]: `VpcEndpointId`,
25798
25827
  [_xN]: _vEI }], [0, { [_eQN]: `VpcEndpointType`,
25799
25828
  [_xN]: _vET }], [0, { [_eQN]: `VpcId`,
@@ -25819,7 +25848,8 @@ var VpcEndpoint$ = [3, n0, _VE,
25819
25848
  [_xN]: _fR }], [0, { [_eQN]: `ServiceNetworkArn`,
25820
25849
  [_xN]: _sNAe }], [0, { [_eQN]: `ResourceConfigurationArn`,
25821
25850
  [_xN]: _rCA }], [0, { [_eQN]: `ServiceRegion`,
25822
- [_xN]: _sR }]]
25851
+ [_xN]: _sR }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
25852
+ [_xN]: _pRSa }]]
25823
25853
  ];
25824
25854
  var VpcEndpointAssociation$ = [3, n0, _VEAp,
25825
25855
  0,
@@ -25840,7 +25870,7 @@ var VpcEndpointAssociation$ = [3, n0, _VEAp,
25840
25870
  ];
25841
25871
  var VpcEndpointConnection$ = [3, n0, _VECpcn,
25842
25872
  0,
25843
- [_SIe, _VEIp, _VEO, _VESpc, _CTrea, _DEn, _NLBAe, _GLBA, _IAT, _VECIpc, _T, _VER],
25873
+ [_SIe, _VEIp, _VEO, _VESpc, _CTrea, _DEn, _NLBAe, _GLBA, _IAT, _VECIpc, _T, _VER, _PRay],
25844
25874
  [[0, { [_eQN]: `ServiceId`,
25845
25875
  [_xN]: _sI }], [0, { [_eQN]: `VpcEndpointId`,
25846
25876
  [_xN]: _vEI }], [0, { [_eQN]: `VpcEndpointOwner`,
@@ -25853,7 +25883,8 @@ var VpcEndpointConnection$ = [3, n0, _VECpcn,
25853
25883
  [_xN]: _iAT }], [0, { [_eQN]: `VpcEndpointConnectionId`,
25854
25884
  [_xN]: _vECIp }], [() => TagList, { [_eQN]: `TagSet`,
25855
25885
  [_xN]: _tS }], [0, { [_eQN]: `VpcEndpointRegion`,
25856
- [_xN]: _vER }]]
25886
+ [_xN]: _vER }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
25887
+ [_xN]: _pRSa }]]
25857
25888
  ];
25858
25889
  var VpcIpv6CidrBlockAssociation$ = [3, n0, _VICBA,
25859
25890
  0,
@@ -27699,6 +27730,10 @@ var PathComponentList = [1, n0, _PCL,
27699
27730
  0, [() => PathComponent$,
27700
27731
  { [_xN]: _it }]
27701
27732
  ];
27733
+ var PayerResponsibilitySet = [1, n0, _PRSa,
27734
+ 0, [() => PayerResponsibilityEntry$,
27735
+ { [_xN]: _it }]
27736
+ ];
27702
27737
  var PerformanceFactorReferenceSet = [1, n0, _PFRS,
27703
27738
  0, [() => PerformanceFactorReference$,
27704
27739
  { [_xN]: _it }]
@@ -30935,6 +30970,9 @@ var ModifyVpcEndpoint$ = [9, n0, _MVEo,
30935
30970
  var ModifyVpcEndpointConnectionNotification$ = [9, n0, _MVECN,
30936
30971
  0, () => ModifyVpcEndpointConnectionNotificationRequest$, () => ModifyVpcEndpointConnectionNotificationResult$
30937
30972
  ];
30973
+ var ModifyVpcEndpointPayerResponsibility$ = [9, n0, _MVEPR,
30974
+ 0, () => ModifyVpcEndpointPayerResponsibilityRequest$, () => ModifyVpcEndpointPayerResponsibilityResult$
30975
+ ];
30938
30976
  var ModifyVpcEndpointServiceConfiguration$ = [9, n0, _MVESC,
30939
30977
  0, () => ModifyVpcEndpointServiceConfigurationRequest$, () => ModifyVpcEndpointServiceConfigurationResult$
30940
30978
  ];
@@ -31229,6 +31267,7 @@ const getRuntimeConfig$1 = (config) => {
31229
31267
  serviceTarget: "AmazonEC2",
31230
31268
  },
31231
31269
  serviceId: config?.serviceId ?? "EC2",
31270
+ sha256: config?.sha256 ?? Sha256,
31232
31271
  urlParser: config?.urlParser ?? parseUrl,
31233
31272
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
31234
31273
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -31262,7 +31301,6 @@ const getRuntimeConfig = (config) => {
31262
31301
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
31263
31302
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
31264
31303
  }, config),
31265
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
31266
31304
  streamCollector: config?.streamCollector ?? streamCollector,
31267
31305
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
31268
31306
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -39513,6 +39551,18 @@ class ModifyVpcEndpointConnectionNotificationCommand extends Command
39513
39551
  .build() {
39514
39552
  }
39515
39553
 
39554
+ class ModifyVpcEndpointPayerResponsibilityCommand extends Command
39555
+ .classBuilder()
39556
+ .ep(commonParams)
39557
+ .m(function (Command, cs, config, o) {
39558
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
39559
+ })
39560
+ .s("AmazonEC2", "ModifyVpcEndpointPayerResponsibility", {})
39561
+ .n("EC2Client", "ModifyVpcEndpointPayerResponsibilityCommand")
39562
+ .sc(ModifyVpcEndpointPayerResponsibility$)
39563
+ .build() {
39564
+ }
39565
+
39516
39566
  class ModifyVpcEndpointServiceConfigurationCommand extends Command
39517
39567
  .classBuilder()
39518
39568
  .ep(commonParams)
@@ -43856,6 +43906,7 @@ const commands = {
43856
43906
  ModifyVpcEncryptionControlCommand,
43857
43907
  ModifyVpcEndpointCommand,
43858
43908
  ModifyVpcEndpointConnectionNotificationCommand,
43909
+ ModifyVpcEndpointPayerResponsibilityCommand,
43859
43910
  ModifyVpcEndpointServiceConfigurationCommand,
43860
43911
  ModifyVpcEndpointServicePayerResponsibilityCommand,
43861
43912
  ModifyVpcEndpointServicePermissionsCommand,
@@ -46984,6 +47035,13 @@ const VpcEndpointType = {
46984
47035
  Resource: "Resource",
46985
47036
  ServiceNetwork: "ServiceNetwork",
46986
47037
  };
47038
+ const PayerResponsibilityType = {
47039
+ VpcEndpointAccount: "vpc-endpoint-account",
47040
+ VpcEndpointServiceAccount: "vpc-endpoint-service-account",
47041
+ };
47042
+ const PayerResponsibilityScope = {
47043
+ VpcEndpointCharges: "vpc-endpoint-charges",
47044
+ };
46987
47045
  const State = {
46988
47046
  Available: "Available",
46989
47047
  Deleted: "Deleted",
@@ -51542,6 +51600,10 @@ exports.ModifyVpcEndpointConnectionNotification$ = ModifyVpcEndpointConnectionNo
51542
51600
  exports.ModifyVpcEndpointConnectionNotificationCommand = ModifyVpcEndpointConnectionNotificationCommand;
51543
51601
  exports.ModifyVpcEndpointConnectionNotificationRequest$ = ModifyVpcEndpointConnectionNotificationRequest$;
51544
51602
  exports.ModifyVpcEndpointConnectionNotificationResult$ = ModifyVpcEndpointConnectionNotificationResult$;
51603
+ exports.ModifyVpcEndpointPayerResponsibility$ = ModifyVpcEndpointPayerResponsibility$;
51604
+ exports.ModifyVpcEndpointPayerResponsibilityCommand = ModifyVpcEndpointPayerResponsibilityCommand;
51605
+ exports.ModifyVpcEndpointPayerResponsibilityRequest$ = ModifyVpcEndpointPayerResponsibilityRequest$;
51606
+ exports.ModifyVpcEndpointPayerResponsibilityResult$ = ModifyVpcEndpointPayerResponsibilityResult$;
51545
51607
  exports.ModifyVpcEndpointRequest$ = ModifyVpcEndpointRequest$;
51546
51608
  exports.ModifyVpcEndpointResult$ = ModifyVpcEndpointResult$;
51547
51609
  exports.ModifyVpcEndpointServiceConfiguration$ = ModifyVpcEndpointServiceConfiguration$;
@@ -51667,6 +51729,9 @@ exports.PathRequestFilter$ = PathRequestFilter$;
51667
51729
  exports.PathStatement$ = PathStatement$;
51668
51730
  exports.PathStatementRequest$ = PathStatementRequest$;
51669
51731
  exports.PayerResponsibility = PayerResponsibility;
51732
+ exports.PayerResponsibilityEntry$ = PayerResponsibilityEntry$;
51733
+ exports.PayerResponsibilityScope = PayerResponsibilityScope;
51734
+ exports.PayerResponsibilityType = PayerResponsibilityType;
51670
51735
  exports.PaymentOption = PaymentOption;
51671
51736
  exports.PciId$ = PciId$;
51672
51737
  exports.PeeringAttachmentStatus$ = PeeringAttachmentStatus$;
package/dist-es/EC2.js CHANGED
@@ -679,6 +679,7 @@ import { ModifyVpcBlockPublicAccessOptionsCommand, } from "./commands/ModifyVpcB
679
679
  import { ModifyVpcEncryptionControlCommand, } from "./commands/ModifyVpcEncryptionControlCommand";
680
680
  import { ModifyVpcEndpointCommand, } from "./commands/ModifyVpcEndpointCommand";
681
681
  import { ModifyVpcEndpointConnectionNotificationCommand, } from "./commands/ModifyVpcEndpointConnectionNotificationCommand";
682
+ import { ModifyVpcEndpointPayerResponsibilityCommand, } from "./commands/ModifyVpcEndpointPayerResponsibilityCommand";
682
683
  import { ModifyVpcEndpointServiceConfigurationCommand, } from "./commands/ModifyVpcEndpointServiceConfigurationCommand";
683
684
  import { ModifyVpcEndpointServicePayerResponsibilityCommand, } from "./commands/ModifyVpcEndpointServicePayerResponsibilityCommand";
684
685
  import { ModifyVpcEndpointServicePermissionsCommand, } from "./commands/ModifyVpcEndpointServicePermissionsCommand";
@@ -1662,6 +1663,7 @@ const commands = {
1662
1663
  ModifyVpcEncryptionControlCommand,
1663
1664
  ModifyVpcEndpointCommand,
1664
1665
  ModifyVpcEndpointConnectionNotificationCommand,
1666
+ ModifyVpcEndpointPayerResponsibilityCommand,
1665
1667
  ModifyVpcEndpointServiceConfigurationCommand,
1666
1668
  ModifyVpcEndpointServicePayerResponsibilityCommand,
1667
1669
  ModifyVpcEndpointServicePermissionsCommand,
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ModifyVpcEndpointPayerResponsibility$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ModifyVpcEndpointPayerResponsibilityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonEC2", "ModifyVpcEndpointPayerResponsibility", {})
13
+ .n("EC2Client", "ModifyVpcEndpointPayerResponsibilityCommand")
14
+ .sc(ModifyVpcEndpointPayerResponsibility$)
15
+ .build() {
16
+ }
@@ -678,6 +678,7 @@ export * from "./ModifyVpcBlockPublicAccessOptionsCommand";
678
678
  export * from "./ModifyVpcEncryptionControlCommand";
679
679
  export * from "./ModifyVpcEndpointCommand";
680
680
  export * from "./ModifyVpcEndpointConnectionNotificationCommand";
681
+ export * from "./ModifyVpcEndpointPayerResponsibilityCommand";
681
682
  export * from "./ModifyVpcEndpointServiceConfigurationCommand";
682
683
  export * from "./ModifyVpcEndpointServicePayerResponsibilityCommand";
683
684
  export * from "./ModifyVpcEndpointServicePermissionsCommand";
package/dist-es/index.js CHANGED
@@ -13,4 +13,5 @@ export * from "./models/models_4";
13
13
  export * from "./models/models_5";
14
14
  export * from "./models/models_6";
15
15
  export * from "./models/models_7";
16
+ export * from "./models/models_8";
16
17
  export { EC2ServiceException } from "./models/EC2ServiceException";
@@ -2816,6 +2816,13 @@ export const VpcEndpointType = {
2816
2816
  Resource: "Resource",
2817
2817
  ServiceNetwork: "ServiceNetwork",
2818
2818
  };
2819
+ export const PayerResponsibilityType = {
2820
+ VpcEndpointAccount: "vpc-endpoint-account",
2821
+ VpcEndpointServiceAccount: "vpc-endpoint-service-account",
2822
+ };
2823
+ export const PayerResponsibilityScope = {
2824
+ VpcEndpointCharges: "vpc-endpoint-charges",
2825
+ };
2819
2826
  export const State = {
2820
2827
  Available: "Available",
2821
2828
  Deleted: "Deleted",
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsEc2QueryProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  serviceTarget: "AmazonEC2",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "EC2",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -4134,6 +4134,9 @@ const _MVECNR = "ModifyVpcEndpointConnectionNotificationRequest";
4134
4134
  const _MVECNRo = "ModifyVpcEndpointConnectionNotificationResult";
4135
4135
  const _MVECR = "ModifyVpcEncryptionControlRequest";
4136
4136
  const _MVECRo = "ModifyVpcEncryptionControlResult";
4137
+ const _MVEPR = "ModifyVpcEndpointPayerResponsibility";
4138
+ const _MVEPRR = "ModifyVpcEndpointPayerResponsibilityRequest";
4139
+ const _MVEPRRo = "ModifyVpcEndpointPayerResponsibilityResult";
4137
4140
  const _MVER = "ModifyVpcEndpointRequest";
4138
4141
  const _MVERo = "ModifyVpcEndpointResult";
4139
4142
  const _MVESC = "ModifyVpcEndpointServiceConfiguration";
@@ -4602,6 +4605,7 @@ const _PPIPCR = "ProvisionPublicIpv4PoolCidrRequest";
4602
4605
  const _PPIPCRr = "ProvisionPublicIpv4PoolCidrResult";
4603
4606
  const _PR = "PtrRecord";
4604
4607
  const _PRD = "PersistRoutesDuration";
4608
+ const _PRE = "PayerResponsibilityEntry";
4605
4609
  const _PRF = "PathRequestFilter";
4606
4610
  const _PRIO = "PurchaseReservedInstancesOffering";
4607
4611
  const _PRIOR = "PurchaseReservedInstancesOfferingRequest";
@@ -4610,9 +4614,12 @@ const _PRL = "PortRangeList";
4610
4614
  const _PRN = "PolicyRuleNumber";
4611
4615
  const _PRNo = "PolicyReferenceName";
4612
4616
  const _PRS = "PersistRoutesState";
4617
+ const _PRSa = "PayerResponsibilitySet";
4613
4618
  const _PRSu = "PurchaseRequestSet";
4619
+ const _PRT = "PayerResponsibilityType";
4614
4620
  const _PRU = "PtrRecordUpdate";
4615
4621
  const _PRa = "PayerResponsibility";
4622
+ const _PRay = "PayerResponsibilities";
4616
4623
  const _PRe = "PersistRoutes";
4617
4624
  const _PRee = "PeerRegion";
4618
4625
  const _PRer = "PermanentRestore";
@@ -7531,7 +7538,9 @@ const _pRD = "persistRoutesDuration";
7531
7538
  const _pRN = "policyRuleNumber";
7532
7539
  const _pRNo = "policyReferenceName";
7533
7540
  const _pRS = "portRangeSet";
7541
+ const _pRSa = "payerResponsibilitySet";
7534
7542
  const _pRSe = "persistRoutesState";
7543
+ const _pRT = "payerResponsibilityType";
7535
7544
  const _pRU = "ptrRecordUpdate";
7536
7545
  const _pRa = "payerResponsibility";
7537
7546
  const _pRo = "portRange";
@@ -21019,6 +21028,18 @@ export var ModifyVpcEndpointConnectionNotificationResult$ = [3, n0, _MVECNRo,
21019
21028
  [[2, { [_eQN]: `Return`,
21020
21029
  [_xN]: _r }]]
21021
21030
  ];
21031
+ export var ModifyVpcEndpointPayerResponsibilityRequest$ = [3, n0, _MVEPRR,
21032
+ 0,
21033
+ [_VEIp, _PRa, _Sco, _DR, _SIe],
21034
+ [0, 0, 0, 2, 0], 3
21035
+ ];
21036
+ export var ModifyVpcEndpointPayerResponsibilityResult$ = [3, n0, _MVEPRRo,
21037
+ 0,
21038
+ [_VEIp, _PRay],
21039
+ [[0, { [_eQN]: `VpcEndpointId`,
21040
+ [_xN]: _vEI }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
21041
+ [_xN]: _pRSa }]]
21042
+ ];
21022
21043
  export var ModifyVpcEndpointRequest$ = [3, n0, _MVER,
21023
21044
  0,
21024
21045
  [_VEIp, _DR, _RP, _PDo, _ARTI, _RRTI, _ASId, _RSIe, _ASGI, _RSGI, _IAT, _DOn, _PDE, _SC],
@@ -21698,6 +21719,13 @@ export var PathStatementRequest$ = [3, n0, _PSRa,
21698
21719
  [_PHS, _RSes],
21699
21720
  [[() => PacketHeaderStatementRequest$, 0], [() => ResourceStatementRequest$, 0]]
21700
21721
  ];
21722
+ export var PayerResponsibilityEntry$ = [3, n0, _PRE,
21723
+ 0,
21724
+ [_Sco, _PRT],
21725
+ [[0, { [_eQN]: `Scope`,
21726
+ [_xN]: _sco }], [0, { [_eQN]: `PayerResponsibilityType`,
21727
+ [_xN]: _pRT }]]
21728
+ ];
21701
21729
  export var PciId$ = [3, n0, _PIc,
21702
21730
  0,
21703
21731
  [_DIev, _VIe, _SIub, _SVIu],
@@ -25653,7 +25681,7 @@ export var VpcEncryptionNonCompliantResource$ = [3, n0, _VENCR,
25653
25681
  ];
25654
25682
  export var VpcEndpoint$ = [3, n0, _VE,
25655
25683
  0,
25656
- [_VEIp, _VET, _VI, _SN, _St, _PDo, _RTIo, _SI, _G, _IAT, _DOn, _PDE, _RMeq, _NIIe, _DEn, _CTrea, _T, _OI, _LEa, _IPpvr, _IPp, _FR, _SNA, _RCA, _SR],
25684
+ [_VEIp, _VET, _VI, _SN, _St, _PDo, _RTIo, _SI, _G, _IAT, _DOn, _PDE, _RMeq, _NIIe, _DEn, _CTrea, _T, _OI, _LEa, _IPpvr, _IPp, _FR, _SNA, _RCA, _SR, _PRay],
25657
25685
  [[0, { [_eQN]: `VpcEndpointId`,
25658
25686
  [_xN]: _vEI }], [0, { [_eQN]: `VpcEndpointType`,
25659
25687
  [_xN]: _vET }], [0, { [_eQN]: `VpcId`,
@@ -25679,7 +25707,8 @@ export var VpcEndpoint$ = [3, n0, _VE,
25679
25707
  [_xN]: _fR }], [0, { [_eQN]: `ServiceNetworkArn`,
25680
25708
  [_xN]: _sNAe }], [0, { [_eQN]: `ResourceConfigurationArn`,
25681
25709
  [_xN]: _rCA }], [0, { [_eQN]: `ServiceRegion`,
25682
- [_xN]: _sR }]]
25710
+ [_xN]: _sR }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
25711
+ [_xN]: _pRSa }]]
25683
25712
  ];
25684
25713
  export var VpcEndpointAssociation$ = [3, n0, _VEAp,
25685
25714
  0,
@@ -25700,7 +25729,7 @@ export var VpcEndpointAssociation$ = [3, n0, _VEAp,
25700
25729
  ];
25701
25730
  export var VpcEndpointConnection$ = [3, n0, _VECpcn,
25702
25731
  0,
25703
- [_SIe, _VEIp, _VEO, _VESpc, _CTrea, _DEn, _NLBAe, _GLBA, _IAT, _VECIpc, _T, _VER],
25732
+ [_SIe, _VEIp, _VEO, _VESpc, _CTrea, _DEn, _NLBAe, _GLBA, _IAT, _VECIpc, _T, _VER, _PRay],
25704
25733
  [[0, { [_eQN]: `ServiceId`,
25705
25734
  [_xN]: _sI }], [0, { [_eQN]: `VpcEndpointId`,
25706
25735
  [_xN]: _vEI }], [0, { [_eQN]: `VpcEndpointOwner`,
@@ -25713,7 +25742,8 @@ export var VpcEndpointConnection$ = [3, n0, _VECpcn,
25713
25742
  [_xN]: _iAT }], [0, { [_eQN]: `VpcEndpointConnectionId`,
25714
25743
  [_xN]: _vECIp }], [() => TagList, { [_eQN]: `TagSet`,
25715
25744
  [_xN]: _tS }], [0, { [_eQN]: `VpcEndpointRegion`,
25716
- [_xN]: _vER }]]
25745
+ [_xN]: _vER }], [() => PayerResponsibilitySet, { [_eQN]: `PayerResponsibilitySet`,
25746
+ [_xN]: _pRSa }]]
25717
25747
  ];
25718
25748
  export var VpcIpv6CidrBlockAssociation$ = [3, n0, _VICBA,
25719
25749
  0,
@@ -27570,6 +27600,10 @@ var PathComponentList = [1, n0, _PCL,
27570
27600
  0, [() => PathComponent$,
27571
27601
  { [_xN]: _it }]
27572
27602
  ];
27603
+ var PayerResponsibilitySet = [1, n0, _PRSa,
27604
+ 0, [() => PayerResponsibilityEntry$,
27605
+ { [_xN]: _it }]
27606
+ ];
27573
27607
  var PerformanceFactorReferenceSet = [1, n0, _PFRS,
27574
27608
  0, [() => PerformanceFactorReference$,
27575
27609
  { [_xN]: _it }]
@@ -30820,6 +30854,9 @@ export var ModifyVpcEndpoint$ = [9, n0, _MVEo,
30820
30854
  export var ModifyVpcEndpointConnectionNotification$ = [9, n0, _MVECN,
30821
30855
  0, () => ModifyVpcEndpointConnectionNotificationRequest$, () => ModifyVpcEndpointConnectionNotificationResult$
30822
30856
  ];
30857
+ export var ModifyVpcEndpointPayerResponsibility$ = [9, n0, _MVEPR,
30858
+ 0, () => ModifyVpcEndpointPayerResponsibilityRequest$, () => ModifyVpcEndpointPayerResponsibilityResult$
30859
+ ];
30823
30860
  export var ModifyVpcEndpointServiceConfiguration$ = [9, n0, _MVESC,
30824
30861
  0, () => ModifyVpcEndpointServiceConfigurationRequest$, () => ModifyVpcEndpointServiceConfigurationResult$
30825
30862
  ];
@@ -680,6 +680,7 @@ import { type ModifyVpcBlockPublicAccessOptionsCommandInput, type ModifyVpcBlock
680
680
  import { type ModifyVpcEncryptionControlCommandInput, type ModifyVpcEncryptionControlCommandOutput } from "./commands/ModifyVpcEncryptionControlCommand";
681
681
  import { type ModifyVpcEndpointCommandInput, type ModifyVpcEndpointCommandOutput } from "./commands/ModifyVpcEndpointCommand";
682
682
  import { type ModifyVpcEndpointConnectionNotificationCommandInput, type ModifyVpcEndpointConnectionNotificationCommandOutput } from "./commands/ModifyVpcEndpointConnectionNotificationCommand";
683
+ import { type ModifyVpcEndpointPayerResponsibilityCommandInput, type ModifyVpcEndpointPayerResponsibilityCommandOutput } from "./commands/ModifyVpcEndpointPayerResponsibilityCommand";
683
684
  import { type ModifyVpcEndpointServiceConfigurationCommandInput, type ModifyVpcEndpointServiceConfigurationCommandOutput } from "./commands/ModifyVpcEndpointServiceConfigurationCommand";
684
685
  import { type ModifyVpcEndpointServicePayerResponsibilityCommandInput, type ModifyVpcEndpointServicePayerResponsibilityCommandOutput } from "./commands/ModifyVpcEndpointServicePayerResponsibilityCommand";
685
686
  import { type ModifyVpcEndpointServicePermissionsCommandInput, type ModifyVpcEndpointServicePermissionsCommandOutput } from "./commands/ModifyVpcEndpointServicePermissionsCommand";
@@ -5077,6 +5078,12 @@ export interface EC2 {
5077
5078
  modifyVpcEndpointConnectionNotification(args: ModifyVpcEndpointConnectionNotificationCommandInput, options?: __HttpHandlerOptions): Promise<ModifyVpcEndpointConnectionNotificationCommandOutput>;
5078
5079
  modifyVpcEndpointConnectionNotification(args: ModifyVpcEndpointConnectionNotificationCommandInput, cb: (err: any, data?: ModifyVpcEndpointConnectionNotificationCommandOutput) => void): void;
5079
5080
  modifyVpcEndpointConnectionNotification(args: ModifyVpcEndpointConnectionNotificationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyVpcEndpointConnectionNotificationCommandOutput) => void): void;
5081
+ /**
5082
+ * @see {@link ModifyVpcEndpointPayerResponsibilityCommand}
5083
+ */
5084
+ modifyVpcEndpointPayerResponsibility(args: ModifyVpcEndpointPayerResponsibilityCommandInput, options?: __HttpHandlerOptions): Promise<ModifyVpcEndpointPayerResponsibilityCommandOutput>;
5085
+ modifyVpcEndpointPayerResponsibility(args: ModifyVpcEndpointPayerResponsibilityCommandInput, cb: (err: any, data?: ModifyVpcEndpointPayerResponsibilityCommandOutput) => void): void;
5086
+ modifyVpcEndpointPayerResponsibility(args: ModifyVpcEndpointPayerResponsibilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyVpcEndpointPayerResponsibilityCommandOutput) => void): void;
5080
5087
  /**
5081
5088
  * @see {@link ModifyVpcEndpointServiceConfigurationCommand}
5082
5089
  */