@aws-sdk/client-ec2 3.251.0 → 3.254.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.
@@ -26154,6 +26154,9 @@ const serializeAws_ec2CreateLaunchTemplateVersionRequest = (input, context) => {
26154
26154
  entries[loc] = value;
26155
26155
  });
26156
26156
  }
26157
+ if (input.ResolveAlias != null) {
26158
+ entries["ResolveAlias"] = input.ResolveAlias;
26159
+ }
26157
26160
  return entries;
26158
26161
  };
26159
26162
  const serializeAws_ec2CreateLocalGatewayRouteRequest = (input, context) => {
@@ -30966,6 +30969,9 @@ const serializeAws_ec2DescribeLaunchTemplateVersionsRequest = (input, context) =
30966
30969
  entries[loc] = value;
30967
30970
  });
30968
30971
  }
30972
+ if (input.ResolveAlias != null) {
30973
+ entries["ResolveAlias"] = input.ResolveAlias;
30974
+ }
30969
30975
  return entries;
30970
30976
  };
30971
30977
  const serializeAws_ec2DescribeLocalGatewayRouteTablesRequest = (input, context) => {
@@ -24976,6 +24976,9 @@ const serializeAws_ec2CreateLaunchTemplateVersionRequest = (input, context) => {
24976
24976
  entries[loc] = value;
24977
24977
  });
24978
24978
  }
24979
+ if (input.ResolveAlias != null) {
24980
+ entries["ResolveAlias"] = input.ResolveAlias;
24981
+ }
24979
24982
  return entries;
24980
24983
  };
24981
24984
  const serializeAws_ec2CreateLocalGatewayRouteRequest = (input, context) => {
@@ -29788,6 +29791,9 @@ const serializeAws_ec2DescribeLaunchTemplateVersionsRequest = (input, context) =
29788
29791
  entries[loc] = value;
29789
29792
  });
29790
29793
  }
29794
+ if (input.ResolveAlias != null) {
29795
+ entries["ResolveAlias"] = input.ResolveAlias;
29796
+ }
29791
29797
  return entries;
29792
29798
  };
29793
29799
  const serializeAws_ec2DescribeLocalGatewayRouteTablesRequest = (input, context) => {
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AcceptAddressTransferCommandInput, AcceptAddressTransferCommandOutput } from "./commands/AcceptAddressTransferCommand";
11
11
  import { AcceptReservedInstancesExchangeQuoteCommandInput, AcceptReservedInstancesExchangeQuoteCommandOutput } from "./commands/AcceptReservedInstancesExchangeQuoteCommand";
12
12
  import { AcceptTransitGatewayMulticastDomainAssociationsCommandInput, AcceptTransitGatewayMulticastDomainAssociationsCommandOutput } from "./commands/AcceptTransitGatewayMulticastDomainAssociationsCommand";
@@ -592,11 +592,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
592
592
  */
593
593
  requestHandler?: __HttpHandler;
594
594
  /**
595
- * A constructor for a class implementing the {@link __Hash} interface
595
+ * A constructor for a class implementing the {@link __Checksum} interface
596
596
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
597
597
  * @internal
598
598
  */
599
- sha256?: __HashConstructor;
599
+ sha256?: __ChecksumConstructor | __HashConstructor;
600
600
  /**
601
601
  * The function that will be used to convert strings into HTTP endpoints.
602
602
  * @internal
@@ -4089,7 +4089,33 @@ export interface RequestLaunchTemplateData {
4089
4089
  */
4090
4090
  NetworkInterfaces?: LaunchTemplateInstanceNetworkInterfaceSpecificationRequest[];
