aws-sdk-ec2 1.357.0 → 1.359.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +31 -1
- data/lib/aws-sdk-ec2/client_api.rb +2 -0
- data/lib/aws-sdk-ec2/endpoint_provider.rb +38 -99
- data/lib/aws-sdk-ec2/types.rb +77 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1408b06bb5d201b36a8a0eb99234ac6c6a9b39cd54aa4dd2f21150fc61c15781
|
4
|
+
data.tar.gz: de1c1d4a6db3d58f9c67dde60780065731233685ea4d5df7172c497a428427ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e691748cb9c2c0cbcbf1efb0082beeb7da27155fdc4233068cf247516ef2b1894e668edaef055fec42cddefb2cf2f808df65ace8a5f0df779c2524e035972074
|
7
|
+
data.tar.gz: 1bfb946dc479d1608af6610ef1668af6424ccc79a42d27039795f81307972f381015fafb9b04ba4f87ca9d2a02c87a09fcdb48fa6c9b55b69b4ba04d69ebbbaf
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.359.0 (2023-01-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds SSM Parameter Resource Aliasing support to EC2 Launch Templates. Launch Templates can now store parameter aliases in place of AMI Resource IDs. CreateLaunchTemplateVersion and DescribeLaunchTemplateVersions now support a convenience flag, ResolveAlias, to return the resolved parameter value.
|
8
|
+
|
9
|
+
1.358.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.357.0 (2023-01-13)
|
5
17
|
------------------
|
6
18
|
|
@@ -1899,4 +1911,4 @@ Unreleased Changes
|
|
1899
1911
|
1.0.0.rc1 (2016-12-05)
|
1900
1912
|
------------------
|
1901
1913
|
|
1902
|
-
* Feature - Initial preview release of the `aws-sdk-ec2` gem.
|
1914
|
+
* Feature - Initial preview release of the `aws-sdk-ec2` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.359.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -7987,6 +7987,18 @@ module Aws::EC2
|
|
7987
7987
|
# @option params [required, Types::RequestLaunchTemplateData] :launch_template_data
|
7988
7988
|
# The information for the launch template.
|
7989
7989
|
#
|
7990
|
+
# @option params [Boolean] :resolve_alias
|
7991
|
+
# If `true`, and if a Systems Manager parameter is specified for
|
7992
|
+
# `ImageId`, the AMI ID is displayed in the response for `imageID`. For
|
7993
|
+
# more information, see [Use a Systems Manager parameter instead of an
|
7994
|
+
# AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
7995
|
+
#
|
7996
|
+
# Default: `false`
|
7997
|
+
#
|
7998
|
+
#
|
7999
|
+
#
|
8000
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
8001
|
+
#
|
7990
8002
|
# @return [Types::CreateLaunchTemplateVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7991
8003
|
#
|
7992
8004
|
# * {Types::CreateLaunchTemplateVersionResult#launch_template_version #launch_template_version} => Types::LaunchTemplateVersion
|
@@ -8258,6 +8270,7 @@ module Aws::EC2
|
|
8258
8270
|
# },
|
8259
8271
|
# disable_api_stop: false,
|
8260
8272
|
# },
|
8273
|
+
# resolve_alias: false,
|
8261
8274
|
# })
|
8262
8275
|
#
|
8263
8276
|
# @example Response structure
|
@@ -24978,6 +24991,22 @@ module Aws::EC2
|
|
24978
24991
|
#
|
24979
24992
|
# * `ram-disk-id` - The RAM disk ID.
|
24980
24993
|
#
|
24994
|
+
# @option params [Boolean] :resolve_alias
|
24995
|
+
# If `true`, and if a Systems Manager parameter is specified for
|
24996
|
+
# `ImageId`, the AMI ID is displayed in the response for `imageId`.
|
24997
|
+
#
|
24998
|
+
# If `false`, and if a Systems Manager parameter is specified for
|
24999
|
+
# `ImageId`, the parameter is displayed in the response for `imageId`.
|
25000
|
+
#
|
25001
|
+
# For more information, see [Use a Systems Manager parameter instead of
|
25002
|
+
# an AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
25003
|
+
#
|
25004
|
+
# Default: `false`
|
25005
|
+
#
|
25006
|
+
#
|
25007
|
+
#
|
25008
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
25009
|
+
#
|
24981
25010
|
# @return [Types::DescribeLaunchTemplateVersionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
24982
25011
|
#
|
24983
25012
|
# * {Types::DescribeLaunchTemplateVersionsResult#launch_template_versions #launch_template_versions} => Array<Types::LaunchTemplateVersion>
|
@@ -25064,6 +25093,7 @@ module Aws::EC2
|
|
25064
25093
|
# values: ["String"],
|
25065
25094
|
# },
|
25066
25095
|
# ],
|
25096
|
+
# resolve_alias: false,
|
25067
25097
|
# })
|
25068
25098
|
#
|
25069
25099
|
# @example Response structure
|
@@ -54776,7 +54806,7 @@ module Aws::EC2
|
|
54776
54806
|
params: params,
|
54777
54807
|
config: config)
|
54778
54808
|
context[:gem_name] = 'aws-sdk-ec2'
|
54779
|
-
context[:gem_version] = '1.
|
54809
|
+
context[:gem_version] = '1.359.0'
|
54780
54810
|
Seahorse::Client::Request.new(handlers, context)
|
54781
54811
|
end
|
54782
54812
|
|
@@ -4447,6 +4447,7 @@ module Aws::EC2
|
|
4447
4447
|
CreateLaunchTemplateVersionRequest.add_member(:source_version, Shapes::ShapeRef.new(shape: String, location_name: "SourceVersion"))
|
4448
4448
|
CreateLaunchTemplateVersionRequest.add_member(:version_description, Shapes::ShapeRef.new(shape: VersionDescription, location_name: "VersionDescription"))
|
4449
4449
|
CreateLaunchTemplateVersionRequest.add_member(:launch_template_data, Shapes::ShapeRef.new(shape: RequestLaunchTemplateData, required: true, location_name: "LaunchTemplateData"))
|
4450
|
+
CreateLaunchTemplateVersionRequest.add_member(:resolve_alias, Shapes::ShapeRef.new(shape: Boolean, location_name: "ResolveAlias"))
|
4450
4451
|
CreateLaunchTemplateVersionRequest.struct_class = Types::CreateLaunchTemplateVersionRequest
|
4451
4452
|
|
4452
4453
|
CreateLaunchTemplateVersionResult.add_member(:launch_template_version, Shapes::ShapeRef.new(shape: LaunchTemplateVersion, location_name: "launchTemplateVersion"))
|
@@ -6384,6 +6385,7 @@ module Aws::EC2
|
|
6384
6385
|
DescribeLaunchTemplateVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
6385
6386
|
DescribeLaunchTemplateVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
|
6386
6387
|
DescribeLaunchTemplateVersionsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
6388
|
+
DescribeLaunchTemplateVersionsRequest.add_member(:resolve_alias, Shapes::ShapeRef.new(shape: Boolean, location_name: "ResolveAlias"))
|
6387
6389
|
DescribeLaunchTemplateVersionsRequest.struct_class = Types::DescribeLaunchTemplateVersionsRequest
|
6388
6390
|
|
6389
6391
|
DescribeLaunchTemplateVersionsResult.add_member(:launch_template_versions, Shapes::ShapeRef.new(shape: LaunchTemplateVersionSet, location_name: "launchTemplateVersionSet"))
|
@@ -9,107 +9,46 @@
|
|
9
9
|
|
10
10
|
module Aws::EC2
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
39
|
+
end
|
40
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
41
|
+
end
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
45
|
+
end
|
46
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
47
|
+
end
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
49
|
end
|
22
|
-
|
23
|
-
end
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
51
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
52
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
-
aWx0SW4iOiJBV1M6OlVzZUR1YWx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+8177,19 @@ module Aws::EC2
|
|
8177
8177
|
# The information for the launch template.
|
8178
8178
|
# @return [Types::RequestLaunchTemplateData]
|
8179
8179
|
#
|
8180
|
+
# @!attribute [rw] resolve_alias
|
8181
|
+
# If `true`, and if a Systems Manager parameter is specified for
|
8182
|
+
# `ImageId`, the AMI ID is displayed in the response for `imageID`.
|
8183
|
+
# For more information, see [Use a Systems Manager parameter instead
|
8184
|
+
# of an AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
8185
|
+
#
|
8186
|
+
# Default: `false`
|
8187
|
+
#
|
8188
|
+
#
|
8189
|
+
#
|
8190
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
8191
|
+
# @return [Boolean]
|
8192
|
+
#
|
8180
8193
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersionRequest AWS API Documentation
|
8181
8194
|
#
|
8182
8195
|
class CreateLaunchTemplateVersionRequest < Struct.new(
|
@@ -8186,7 +8199,8 @@ module Aws::EC2
|
|
8186
8199
|
:launch_template_name,
|
8187
8200
|
:source_version,
|
8188
8201
|
:version_description,
|
8189
|
-
:launch_template_data
|
8202
|
+
:launch_template_data,
|
8203
|
+
:resolve_alias)
|
8190
8204
|
SENSITIVE = [:launch_template_data]
|
8191
8205
|
include Aws::Structure
|
8192
8206
|
end
|
@@ -19605,6 +19619,23 @@ module Aws::EC2
|
|
19605
19619
|
# * `ram-disk-id` - The RAM disk ID.
|
19606
19620
|
# @return [Array<Types::Filter>]
|
19607
19621
|
#
|
19622
|
+
# @!attribute [rw] resolve_alias
|
19623
|
+
# If `true`, and if a Systems Manager parameter is specified for
|
19624
|
+
# `ImageId`, the AMI ID is displayed in the response for `imageId`.
|
19625
|
+
#
|
19626
|
+
# If `false`, and if a Systems Manager parameter is specified for
|
19627
|
+
# `ImageId`, the parameter is displayed in the response for `imageId`.
|
19628
|
+
#
|
19629
|
+
# For more information, see [Use a Systems Manager parameter instead
|
19630
|
+
# of an AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
19631
|
+
#
|
19632
|
+
# Default: `false`
|
19633
|
+
#
|
19634
|
+
#
|
19635
|
+
#
|
19636
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
19637
|
+
# @return [Boolean]
|
19638
|
+
#
|
19608
19639
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersionsRequest AWS API Documentation
|
19609
19640
|
#
|
19610
19641
|
class DescribeLaunchTemplateVersionsRequest < Struct.new(
|
@@ -19616,7 +19647,8 @@ module Aws::EC2
|
|
19616
19647
|
:max_version,
|
19617
19648
|
:next_token,
|
19618
19649
|
:max_results,
|
19619
|
-
:filters
|
19650
|
+
:filters,
|
19651
|
+
:resolve_alias)
|
19620
19652
|
SENSITIVE = []
|
19621
19653
|
include Aws::Structure
|
19622
19654
|
end
|
@@ -50414,7 +50446,25 @@ module Aws::EC2
|
|
50414
50446
|
# @return [Array<Types::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>]
|
50415
50447
|
#
|
50416
50448
|
# @!attribute [rw] image_id
|
50417
|
-
# The ID of the AMI.
|
50449
|
+
# The ID of the AMI. Alternatively, you can specify a Systems Manager
|
50450
|
+
# parameter, which will resolve to an AMI ID on launch.
|
50451
|
+
#
|
50452
|
+
# Valid formats:
|
50453
|
+
#
|
50454
|
+
# * `ami-17characters00000`
|
50455
|
+
#
|
50456
|
+
# * `resolve:ssm:parameter-name`
|
50457
|
+
#
|
50458
|
+
# * `resolve:ssm:parameter-name:version-number`
|
50459
|
+
#
|
50460
|
+
# * `resolve:ssm:parameter-name:label`
|
50461
|
+
#
|
50462
|
+
# For more information, see [Use a Systems Manager parameter instead
|
50463
|
+
# of an AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
50464
|
+
#
|
50465
|
+
#
|
50466
|
+
#
|
50467
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
50418
50468
|
# @return [String]
|
50419
50469
|
#
|
50420
50470
|
# @!attribute [rw] instance_type
|
@@ -51865,7 +51915,30 @@ module Aws::EC2
|
|
51865
51915
|
# @return [Array<Types::LaunchTemplateInstanceNetworkInterfaceSpecification>]
|
51866
51916
|
#
|
51867
51917
|
# @!attribute [rw] image_id
|
51868
|
-
# The ID of the AMI
|
51918
|
+
# The ID of the AMI or a Systems Manager parameter. The Systems
|
51919
|
+
# Manager parameter will resolve to the ID of the AMI at instance
|
51920
|
+
# launch.
|
51921
|
+
#
|
51922
|
+
# The value depends on what you specified in the request. The possible
|
51923
|
+
# values are:
|
51924
|
+
#
|
51925
|
+
# * If an AMI ID was specified in the request, then this is the AMI
|
51926
|
+
# ID.
|
51927
|
+
#
|
51928
|
+
# * If a Systems Manager parameter was specified in the request, and
|
51929
|
+
# `ResolveAlias` was configured as `true`, then this is the AMI ID
|
51930
|
+
# that the parameter is mapped to in the Parameter Store.
|
51931
|
+
#
|
51932
|
+
# * If a Systems Manager parameter was specified in the request, and
|
51933
|
+
# `ResolveAlias` was configured as `false`, then this is the
|
51934
|
+
# parameter value.
|
51935
|
+
#
|
51936
|
+
# For more information, see [Use a Systems Manager parameter instead
|
51937
|
+
# of an AMI ID][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
51938
|
+
#
|
51939
|
+
#
|
51940
|
+
#
|
51941
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#use-an-ssm-parameter-instead-of-an-ami-id
|
51869
51942
|
# @return [String]
|
51870
51943
|
#
|
51871
51944
|
# @!attribute [rw] instance_type
|
data/lib/aws-sdk-ec2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.359.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|