aws-sdk-ec2 1.105.0 → 1.106.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 +165 -13
- data/lib/aws-sdk-ec2/client_api.rb +78 -0
- data/lib/aws-sdk-ec2/types.rb +292 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2d59e810cb3c1b0f8a1186e79e05e9cbbc259bf
|
4
|
+
data.tar.gz: e4a3d4352f563e21c877ab7e8116134cec5db4f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5ce3fd09e0b8988bffc38c0e3cd35e5222501d5ccc9059682976a876880a10356b03d7bc3bdeac3bf3be6b2e23771d0202be3976b1f5174b76da3425ad6183
|
7
|
+
data.tar.gz: 42c6460c99c783538abe64d11bc6c0311699f717721d3a698a30bfe35f7efba2d420b9c5e66c1bdc65396096c57651f5e167b021cc6697385a45e76b294e9743
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -12243,7 +12243,72 @@ module Aws::EC2
|
|
12243
12243
|
req.send_request(options)
|
12244
12244
|
end
|
12245
12245
|
|
12246
|
-
# Describes the specified export tasks or all your export
|
12246
|
+
# Describes the specified export image tasks or all your export image
|
12247
|
+
# tasks.
|
12248
|
+
#
|
12249
|
+
# @option params [Boolean] :dry_run
|
12250
|
+
# Checks whether you have the required permissions for the action,
|
12251
|
+
# without actually making the request, and provides an error response.
|
12252
|
+
# If you have the required permissions, the error response is
|
12253
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
12254
|
+
#
|
12255
|
+
# @option params [Array<Types::Filter>] :filters
|
12256
|
+
# Filter tasks using the `task-state` filter and one of the following
|
12257
|
+
# values: `active`, `completed`, `deleting`, or `deleted`.
|
12258
|
+
#
|
12259
|
+
# @option params [Array<String>] :export_image_task_ids
|
12260
|
+
# The IDs of the export image tasks.
|
12261
|
+
#
|
12262
|
+
# @option params [Integer] :max_results
|
12263
|
+
# The maximum number of results to return in a single call.
|
12264
|
+
#
|
12265
|
+
# @option params [String] :next_token
|
12266
|
+
# A token that indicates the next page of results.
|
12267
|
+
#
|
12268
|
+
# @return [Types::DescribeExportImageTasksResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
12269
|
+
#
|
12270
|
+
# * {Types::DescribeExportImageTasksResult#export_image_tasks #export_image_tasks} => Array<Types::ExportImageTask>
|
12271
|
+
# * {Types::DescribeExportImageTasksResult#next_token #next_token} => String
|
12272
|
+
#
|
12273
|
+
# @example Request syntax with placeholder values
|
12274
|
+
#
|
12275
|
+
# resp = client.describe_export_image_tasks({
|
12276
|
+
# dry_run: false,
|
12277
|
+
# filters: [
|
12278
|
+
# {
|
12279
|
+
# name: "String",
|
12280
|
+
# values: ["String"],
|
12281
|
+
# },
|
12282
|
+
# ],
|
12283
|
+
# export_image_task_ids: ["String"],
|
12284
|
+
# max_results: 1,
|
12285
|
+
# next_token: "NextToken",
|
12286
|
+
# })
|
12287
|
+
#
|
12288
|
+
# @example Response structure
|
12289
|
+
#
|
12290
|
+
# resp.export_image_tasks #=> Array
|
12291
|
+
# resp.export_image_tasks[0].description #=> String
|
12292
|
+
# resp.export_image_tasks[0].export_image_task_id #=> String
|
12293
|
+
# resp.export_image_tasks[0].image_id #=> String
|
12294
|
+
# resp.export_image_tasks[0].progress #=> String
|
12295
|
+
# resp.export_image_tasks[0].s3_export_location.s3_bucket #=> String
|
12296
|
+
# resp.export_image_tasks[0].s3_export_location.s3_prefix #=> String
|
12297
|
+
# resp.export_image_tasks[0].status #=> String
|
12298
|
+
# resp.export_image_tasks[0].status_message #=> String
|
12299
|
+
# resp.next_token #=> String
|
12300
|
+
#
|
12301
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportImageTasks AWS API Documentation
|
12302
|
+
#
|
12303
|
+
# @overload describe_export_image_tasks(params = {})
|
12304
|
+
# @param [Hash] params ({})
|
12305
|
+
def describe_export_image_tasks(params = {}, options = {})
|
12306
|
+
req = build_request(:describe_export_image_tasks, params)
|
12307
|
+
req.send_request(options)
|
12308
|
+
end
|
12309
|
+
|
12310
|
+
# Describes the specified export instance tasks or all your export
|
12311
|
+
# instance tasks.
|
12247
12312
|
#
|
12248
12313
|
# @option params [Array<String>] :export_task_ids
|
12249
12314
|
# The export task IDs.
|
@@ -13665,15 +13730,13 @@ module Aws::EC2
|
|
13665
13730
|
#
|
13666
13731
|
# @option params [Array<Types::Filter>] :filters
|
13667
13732
|
# Filter tasks using the `task-state` filter and one of the following
|
13668
|
-
# values: active
|
13733
|
+
# values: `active`, `completed`, `deleting`, or `deleted`.
|
13669
13734
|
#
|
13670
13735
|
# @option params [Array<String>] :import_task_ids
|
13671
|
-
#
|
13736
|
+
# The IDs of the import image tasks.
|
13672
13737
|
#
|
13673
13738
|
# @option params [Integer] :max_results
|
13674
|
-
# The maximum number of results to return in a single call.
|
13675
|
-
# the remaining results, make another call with the returned `NextToken`
|
13676
|
-
# value.
|
13739
|
+
# The maximum number of results to return in a single call.
|
13677
13740
|
#
|
13678
13741
|
# @option params [String] :next_token
|
13679
13742
|
# A token that indicates the next page of results.
|
@@ -23153,6 +23216,95 @@ module Aws::EC2
|
|
23153
23216
|
req.send_request(options)
|
23154
23217
|
end
|
23155
23218
|
|
23219
|
+
# Exports an Amazon Machine Image (AMI) to a VM file. For more
|
23220
|
+
# information, see [Exporting a VM Directory from an Amazon Machine
|
23221
|
+
# Image (AMI)][1] in the *VM Import/Export User Guide*.
|
23222
|
+
#
|
23223
|
+
#
|
23224
|
+
#
|
23225
|
+
# [1]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html
|
23226
|
+
#
|
23227
|
+
# @option params [String] :client_token
|
23228
|
+
# Token to enable idempotency for export image requests.
|
23229
|
+
#
|
23230
|
+
# **A suitable default value is auto-generated.** You should normally
|
23231
|
+
# not need to pass this option.**
|
23232
|
+
#
|
23233
|
+
# @option params [String] :description
|
23234
|
+
# A description of the image being exported. The maximum length is 255
|
23235
|
+
# bytes.
|
23236
|
+
#
|
23237
|
+
# @option params [required, String] :disk_image_format
|
23238
|
+
# The disk image format.
|
23239
|
+
#
|
23240
|
+
# @option params [Boolean] :dry_run
|
23241
|
+
# Checks whether you have the required permissions for the action,
|
23242
|
+
# without actually making the request, and provides an error response.
|
23243
|
+
# If you have the required permissions, the error response is
|
23244
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
23245
|
+
#
|
23246
|
+
# @option params [required, String] :image_id
|
23247
|
+
# The ID of the image.
|
23248
|
+
#
|
23249
|
+
# @option params [required, Types::ExportTaskS3LocationRequest] :s3_export_location
|
23250
|
+
# Information about the destination S3 bucket. The bucket must exist and
|
23251
|
+
# grant WRITE and READ\_ACP permissions to the AWS account
|
23252
|
+
# vm-import-export@amazon.com.
|
23253
|
+
#
|
23254
|
+
# @option params [String] :role_name
|
23255
|
+
# The name of the role that grants VM Import/Export permission to export
|
23256
|
+
# images to your S3 bucket. If this parameter is not specified, the
|
23257
|
+
# default role is named 'vmimport'.
|
23258
|
+
#
|
23259
|
+
# @return [Types::ExportImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
23260
|
+
#
|
23261
|
+
# * {Types::ExportImageResult#description #description} => String
|
23262
|
+
# * {Types::ExportImageResult#disk_image_format #disk_image_format} => String
|
23263
|
+
# * {Types::ExportImageResult#export_image_task_id #export_image_task_id} => String
|
23264
|
+
# * {Types::ExportImageResult#image_id #image_id} => String
|
23265
|
+
# * {Types::ExportImageResult#role_name #role_name} => String
|
23266
|
+
# * {Types::ExportImageResult#progress #progress} => String
|
23267
|
+
# * {Types::ExportImageResult#s3_export_location #s3_export_location} => Types::ExportTaskS3Location
|
23268
|
+
# * {Types::ExportImageResult#status #status} => String
|
23269
|
+
# * {Types::ExportImageResult#status_message #status_message} => String
|
23270
|
+
#
|
23271
|
+
# @example Request syntax with placeholder values
|
23272
|
+
#
|
23273
|
+
# resp = client.export_image({
|
23274
|
+
# client_token: "String",
|
23275
|
+
# description: "String",
|
23276
|
+
# disk_image_format: "VMDK", # required, accepts VMDK, RAW, VHD
|
23277
|
+
# dry_run: false,
|
23278
|
+
# image_id: "String", # required
|
23279
|
+
# s3_export_location: { # required
|
23280
|
+
# s3_bucket: "String", # required
|
23281
|
+
# s3_prefix: "String",
|
23282
|
+
# },
|
23283
|
+
# role_name: "String",
|
23284
|
+
# })
|
23285
|
+
#
|
23286
|
+
# @example Response structure
|
23287
|
+
#
|
23288
|
+
# resp.description #=> String
|
23289
|
+
# resp.disk_image_format #=> String, one of "VMDK", "RAW", "VHD"
|
23290
|
+
# resp.export_image_task_id #=> String
|
23291
|
+
# resp.image_id #=> String
|
23292
|
+
# resp.role_name #=> String
|
23293
|
+
# resp.progress #=> String
|
23294
|
+
# resp.s3_export_location.s3_bucket #=> String
|
23295
|
+
# resp.s3_export_location.s3_prefix #=> String
|
23296
|
+
# resp.status #=> String
|
23297
|
+
# resp.status_message #=> String
|
23298
|
+
#
|
23299
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportImage AWS API Documentation
|
23300
|
+
#
|
23301
|
+
# @overload export_image(params = {})
|
23302
|
+
# @param [Hash] params ({})
|
23303
|
+
def export_image(params = {}, options = {})
|
23304
|
+
req = build_request(:export_image, params)
|
23305
|
+
req.send_request(options)
|
23306
|
+
end
|
23307
|
+
|
23156
23308
|
# Exports routes from the specified transit gateway route table to the
|
23157
23309
|
# specified S3 bucket. By default, all routes are exported.
|
23158
23310
|
# Alternatively, you can filter by CIDR range.
|
@@ -24956,8 +25108,8 @@ module Aws::EC2
|
|
24956
25108
|
# is `diversified`, the EC2 Fleet distributes the instances across the
|
24957
25109
|
# Spot Instance pools. If the allocation strategy is
|
24958
25110
|
# `capacityOptimized`, EC2 Fleet launches instances from Spot Instance
|
24959
|
-
# pools
|
24960
|
-
#
|
25111
|
+
# pools with optimal capacity for the number of instances that are
|
25112
|
+
# launching.
|
24961
25113
|
#
|
24962
25114
|
# To scale down your EC2 Fleet, decrease its target capacity. First, the
|
24963
25115
|
# EC2 Fleet cancels any open requests that exceed the new target
|
@@ -26294,8 +26446,8 @@ module Aws::EC2
|
|
26294
26446
|
# is `diversified`, the Spot Fleet distributes the instances across the
|
26295
26447
|
# Spot Instance pools. If the allocation strategy is
|
26296
26448
|
# `capacityOptimized`, Spot Fleet launches instances from Spot Instance
|
26297
|
-
# pools
|
26298
|
-
#
|
26449
|
+
# pools with optimal capacity for the number of instances that are
|
26450
|
+
# launching.
|
26299
26451
|
#
|
26300
26452
|
# To scale down your Spot Fleet, decrease its target capacity. First,
|
26301
26453
|
# the Spot Fleet cancels any open requests that exceed the new target
|
@@ -31350,8 +31502,8 @@ module Aws::EC2
|
|
31350
31502
|
#
|
31351
31503
|
#
|
31352
31504
|
#
|
31353
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
31354
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/
|
31505
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html
|
31506
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/diagnostic-interrupt.html
|
31355
31507
|
#
|
31356
31508
|
# @option params [required, String] :instance_id
|
31357
31509
|
# The ID of the instance.
|
@@ -32187,7 +32339,7 @@ module Aws::EC2
|
|
32187
32339
|
params: params,
|
32188
32340
|
config: config)
|
32189
32341
|
context[:gem_name] = 'aws-sdk-ec2'
|
32190
|
-
context[:gem_version] = '1.
|
32342
|
+
context[:gem_version] = '1.106.0'
|
32191
32343
|
Seahorse::Client::Request.new(handlers, context)
|
32192
32344
|
end
|
32193
32345
|
|
@@ -440,6 +440,9 @@ module Aws::EC2
|
|
440
440
|
DescribeElasticGpusMaxResults = Shapes::IntegerShape.new(name: 'DescribeElasticGpusMaxResults')
|
441
441
|
DescribeElasticGpusRequest = Shapes::StructureShape.new(name: 'DescribeElasticGpusRequest')
|
442
442
|
DescribeElasticGpusResult = Shapes::StructureShape.new(name: 'DescribeElasticGpusResult')
|
443
|
+
DescribeExportImageTasksMaxResults = Shapes::IntegerShape.new(name: 'DescribeExportImageTasksMaxResults')
|
444
|
+
DescribeExportImageTasksRequest = Shapes::StructureShape.new(name: 'DescribeExportImageTasksRequest')
|
445
|
+
DescribeExportImageTasksResult = Shapes::StructureShape.new(name: 'DescribeExportImageTasksResult')
|
443
446
|
DescribeExportTasksRequest = Shapes::StructureShape.new(name: 'DescribeExportTasksRequest')
|
444
447
|
DescribeExportTasksResult = Shapes::StructureShape.new(name: 'DescribeExportTasksResult')
|
445
448
|
DescribeFleetError = Shapes::StructureShape.new(name: 'DescribeFleetError')
|
@@ -720,9 +723,16 @@ module Aws::EC2
|
|
720
723
|
ExportClientVpnClientConfigurationRequest = Shapes::StructureShape.new(name: 'ExportClientVpnClientConfigurationRequest')
|
721
724
|
ExportClientVpnClientConfigurationResult = Shapes::StructureShape.new(name: 'ExportClientVpnClientConfigurationResult')
|
722
725
|
ExportEnvironment = Shapes::StringShape.new(name: 'ExportEnvironment')
|
726
|
+
ExportImageRequest = Shapes::StructureShape.new(name: 'ExportImageRequest')
|
727
|
+
ExportImageResult = Shapes::StructureShape.new(name: 'ExportImageResult')
|
728
|
+
ExportImageTask = Shapes::StructureShape.new(name: 'ExportImageTask')
|
729
|
+
ExportImageTaskIdList = Shapes::ListShape.new(name: 'ExportImageTaskIdList')
|
730
|
+
ExportImageTaskList = Shapes::ListShape.new(name: 'ExportImageTaskList')
|
723
731
|
ExportTask = Shapes::StructureShape.new(name: 'ExportTask')
|
724
732
|
ExportTaskIdStringList = Shapes::ListShape.new(name: 'ExportTaskIdStringList')
|
725
733
|
ExportTaskList = Shapes::ListShape.new(name: 'ExportTaskList')
|
734
|
+
ExportTaskS3Location = Shapes::StructureShape.new(name: 'ExportTaskS3Location')
|
735
|
+
ExportTaskS3LocationRequest = Shapes::StructureShape.new(name: 'ExportTaskS3LocationRequest')
|
726
736
|
ExportTaskState = Shapes::StringShape.new(name: 'ExportTaskState')
|
727
737
|
ExportToS3Task = Shapes::StructureShape.new(name: 'ExportToS3Task')
|
728
738
|
ExportToS3TaskSpecification = Shapes::StructureShape.new(name: 'ExportToS3TaskSpecification')
|
@@ -3302,6 +3312,17 @@ module Aws::EC2
|
|
3302
3312
|
DescribeElasticGpusResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
3303
3313
|
DescribeElasticGpusResult.struct_class = Types::DescribeElasticGpusResult
|
3304
3314
|
|
3315
|
+
DescribeExportImageTasksRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3316
|
+
DescribeExportImageTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
3317
|
+
DescribeExportImageTasksRequest.add_member(:export_image_task_ids, Shapes::ShapeRef.new(shape: ExportImageTaskIdList, location_name: "ExportImageTaskId"))
|
3318
|
+
DescribeExportImageTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeExportImageTasksMaxResults, location_name: "MaxResults"))
|
3319
|
+
DescribeExportImageTasksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
3320
|
+
DescribeExportImageTasksRequest.struct_class = Types::DescribeExportImageTasksRequest
|
3321
|
+
|
3322
|
+
DescribeExportImageTasksResult.add_member(:export_image_tasks, Shapes::ShapeRef.new(shape: ExportImageTaskList, location_name: "exportImageTaskSet"))
|
3323
|
+
DescribeExportImageTasksResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
3324
|
+
DescribeExportImageTasksResult.struct_class = Types::DescribeExportImageTasksResult
|
3325
|
+
|
3305
3326
|
DescribeExportTasksRequest.add_member(:export_task_ids, Shapes::ShapeRef.new(shape: ExportTaskIdStringList, location_name: "exportTaskId"))
|
3306
3327
|
DescribeExportTasksRequest.struct_class = Types::DescribeExportTasksRequest
|
3307
3328
|
|
@@ -4458,6 +4479,39 @@ module Aws::EC2
|
|
4458
4479
|
ExportClientVpnClientConfigurationResult.add_member(:client_configuration, Shapes::ShapeRef.new(shape: String, location_name: "clientConfiguration"))
|
4459
4480
|
ExportClientVpnClientConfigurationResult.struct_class = Types::ExportClientVpnClientConfigurationResult
|
4460
4481
|
|
4482
|
+
ExportImageRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
4483
|
+
ExportImageRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
4484
|
+
ExportImageRequest.add_member(:disk_image_format, Shapes::ShapeRef.new(shape: DiskImageFormat, required: true, location_name: "DiskImageFormat"))
|
4485
|
+
ExportImageRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
4486
|
+
ExportImageRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ImageId"))
|
4487
|
+
ExportImageRequest.add_member(:s3_export_location, Shapes::ShapeRef.new(shape: ExportTaskS3LocationRequest, required: true, location_name: "S3ExportLocation"))
|
4488
|
+
ExportImageRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: String, location_name: "RoleName"))
|
4489
|
+
ExportImageRequest.struct_class = Types::ExportImageRequest
|
4490
|
+
|
4491
|
+
ExportImageResult.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
4492
|
+
ExportImageResult.add_member(:disk_image_format, Shapes::ShapeRef.new(shape: DiskImageFormat, location_name: "diskImageFormat"))
|
4493
|
+
ExportImageResult.add_member(:export_image_task_id, Shapes::ShapeRef.new(shape: String, location_name: "exportImageTaskId"))
|
4494
|
+
ExportImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
4495
|
+
ExportImageResult.add_member(:role_name, Shapes::ShapeRef.new(shape: String, location_name: "roleName"))
|
4496
|
+
ExportImageResult.add_member(:progress, Shapes::ShapeRef.new(shape: String, location_name: "progress"))
|
4497
|
+
ExportImageResult.add_member(:s3_export_location, Shapes::ShapeRef.new(shape: ExportTaskS3Location, location_name: "s3ExportLocation"))
|
4498
|
+
ExportImageResult.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
4499
|
+
ExportImageResult.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
|
4500
|
+
ExportImageResult.struct_class = Types::ExportImageResult
|
4501
|
+
|
4502
|
+
ExportImageTask.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
4503
|
+
ExportImageTask.add_member(:export_image_task_id, Shapes::ShapeRef.new(shape: String, location_name: "exportImageTaskId"))
|
4504
|
+
ExportImageTask.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
4505
|
+
ExportImageTask.add_member(:progress, Shapes::ShapeRef.new(shape: String, location_name: "progress"))
|
4506
|
+
ExportImageTask.add_member(:s3_export_location, Shapes::ShapeRef.new(shape: ExportTaskS3Location, location_name: "s3ExportLocation"))
|
4507
|
+
ExportImageTask.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
4508
|
+
ExportImageTask.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
|
4509
|
+
ExportImageTask.struct_class = Types::ExportImageTask
|
4510
|
+
|
4511
|
+
ExportImageTaskIdList.member = Shapes::ShapeRef.new(shape: String, location_name: "ExportImageTaskId")
|
4512
|
+
|
4513
|
+
ExportImageTaskList.member = Shapes::ShapeRef.new(shape: ExportImageTask, location_name: "item")
|
4514
|
+
|
4461
4515
|
ExportTask.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
4462
4516
|
ExportTask.add_member(:export_task_id, Shapes::ShapeRef.new(shape: String, location_name: "exportTaskId"))
|
4463
4517
|
ExportTask.add_member(:export_to_s3_task, Shapes::ShapeRef.new(shape: ExportToS3Task, location_name: "exportToS3"))
|
@@ -4470,6 +4524,14 @@ module Aws::EC2
|
|
4470
4524
|
|
4471
4525
|
ExportTaskList.member = Shapes::ShapeRef.new(shape: ExportTask, location_name: "item")
|
4472
4526
|
|
4527
|
+
ExportTaskS3Location.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: String, location_name: "s3Bucket"))
|
4528
|
+
ExportTaskS3Location.add_member(:s3_prefix, Shapes::ShapeRef.new(shape: String, location_name: "s3Prefix"))
|
4529
|
+
ExportTaskS3Location.struct_class = Types::ExportTaskS3Location
|
4530
|
+
|
4531
|
+
ExportTaskS3LocationRequest.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3Bucket"))
|
4532
|
+
ExportTaskS3LocationRequest.add_member(:s3_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3Prefix"))
|
4533
|
+
ExportTaskS3LocationRequest.struct_class = Types::ExportTaskS3LocationRequest
|
4534
|
+
|
4473
4535
|
ExportToS3Task.add_member(:container_format, Shapes::ShapeRef.new(shape: ContainerFormat, location_name: "containerFormat"))
|
4474
4536
|
ExportToS3Task.add_member(:disk_image_format, Shapes::ShapeRef.new(shape: DiskImageFormat, location_name: "diskImageFormat"))
|
4475
4537
|
ExportToS3Task.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: String, location_name: "s3Bucket"))
|
@@ -9312,6 +9374,14 @@ module Aws::EC2
|
|
9312
9374
|
o.output = Shapes::ShapeRef.new(shape: DescribeElasticGpusResult)
|
9313
9375
|
end)
|
9314
9376
|
|
9377
|
+
api.add_operation(:describe_export_image_tasks, Seahorse::Model::Operation.new.tap do |o|
|
9378
|
+
o.name = "DescribeExportImageTasks"
|
9379
|
+
o.http_method = "POST"
|
9380
|
+
o.http_request_uri = "/"
|
9381
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeExportImageTasksRequest)
|
9382
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeExportImageTasksResult)
|
9383
|
+
end)
|
9384
|
+
|
9315
9385
|
api.add_operation(:describe_export_tasks, Seahorse::Model::Operation.new.tap do |o|
|
9316
9386
|
o.name = "DescribeExportTasks"
|
9317
9387
|
o.http_method = "POST"
|
@@ -10475,6 +10545,14 @@ module Aws::EC2
|
|
10475
10545
|
o.output = Shapes::ShapeRef.new(shape: ExportClientVpnClientConfigurationResult)
|
10476
10546
|
end)
|
10477
10547
|
|
10548
|
+
api.add_operation(:export_image, Seahorse::Model::Operation.new.tap do |o|
|
10549
|
+
o.name = "ExportImage"
|
10550
|
+
o.http_method = "POST"
|
10551
|
+
o.http_request_uri = "/"
|
10552
|
+
o.input = Shapes::ShapeRef.new(shape: ExportImageRequest)
|
10553
|
+
o.output = Shapes::ShapeRef.new(shape: ExportImageResult)
|
10554
|
+
end)
|
10555
|
+
|
10478
10556
|
api.add_operation(:export_transit_gateway_routes, Seahorse::Model::Operation.new.tap do |o|
|
10479
10557
|
o.name = "ExportTransitGatewayRoutes"
|
10480
10558
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -3977,9 +3977,9 @@ module Aws::EC2
|
|
3977
3977
|
# @return [Integer]
|
3978
3978
|
#
|
3979
3979
|
# @!attribute [rw] threads_per_core
|
3980
|
-
# The number of threads per CPU core. To disable
|
3981
|
-
#
|
3982
|
-
#
|
3980
|
+
# The number of threads per CPU core. To disable multithreading for
|
3981
|
+
# the instance, specify a value of `1`. Otherwise, specify the default
|
3982
|
+
# value of `2`.
|
3983
3983
|
# @return [Integer]
|
3984
3984
|
#
|
3985
3985
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CpuOptionsRequest AWS API Documentation
|
@@ -11245,6 +11245,74 @@ module Aws::EC2
|
|
11245
11245
|
include Aws::Structure
|
11246
11246
|
end
|
11247
11247
|
|
11248
|
+
# @note When making an API call, you may pass DescribeExportImageTasksRequest
|
11249
|
+
# data as a hash:
|
11250
|
+
#
|
11251
|
+
# {
|
11252
|
+
# dry_run: false,
|
11253
|
+
# filters: [
|
11254
|
+
# {
|
11255
|
+
# name: "String",
|
11256
|
+
# values: ["String"],
|
11257
|
+
# },
|
11258
|
+
# ],
|
11259
|
+
# export_image_task_ids: ["String"],
|
11260
|
+
# max_results: 1,
|
11261
|
+
# next_token: "NextToken",
|
11262
|
+
# }
|
11263
|
+
#
|
11264
|
+
# @!attribute [rw] dry_run
|
11265
|
+
# Checks whether you have the required permissions for the action,
|
11266
|
+
# without actually making the request, and provides an error response.
|
11267
|
+
# If you have the required permissions, the error response is
|
11268
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
11269
|
+
# @return [Boolean]
|
11270
|
+
#
|
11271
|
+
# @!attribute [rw] filters
|
11272
|
+
# Filter tasks using the `task-state` filter and one of the following
|
11273
|
+
# values: `active`, `completed`, `deleting`, or `deleted`.
|
11274
|
+
# @return [Array<Types::Filter>]
|
11275
|
+
#
|
11276
|
+
# @!attribute [rw] export_image_task_ids
|
11277
|
+
# The IDs of the export image tasks.
|
11278
|
+
# @return [Array<String>]
|
11279
|
+
#
|
11280
|
+
# @!attribute [rw] max_results
|
11281
|
+
# The maximum number of results to return in a single call.
|
11282
|
+
# @return [Integer]
|
11283
|
+
#
|
11284
|
+
# @!attribute [rw] next_token
|
11285
|
+
# A token that indicates the next page of results.
|
11286
|
+
# @return [String]
|
11287
|
+
#
|
11288
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportImageTasksRequest AWS API Documentation
|
11289
|
+
#
|
11290
|
+
class DescribeExportImageTasksRequest < Struct.new(
|
11291
|
+
:dry_run,
|
11292
|
+
:filters,
|
11293
|
+
:export_image_task_ids,
|
11294
|
+
:max_results,
|
11295
|
+
:next_token)
|
11296
|
+
include Aws::Structure
|
11297
|
+
end
|
11298
|
+
|
11299
|
+
# @!attribute [rw] export_image_tasks
|
11300
|
+
# Information about the export image tasks.
|
11301
|
+
# @return [Array<Types::ExportImageTask>]
|
11302
|
+
#
|
11303
|
+
# @!attribute [rw] next_token
|
11304
|
+
# The token to use to get the next page of results. This value is
|
11305
|
+
# `null` when there are no more results to return.
|
11306
|
+
# @return [String]
|
11307
|
+
#
|
11308
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportImageTasksResult AWS API Documentation
|
11309
|
+
#
|
11310
|
+
class DescribeExportImageTasksResult < Struct.new(
|
11311
|
+
:export_image_tasks,
|
11312
|
+
:next_token)
|
11313
|
+
include Aws::Structure
|
11314
|
+
end
|
11315
|
+
|
11248
11316
|
# @note When making an API call, you may pass DescribeExportTasksRequest
|
11249
11317
|
# data as a hash:
|
11250
11318
|
#
|
@@ -12477,17 +12545,15 @@ module Aws::EC2
|
|
12477
12545
|
#
|
12478
12546
|
# @!attribute [rw] filters
|
12479
12547
|
# Filter tasks using the `task-state` filter and one of the following
|
12480
|
-
# values: active
|
12548
|
+
# values: `active`, `completed`, `deleting`, or `deleted`.
|
12481
12549
|
# @return [Array<Types::Filter>]
|
12482
12550
|
#
|
12483
12551
|
# @!attribute [rw] import_task_ids
|
12484
|
-
#
|
12552
|
+
# The IDs of the import image tasks.
|
12485
12553
|
# @return [Array<String>]
|
12486
12554
|
#
|
12487
12555
|
# @!attribute [rw] max_results
|
12488
|
-
# The maximum number of results to return in a single call.
|
12489
|
-
# retrieve the remaining results, make another call with the returned
|
12490
|
-
# `NextToken` value.
|
12556
|
+
# The maximum number of results to return in a single call.
|
12491
12557
|
# @return [Integer]
|
12492
12558
|
#
|
12493
12559
|
# @!attribute [rw] next_token
|
@@ -20245,6 +20311,171 @@ module Aws::EC2
|
|
20245
20311
|
include Aws::Structure
|
20246
20312
|
end
|
20247
20313
|
|
20314
|
+
# @note When making an API call, you may pass ExportImageRequest
|
20315
|
+
# data as a hash:
|
20316
|
+
#
|
20317
|
+
# {
|
20318
|
+
# client_token: "String",
|
20319
|
+
# description: "String",
|
20320
|
+
# disk_image_format: "VMDK", # required, accepts VMDK, RAW, VHD
|
20321
|
+
# dry_run: false,
|
20322
|
+
# image_id: "String", # required
|
20323
|
+
# s3_export_location: { # required
|
20324
|
+
# s3_bucket: "String", # required
|
20325
|
+
# s3_prefix: "String",
|
20326
|
+
# },
|
20327
|
+
# role_name: "String",
|
20328
|
+
# }
|
20329
|
+
#
|
20330
|
+
# @!attribute [rw] client_token
|
20331
|
+
# Token to enable idempotency for export image requests.
|
20332
|
+
#
|
20333
|
+
# **A suitable default value is auto-generated.** You should normally
|
20334
|
+
# not need to pass this option.
|
20335
|
+
# @return [String]
|
20336
|
+
#
|
20337
|
+
# @!attribute [rw] description
|
20338
|
+
# A description of the image being exported. The maximum length is 255
|
20339
|
+
# bytes.
|
20340
|
+
# @return [String]
|
20341
|
+
#
|
20342
|
+
# @!attribute [rw] disk_image_format
|
20343
|
+
# The disk image format.
|
20344
|
+
# @return [String]
|
20345
|
+
#
|
20346
|
+
# @!attribute [rw] dry_run
|
20347
|
+
# Checks whether you have the required permissions for the action,
|
20348
|
+
# without actually making the request, and provides an error response.
|
20349
|
+
# If you have the required permissions, the error response is
|
20350
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
20351
|
+
# @return [Boolean]
|
20352
|
+
#
|
20353
|
+
# @!attribute [rw] image_id
|
20354
|
+
# The ID of the image.
|
20355
|
+
# @return [String]
|
20356
|
+
#
|
20357
|
+
# @!attribute [rw] s3_export_location
|
20358
|
+
# Information about the destination S3 bucket. The bucket must exist
|
20359
|
+
# and grant WRITE and READ\_ACP permissions to the AWS account
|
20360
|
+
# vm-import-export@amazon.com.
|
20361
|
+
# @return [Types::ExportTaskS3LocationRequest]
|
20362
|
+
#
|
20363
|
+
# @!attribute [rw] role_name
|
20364
|
+
# The name of the role that grants VM Import/Export permission to
|
20365
|
+
# export images to your S3 bucket. If this parameter is not specified,
|
20366
|
+
# the default role is named 'vmimport'.
|
20367
|
+
# @return [String]
|
20368
|
+
#
|
20369
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportImageRequest AWS API Documentation
|
20370
|
+
#
|
20371
|
+
class ExportImageRequest < Struct.new(
|
20372
|
+
:client_token,
|
20373
|
+
:description,
|
20374
|
+
:disk_image_format,
|
20375
|
+
:dry_run,
|
20376
|
+
:image_id,
|
20377
|
+
:s3_export_location,
|
20378
|
+
:role_name)
|
20379
|
+
include Aws::Structure
|
20380
|
+
end
|
20381
|
+
|
20382
|
+
# @!attribute [rw] description
|
20383
|
+
# A description of the image being exported.
|
20384
|
+
# @return [String]
|
20385
|
+
#
|
20386
|
+
# @!attribute [rw] disk_image_format
|
20387
|
+
# The disk image format for the exported image.
|
20388
|
+
# @return [String]
|
20389
|
+
#
|
20390
|
+
# @!attribute [rw] export_image_task_id
|
20391
|
+
# The ID of the export image task.
|
20392
|
+
# @return [String]
|
20393
|
+
#
|
20394
|
+
# @!attribute [rw] image_id
|
20395
|
+
# The ID of the image.
|
20396
|
+
# @return [String]
|
20397
|
+
#
|
20398
|
+
# @!attribute [rw] role_name
|
20399
|
+
# The name of the role that grants VM Import/Export permission to
|
20400
|
+
# export images to your S3 bucket.
|
20401
|
+
# @return [String]
|
20402
|
+
#
|
20403
|
+
# @!attribute [rw] progress
|
20404
|
+
# The percent complete of the export image task.
|
20405
|
+
# @return [String]
|
20406
|
+
#
|
20407
|
+
# @!attribute [rw] s3_export_location
|
20408
|
+
# Information about the destination S3 bucket.
|
20409
|
+
# @return [Types::ExportTaskS3Location]
|
20410
|
+
#
|
20411
|
+
# @!attribute [rw] status
|
20412
|
+
# The status of the export image task. The possible values are
|
20413
|
+
# `active`, `completed`, `deleting`, and `deleted`.
|
20414
|
+
# @return [String]
|
20415
|
+
#
|
20416
|
+
# @!attribute [rw] status_message
|
20417
|
+
# The status message for the export image task.
|
20418
|
+
# @return [String]
|
20419
|
+
#
|
20420
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportImageResult AWS API Documentation
|
20421
|
+
#
|
20422
|
+
class ExportImageResult < Struct.new(
|
20423
|
+
:description,
|
20424
|
+
:disk_image_format,
|
20425
|
+
:export_image_task_id,
|
20426
|
+
:image_id,
|
20427
|
+
:role_name,
|
20428
|
+
:progress,
|
20429
|
+
:s3_export_location,
|
20430
|
+
:status,
|
20431
|
+
:status_message)
|
20432
|
+
include Aws::Structure
|
20433
|
+
end
|
20434
|
+
|
20435
|
+
# Describes an export image task.
|
20436
|
+
#
|
20437
|
+
# @!attribute [rw] description
|
20438
|
+
# A description of the image being exported.
|
20439
|
+
# @return [String]
|
20440
|
+
#
|
20441
|
+
# @!attribute [rw] export_image_task_id
|
20442
|
+
# The ID of the export image task.
|
20443
|
+
# @return [String]
|
20444
|
+
#
|
20445
|
+
# @!attribute [rw] image_id
|
20446
|
+
# The ID of the image.
|
20447
|
+
# @return [String]
|
20448
|
+
#
|
20449
|
+
# @!attribute [rw] progress
|
20450
|
+
# The percent complete of the export image task.
|
20451
|
+
# @return [String]
|
20452
|
+
#
|
20453
|
+
# @!attribute [rw] s3_export_location
|
20454
|
+
# Information about the destination S3 bucket.
|
20455
|
+
# @return [Types::ExportTaskS3Location]
|
20456
|
+
#
|
20457
|
+
# @!attribute [rw] status
|
20458
|
+
# The status of the export image task. The possible values are
|
20459
|
+
# `active`, `completed`, `deleting`, and `deleted`.
|
20460
|
+
# @return [String]
|
20461
|
+
#
|
20462
|
+
# @!attribute [rw] status_message
|
20463
|
+
# The status message for the export image task.
|
20464
|
+
# @return [String]
|
20465
|
+
#
|
20466
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportImageTask AWS API Documentation
|
20467
|
+
#
|
20468
|
+
class ExportImageTask < Struct.new(
|
20469
|
+
:description,
|
20470
|
+
:export_image_task_id,
|
20471
|
+
:image_id,
|
20472
|
+
:progress,
|
20473
|
+
:s3_export_location,
|
20474
|
+
:status,
|
20475
|
+
:status_message)
|
20476
|
+
include Aws::Structure
|
20477
|
+
end
|
20478
|
+
|
20248
20479
|
# Describes an instance export task.
|
20249
20480
|
#
|
20250
20481
|
# @!attribute [rw] description
|
@@ -20283,6 +20514,50 @@ module Aws::EC2
|
|
20283
20514
|
include Aws::Structure
|
20284
20515
|
end
|
20285
20516
|
|
20517
|
+
# Describes the destination for an export image task.
|
20518
|
+
#
|
20519
|
+
# @!attribute [rw] s3_bucket
|
20520
|
+
# The destination S3 bucket.
|
20521
|
+
# @return [String]
|
20522
|
+
#
|
20523
|
+
# @!attribute [rw] s3_prefix
|
20524
|
+
# The prefix (logical hierarchy) in the bucket.
|
20525
|
+
# @return [String]
|
20526
|
+
#
|
20527
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTaskS3Location AWS API Documentation
|
20528
|
+
#
|
20529
|
+
class ExportTaskS3Location < Struct.new(
|
20530
|
+
:s3_bucket,
|
20531
|
+
:s3_prefix)
|
20532
|
+
include Aws::Structure
|
20533
|
+
end
|
20534
|
+
|
20535
|
+
# Describes the destination for an export image task.
|
20536
|
+
#
|
20537
|
+
# @note When making an API call, you may pass ExportTaskS3LocationRequest
|
20538
|
+
# data as a hash:
|
20539
|
+
#
|
20540
|
+
# {
|
20541
|
+
# s3_bucket: "String", # required
|
20542
|
+
# s3_prefix: "String",
|
20543
|
+
# }
|
20544
|
+
#
|
20545
|
+
# @!attribute [rw] s3_bucket
|
20546
|
+
# The destination S3 bucket.
|
20547
|
+
# @return [String]
|
20548
|
+
#
|
20549
|
+
# @!attribute [rw] s3_prefix
|
20550
|
+
# The prefix (logical hierarchy) in the bucket.
|
20551
|
+
# @return [String]
|
20552
|
+
#
|
20553
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTaskS3LocationRequest AWS API Documentation
|
20554
|
+
#
|
20555
|
+
class ExportTaskS3LocationRequest < Struct.new(
|
20556
|
+
:s3_bucket,
|
20557
|
+
:s3_prefix)
|
20558
|
+
include Aws::Structure
|
20559
|
+
end
|
20560
|
+
|
20286
20561
|
# Describes the format and location for an instance export task.
|
20287
20562
|
#
|
20288
20563
|
# @!attribute [rw] container_format
|
@@ -25470,9 +25745,9 @@ module Aws::EC2
|
|
25470
25745
|
# @return [Integer]
|
25471
25746
|
#
|
25472
25747
|
# @!attribute [rw] threads_per_core
|
25473
|
-
# The number of threads per CPU core. To disable
|
25474
|
-
#
|
25475
|
-
#
|
25748
|
+
# The number of threads per CPU core. To disable multithreading for
|
25749
|
+
# the instance, specify a value of 1. Otherwise, specify the default
|
25750
|
+
# value of 2.
|
25476
25751
|
# @return [Integer]
|
25477
25752
|
#
|
25478
25753
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateCpuOptionsRequest AWS API Documentation
|
@@ -36623,8 +36898,8 @@ module Aws::EC2
|
|
36623
36898
|
# instances from all the Spot Instance pools that you specify.
|
36624
36899
|
#
|
36625
36900
|
# If the allocation strategy is `capacityOptimized`, Spot Fleet
|
36626
|
-
# launches instances from Spot Instance pools
|
36627
|
-
#
|
36901
|
+
# launches instances from Spot Instance pools with optimal capacity
|
36902
|
+
# for the number of instances that are launching.
|
36628
36903
|
# @return [String]
|
36629
36904
|
#
|
36630
36905
|
# @!attribute [rw] on_demand_allocation_strategy
|
@@ -37098,8 +37373,8 @@ module Aws::EC2
|
|
37098
37373
|
# instances from all the Spot Instance pools that you specify.
|
37099
37374
|
#
|
37100
37375
|
# If the allocation strategy is `capacityOptimized`, EC2 Fleet
|
37101
|
-
# launches instances from Spot Instance pools
|
37102
|
-
#
|
37376
|
+
# launches instances from Spot Instance pools with optimal capacity
|
37377
|
+
# for the number of instances that are launching.
|
37103
37378
|
# @return [String]
|
37104
37379
|
#
|
37105
37380
|
# @!attribute [rw] instance_interruption_behavior
|
@@ -37176,8 +37451,8 @@ module Aws::EC2
|
|
37176
37451
|
# instances from all the Spot Instance pools that you specify.
|
37177
37452
|
#
|
37178
37453
|
# If the allocation strategy is `capacityOptimized`, EC2 Fleet
|
37179
|
-
# launches instances from Spot Instance pools
|
37180
|
-
#
|
37454
|
+
# launches instances from Spot Instance pools with optimal capacity
|
37455
|
+
# for the number of instances that are launching.
|
37181
37456
|
# @return [String]
|
37182
37457
|
#
|
37183
37458
|
# @!attribute [rw] instance_interruption_behavior
|
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.106.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: 2019-08-
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|