4091
4091
  /**
4092
- * <p>The ID of the AMI.</p>
4092
+ * <p>The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which
4093
+ * will resolve to an AMI ID on launch.</p>
4094
+ * <p>Valid formats:</p>
4095
+ * <ul>
4096
+ * <li>
4097
+ * <p>
4098
+ * <code>ami-17characters00000</code>
4099
+ * </p>
4100
+ * </li>
4101
+ * <li>
4102
+ * <p>
4103
+ * <code>resolve:ssm:parameter-name</code>
4104
+ * </p>
4105
+ * </li>
4106
+ * <li>
4107
+ * <p>
4108
+ * <code>resolve:ssm:parameter-name:version-number</code>
4109
+ * </p>
4110
+ * </li>
4111
+ * <li>
4112
+ * <p>
4113
+ * <code>resolve:ssm:parameter-name:label</code>
4114
+ * </p>
4115
+ * </li>
4116
+ * </ul>
4117
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id">Use a Systems
4118
+ * Manager parameter instead of an AMI ID</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4093
4119
  */
4094
4120
  ImageId?: string;
4095
4121
  /**
@@ -4414,6 +4440,14 @@ export interface CreateLaunchTemplateVersionRequest {
4414
4440
  * <p>The information for the launch template.</p>
4415
4441
  */
4416
4442
  LaunchTemplateData: RequestLaunchTemplateData | undefined;
4443
+ /**
4444
+ * <p>If <code>true</code>, and if a Systems Manager parameter is specified for <code>ImageId</code>,
4445
+ * the AMI ID is displayed in the response for <code>imageID</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id">Use a Systems
4446
+ * Manager parameter instead of an AMI ID</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4447
+ * <p>Default: <code>false</code>
4448
+ * </p>
4449
+ */
4450
+ ResolveAlias?: boolean;
4417
4451
  }
4418
4452
  /**
4419
4453
  * <p>Describes a block device for an EBS volume.</p>
@@ -4958,7 +4992,25 @@ export interface ResponseLaunchTemplateData {
4958
4992
  */
4959
4993
  NetworkInterfaces?: LaunchTemplateInstanceNetworkInterfaceSpecification[];
4960
4994
  /**
4961
- * <p>The ID of the AMI that was used to launch the instance.</p>
4995
+ * <p>The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will
4996
+ * resolve to the ID of the AMI at instance launch.</p>
4997
+ * <p>The value depends on what you specified in the request. The possible values are:</p>
4998
+ * <ul>
4999
+ * <li>
5000
+ * <p>If an AMI ID was specified in the request, then this is the AMI ID.</p>
5001
+ * </li>
5002
+ * <li>
5003
+ * <p>If a Systems Manager parameter was specified in the request, and
5004
+ * <code>ResolveAlias</code> was configured as <code>true</code>, then this is
5005
+ * the AMI ID that the parameter is mapped to in the Parameter Store.</p>
5006
+ * </li>
5007
+ * <li>
5008
+ * <p>If a Systems Manager parameter was specified in the request, and <code>ResolveAlias</code> was configured
5009
+ * as <code>false</code>, then this is the parameter value.</p>
5010
+ * </li>
5011
+ * </ul>
5012
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id">Use a Systems
5013
+ * Manager parameter instead of an AMI ID</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4962
5014
  */
4963
5015
  ImageId?: string;
4964
5016
  /**
@@ -1062,6 +1062,17 @@ export interface DescribeLaunchTemplateVersionsRequest {
1062
1062
  * </ul>
1063
1063
  */
1064
1064
  Filters?: Filter[];
1065
+ /**
1066
+ * <p>If <code>true</code>, and if a Systems Manager parameter is specified for <code>ImageId</code>,
1067
+ * the AMI ID is displayed in the response for <code>imageId</code>.</p>
1068
+ * <p>If <code>false</code>, and if a Systems Manager parameter is specified for <code>ImageId</code>,
1069
+ * the parameter is displayed in the response for <code>imageId</code>.</p>
1070
+ * <p> For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id">Use a Systems
1071
+ * Manager parameter instead of an AMI ID</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1072
+ * <p>Default: <code>false</code>
1073
+ * </p>
1074
+ */
1075
+ ResolveAlias?: boolean;
1065
1076
  }
