aws-sdk-ec2 1.213.0 → 1.214.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +33 -2
- data/lib/aws-sdk-ec2/client_api.rb +1 -0
- data/lib/aws-sdk-ec2/instance.rb +31 -1
- data/lib/aws-sdk-ec2/types.rb +45 -12
- 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: 50c2c6f54c1d60aa0c34a05229337cd16d70989ff2cee1b5bdd95ccd2039233b
|
4
|
+
data.tar.gz: 56208a369de8b2588943aaae694404d5094c99a30ccc1bde30e2ca68cbad4ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db562d9c1d1241abceb403470826f9d83130e8f243ae84a981b50d3e6bd48896328ae815f9370646cc59ec8383513d52f0807fb3df7cf12af07389bd01785395
|
7
|
+
data.tar.gz: bdbe93f64d99e4a2354f674722820a5beb2712400dcaba3a64eb0eaaa69b6a7a515a3bb6764762db14aeced18a8943f1744e0963672f1e4423f9bb761bf33f20
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -5173,11 +5173,31 @@ module Aws::EC2
|
|
5173
5173
|
#
|
5174
5174
|
# @option params [Boolean] :no_reboot
|
5175
5175
|
# By default, Amazon EC2 attempts to shut down and reboot the instance
|
5176
|
-
# before creating the image. If the
|
5176
|
+
# before creating the image. If the `No Reboot` option is set, Amazon
|
5177
5177
|
# EC2 doesn't shut down the instance before creating the image. When
|
5178
5178
|
# this option is used, file system integrity on the created image can't
|
5179
5179
|
# be guaranteed.
|
5180
5180
|
#
|
5181
|
+
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
5182
|
+
# The tags to apply to the AMI and snapshots on creation. You can tag
|
5183
|
+
# the AMI, the snapshots, or both.
|
5184
|
+
#
|
5185
|
+
# * To tag the AMI, the value for `ResourceType` must be `image`.
|
5186
|
+
#
|
5187
|
+
# * To tag the snapshots that are created of the root volume and of
|
5188
|
+
# other EBS volumes that are attached to the instance, the value for
|
5189
|
+
# `ResourceType` must be `snapshot`. The same tag is applied to all of
|
5190
|
+
# the snapshots that are created.
|
5191
|
+
#
|
5192
|
+
# If you specify other values for `ResourceType`, the request fails.
|
5193
|
+
#
|
5194
|
+
# To tag an AMI or snapshot after it has been created, see
|
5195
|
+
# [CreateTags][1].
|
5196
|
+
#
|
5197
|
+
#
|
5198
|
+
#
|
5199
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
5200
|
+
#
|
5181
5201
|
# @return [Types::CreateImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5182
5202
|
#
|
5183
5203
|
# * {Types::CreateImageResult#image_id #image_id} => String
|
@@ -5237,6 +5257,17 @@ module Aws::EC2
|
|
5237
5257
|
# instance_id: "InstanceId", # required
|
5238
5258
|
# name: "String", # required
|
5239
5259
|
# no_reboot: false,
|
5260
|
+
# tag_specifications: [
|
5261
|
+
# {
|
5262
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
5263
|
+
# tags: [
|
5264
|
+
# {
|
5265
|
+
# key: "String",
|
5266
|
+
# value: "String",
|
5267
|
+
# },
|
5268
|
+
# ],
|
5269
|
+
# },
|
5270
|
+
# ],
|
5240
5271
|
# })
|
5241
5272
|
#
|
5242
5273
|
# @example Response structure
|
@@ -39364,7 +39395,7 @@ module Aws::EC2
|
|
39364
39395
|
params: params,
|
39365
39396
|
config: config)
|
39366
39397
|
context[:gem_name] = 'aws-sdk-ec2'
|
39367
|
-
context[:gem_version] = '1.
|
39398
|
+
context[:gem_version] = '1.214.0'
|
39368
39399
|
Seahorse::Client::Request.new(handlers, context)
|
39369
39400
|
end
|
39370
39401
|
|
@@ -3153,6 +3153,7 @@ module Aws::EC2
|
|
3153
3153
|
CreateImageRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "instanceId"))
|
3154
3154
|
CreateImageRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
3155
3155
|
CreateImageRequest.add_member(:no_reboot, Shapes::ShapeRef.new(shape: Boolean, location_name: "noReboot"))
|
3156
|
+
CreateImageRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3156
3157
|
CreateImageRequest.struct_class = Types::CreateImageRequest
|
3157
3158
|
|
3158
3159
|
CreateImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -663,6 +663,17 @@ module Aws::EC2
|
|
663
663
|
# dry_run: false,
|
664
664
|
# name: "String", # required
|
665
665
|
# no_reboot: false,
|
666
|
+
# tag_specifications: [
|
667
|
+
# {
|
668
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
669
|
+
# tags: [
|
670
|
+
# {
|
671
|
+
# key: "String",
|
672
|
+
# value: "String",
|
673
|
+
# },
|
674
|
+
# ],
|
675
|
+
# },
|
676
|
+
# ],
|
666
677
|
# })
|
667
678
|
# @param [Hash] options ({})
|
668
679
|
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
@@ -684,10 +695,29 @@ module Aws::EC2
|
|
684
695
|
# single quotes ('), at-signs (@), or underscores(\_)
|
685
696
|
# @option options [Boolean] :no_reboot
|
686
697
|
# By default, Amazon EC2 attempts to shut down and reboot the instance
|
687
|
-
# before creating the image. If the
|
698
|
+
# before creating the image. If the `No Reboot` option is set, Amazon
|
688
699
|
# EC2 doesn't shut down the instance before creating the image. When
|
689
700
|
# this option is used, file system integrity on the created image can't
|
690
701
|
# be guaranteed.
|
702
|
+
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
703
|
+
# The tags to apply to the AMI and snapshots on creation. You can tag
|
704
|
+
# the AMI, the snapshots, or both.
|
705
|
+
#
|
706
|
+
# * To tag the AMI, the value for `ResourceType` must be `image`.
|
707
|
+
#
|
708
|
+
# * To tag the snapshots that are created of the root volume and of
|
709
|
+
# other EBS volumes that are attached to the instance, the value for
|
710
|
+
# `ResourceType` must be `snapshot`. The same tag is applied to all of
|
711
|
+
# the snapshots that are created.
|
712
|
+
#
|
713
|
+
# If you specify other values for `ResourceType`, the request fails.
|
714
|
+
#
|
715
|
+
# To tag an AMI or snapshot after it has been created, see
|
716
|
+
# [CreateTags][1].
|
717
|
+
#
|
718
|
+
#
|
719
|
+
#
|
720
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
691
721
|
# @return [Image]
|
692
722
|
def create_image(options = {})
|
693
723
|
options = options.merge(instance_id: @id)
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -6398,6 +6398,17 @@ module Aws::EC2
|
|
6398
6398
|
# instance_id: "InstanceId", # required
|
6399
6399
|
# name: "String", # required
|
6400
6400
|
# no_reboot: false,
|
6401
|
+
# tag_specifications: [
|
6402
|
+
# {
|
6403
|
+
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
6404
|
+
# tags: [
|
6405
|
+
# {
|
6406
|
+
# key: "String",
|
6407
|
+
# value: "String",
|
6408
|
+
# },
|
6409
|
+
# ],
|
6410
|
+
# },
|
6411
|
+
# ],
|
6401
6412
|
# }
|
6402
6413
|
#
|
6403
6414
|
# @!attribute [rw] block_device_mappings
|
@@ -6431,12 +6442,33 @@ module Aws::EC2
|
|
6431
6442
|
#
|
6432
6443
|
# @!attribute [rw] no_reboot
|
6433
6444
|
# By default, Amazon EC2 attempts to shut down and reboot the instance
|
6434
|
-
# before creating the image. If the
|
6435
|
-
#
|
6436
|
-
#
|
6437
|
-
#
|
6445
|
+
# before creating the image. If the `No Reboot` option is set, Amazon
|
6446
|
+
# EC2 doesn't shut down the instance before creating the image. When
|
6447
|
+
# this option is used, file system integrity on the created image
|
6448
|
+
# can't be guaranteed.
|
6438
6449
|
# @return [Boolean]
|
6439
6450
|
#
|
6451
|
+
# @!attribute [rw] tag_specifications
|
6452
|
+
# The tags to apply to the AMI and snapshots on creation. You can tag
|
6453
|
+
# the AMI, the snapshots, or both.
|
6454
|
+
#
|
6455
|
+
# * To tag the AMI, the value for `ResourceType` must be `image`.
|
6456
|
+
#
|
6457
|
+
# * To tag the snapshots that are created of the root volume and of
|
6458
|
+
# other EBS volumes that are attached to the instance, the value for
|
6459
|
+
# `ResourceType` must be `snapshot`. The same tag is applied to all
|
6460
|
+
# of the snapshots that are created.
|
6461
|
+
#
|
6462
|
+
# If you specify other values for `ResourceType`, the request fails.
|
6463
|
+
#
|
6464
|
+
# To tag an AMI or snapshot after it has been created, see
|
6465
|
+
# [CreateTags][1].
|
6466
|
+
#
|
6467
|
+
#
|
6468
|
+
#
|
6469
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
6470
|
+
# @return [Array<Types::TagSpecification>]
|
6471
|
+
#
|
6440
6472
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageRequest AWS API Documentation
|
6441
6473
|
#
|
6442
6474
|
class CreateImageRequest < Struct.new(
|
@@ -6445,7 +6477,8 @@ module Aws::EC2
|
|
6445
6477
|
:dry_run,
|
6446
6478
|
:instance_id,
|
6447
6479
|
:name,
|
6448
|
-
:no_reboot
|
6480
|
+
:no_reboot,
|
6481
|
+
:tag_specifications)
|
6449
6482
|
SENSITIVE = []
|
6450
6483
|
include Aws::Structure
|
6451
6484
|
end
|
@@ -49388,13 +49421,13 @@ module Aws::EC2
|
|
49388
49421
|
# `carrier-gateway` \| `client-vpn-endpoint` \| `customer-gateway` \|
|
49389
49422
|
# `dedicated-host` \| `dhcp-options` \| `export-image-task` \|
|
49390
49423
|
# `export-instance-task` \| `fleet` \| `fpga-image` \|
|
49391
|
-
# `host-reservation` \| `import-image-task` \|
|
49392
|
-
# \| `instance` \| `internet-gateway` \|
|
49393
|
-
# `ipv6pool-ec2` \| `key-pair` \| `launch-template`
|
49394
|
-
# `placement-group` \| `prefix-list` \| `natgateway` \|
|
49395
|
-
# \| `route-table` \| `security-group
|
49396
|
-
# `spot-
|
49397
|
-
# `traffic-mirror-filter` \| `traffic-mirror-session` \|
|
49424
|
+
# `host-reservation` \| `image`\| `import-image-task` \|
|
49425
|
+
# `import-snapshot-task` \| `instance` \| `internet-gateway` \|
|
49426
|
+
# `ipv4pool-ec2` \| `ipv6pool-ec2` \| `key-pair` \| `launch-template`
|
49427
|
+
# \| `placement-group` \| `prefix-list` \| `natgateway` \|
|
49428
|
+
# `network-acl` \| `route-table` \| `security-group`\| `snapshot` \|
|
49429
|
+
# `spot-fleet-request` \| `spot-instances-request` \| `snapshot` \|
|
49430
|
+
# `subnet` \| `traffic-mirror-filter` \| `traffic-mirror-session` \|
|
49398
49431
|
# `traffic-mirror-target` \| `transit-gateway` \|
|
49399
49432
|
# `transit-gateway-attachment` \| `transit-gateway-route-table` \|
|
49400
49433
|
# `volume` \|`vpc` \| ` vpc-peering-connection` \| `vpc-endpoint` (for
|
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.214.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: 2020-12-
|
11
|
+
date: 2020-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|