1066
1077
  export interface DescribeLaunchTemplateVersionsResult {
1067
1078
  /**
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -3509,7 +3510,7 @@ export declare type ServiceOutputTypes =
3509
3510
  export interface ClientDefaults
3510
3511
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
3511
3512
  requestHandler?: __HttpHandler;
3512
- sha256?: __HashConstructor;
3513
+ sha256?: __ChecksumConstructor | __HashConstructor;
3513
3514
  urlParser?: __UrlParser;
3514
3515
  bodyLengthChecker?: __BodyLengthCalculator;
3515
3516
  streamCollector?: __StreamCollector;
@@ -1091,6 +1091,7 @@ export interface CreateLaunchTemplateVersionRequest {
1091
1091
  SourceVersion?: string;
1092
1092
  VersionDescription?: string;
1093
1093
  LaunchTemplateData: RequestLaunchTemplateData | undefined;
1094
+ ResolveAlias?: boolean;
1094
1095
  }
1095
1096
  export interface LaunchTemplateEbsBlockDevice {
1096
1097
  Encrypted?: boolean;
@@ -392,6 +392,7 @@ export interface DescribeLaunchTemplateVersionsRequest {
392
392
  NextToken?: string;
393
393
  MaxResults?: number;
394
394
  Filters?: Filter[];
395
+ ResolveAlias?: boolean;
395
396
  }
396
397
  export interface DescribeLaunchTemplateVersionsResult {
397
398
  LaunchTemplateVersions?: LaunchTemplateVersion[];
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.251.0",
4
+ "version": "3.254.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",
@@ -11,50 +11,50 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
- "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/ec2.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo ec2"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
17
17
  "types": "./dist-types/index.d.ts",
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.245.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-sdk-ec2": "3.226.0",
36
- "@aws-sdk/middleware-serde": "3.226.0",
37
- "@aws-sdk/middleware-signing": "3.226.0",
38
- "@aws-sdk/middleware-stack": "3.226.0",
39
- "@aws-sdk/middleware-user-agent": "3.226.0",
40
- "@aws-sdk/node-config-provider": "3.226.0",
41
- "@aws-sdk/node-http-handler": "3.226.0",
42
- "@aws-sdk/protocol-http": "3.226.0",
43
- "@aws-sdk/smithy-client": "3.234.0",
44
- "@aws-sdk/types": "3.226.0",
45
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-sdk-ec2": "3.254.0",
36
+ "@aws-sdk/middleware-serde": "3.254.0",
37
+ "@aws-sdk/middleware-signing": "3.254.0",
38
+ "@aws-sdk/middleware-stack": "3.254.0",
39
+ "@aws-sdk/middleware-user-agent": "3.254.0",
40
+ "@aws-sdk/node-config-provider": "3.254.0",
41
+ "@aws-sdk/node-http-handler": "3.254.0",
42
+ "@aws-sdk/protocol-http": "3.254.0",
43
+ "@aws-sdk/smithy-client": "3.254.0",
44
+ "@aws-sdk/types": "3.254.0",
45
+ "@aws-sdk/url-parser": "3.254.0",
46
46
  "@aws-sdk/util-base64": "3.208.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
48
48
  "@aws-sdk/util-body-length-node": "3.208.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
51
- "@aws-sdk/util-endpoints": "3.245.0",
52
- "@aws-sdk/util-retry": "3.229.0",
53
- "@aws-sdk/util-user-agent-browser": "3.226.0",
54
- "@aws-sdk/util-user-agent-node": "3.226.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
51
+ "@aws-sdk/util-endpoints": "3.254.0",
52
+ "@aws-sdk/util-retry": "3.254.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
54
+ "@aws-sdk/util-user-agent-node": "3.254.0",
55
55
  "@aws-sdk/util-utf8-browser": "3.188.0",
56
56
  "@aws-sdk/util-utf8-node": "3.208.0",
57
- "@aws-sdk/util-waiter": "3.226.0",
57
+ "@aws-sdk/util-waiter": "3.254.0",
58
58
  "fast-xml-parser": "4.0.11",
59
59
  "tslib": "^2.3.1",
60
60
  "uuid": "^8.3.2"