aws-sdk-ec2 1.344.0 → 1.345.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +46 -2
- data/lib/aws-sdk-ec2/client_api.rb +17 -0
- data/lib/aws-sdk-ec2/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/types.rb +44 -1
- 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: ebd42b04d705e2ea33f8f94e3064f9658b63b953866e54143ec91e53b1e97f08
|
4
|
+
data.tar.gz: 160509c26fc1d5cb52fc7557dca753b309082df7130077307a108510202a2802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24e4e60c7c2526ccf451ab7dc76af05714192745de207b8d3948a0c740f11144f32c553a29d3e9c0468c6fccfcf994e71968fe21032f0eda09c964d5562600f0
|
7
|
+
data.tar.gz: 9f59694d115e175100ef7ae1ae918c6aa6e0e05d03178df3b9c871b32e6bec29d8f2de61a727e1530ffae5175cd4f684deb94cbaac91d1554817d5f66b4d9e3c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.345.0 (2022-11-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds API support for the recipient of an AMI account share to remove shared AMI launch permissions.
|
8
|
+
|
4
9
|
1.344.0 (2022-10-31)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.345.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -3638,6 +3638,49 @@ module Aws::EC2
|
|
3638
3638
|
req.send_request(options)
|
3639
3639
|
end
|
3640
3640
|
|
3641
|
+
# Removes your Amazon Web Services account from the launch permissions
|
3642
|
+
# for the specified AMI. For more information, see [Cancel sharing an
|
3643
|
+
# AMI with your Amazon Web Services account][1] in the *Amazon Elastic
|
3644
|
+
# Compute Cloud User Guide*.
|
3645
|
+
#
|
3646
|
+
#
|
3647
|
+
#
|
3648
|
+
# [1]: https://docs.aws.amazon.com/
|
3649
|
+
#
|
3650
|
+
# @option params [required, String] :image_id
|
3651
|
+
# The ID of the AMI that was shared with your Amazon Web Services
|
3652
|
+
# account.
|
3653
|
+
#
|
3654
|
+
# @option params [Boolean] :dry_run
|
3655
|
+
# Checks whether you have the required permissions for the action,
|
3656
|
+
# without actually making the request, and provides an error response.
|
3657
|
+
# If you have the required permissions, the error response is
|
3658
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
3659
|
+
#
|
3660
|
+
# @return [Types::CancelImageLaunchPermissionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3661
|
+
#
|
3662
|
+
# * {Types::CancelImageLaunchPermissionResult#return #return} => Boolean
|
3663
|
+
#
|
3664
|
+
# @example Request syntax with placeholder values
|
3665
|
+
#
|
3666
|
+
# resp = client.cancel_image_launch_permission({
|
3667
|
+
# image_id: "ImageId", # required
|
3668
|
+
# dry_run: false,
|
3669
|
+
# })
|
3670
|
+
#
|
3671
|
+
# @example Response structure
|
3672
|
+
#
|
3673
|
+
# resp.return #=> Boolean
|
3674
|
+
#
|
3675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImageLaunchPermission AWS API Documentation
|
3676
|
+
#
|
3677
|
+
# @overload cancel_image_launch_permission(params = {})
|
3678
|
+
# @param [Hash] params ({})
|
3679
|
+
def cancel_image_launch_permission(params = {}, options = {})
|
3680
|
+
req = build_request(:cancel_image_launch_permission, params)
|
3681
|
+
req.send_request(options)
|
3682
|
+
end
|
3683
|
+
|
3641
3684
|
# Cancels an in-process import virtual machine or import snapshot task.
|
3642
3685
|
#
|
3643
3686
|
# @option params [String] :cancel_reason
|
@@ -35774,7 +35817,8 @@ module Aws::EC2
|
|
35774
35817
|
# seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
35775
35818
|
#
|
35776
35819
|
# You can’t specify a date in the past. The upper limit for
|
35777
|
-
# `DeprecateAt` is 10 years from now
|
35820
|
+
# `DeprecateAt` is 10 years from now, except for public AMIs, where the
|
35821
|
+
# upper limit is 2 years from the creation date.
|
35778
35822
|
#
|
35779
35823
|
# @option params [Boolean] :dry_run
|
35780
35824
|
# Checks whether you have the required permissions for the action,
|
@@ -52433,7 +52477,7 @@ module Aws::EC2
|
|
52433
52477
|
params: params,
|
52434
52478
|
config: config)
|
52435
52479
|
context[:gem_name] = 'aws-sdk-ec2'
|
52436
|
-
context[:gem_version] = '1.
|
52480
|
+
context[:gem_version] = '1.345.0'
|
52437
52481
|
Seahorse::Client::Request.new(handlers, context)
|
52438
52482
|
end
|
52439
52483
|
|
@@ -225,6 +225,8 @@ module Aws::EC2
|
|
225
225
|
CancelCapacityReservationResult = Shapes::StructureShape.new(name: 'CancelCapacityReservationResult')
|
226
226
|
CancelConversionRequest = Shapes::StructureShape.new(name: 'CancelConversionRequest')
|
227
227
|
CancelExportTaskRequest = Shapes::StructureShape.new(name: 'CancelExportTaskRequest')
|
228
|
+
CancelImageLaunchPermissionRequest = Shapes::StructureShape.new(name: 'CancelImageLaunchPermissionRequest')
|
229
|
+
CancelImageLaunchPermissionResult = Shapes::StructureShape.new(name: 'CancelImageLaunchPermissionResult')
|
228
230
|
CancelImportTaskRequest = Shapes::StructureShape.new(name: 'CancelImportTaskRequest')
|
229
231
|
CancelImportTaskResult = Shapes::StructureShape.new(name: 'CancelImportTaskResult')
|
230
232
|
CancelReservedInstancesListingRequest = Shapes::StructureShape.new(name: 'CancelReservedInstancesListingRequest')
|
@@ -3503,6 +3505,13 @@ module Aws::EC2
|
|
3503
3505
|
CancelExportTaskRequest.add_member(:export_task_id, Shapes::ShapeRef.new(shape: ExportVmTaskId, required: true, location_name: "exportTaskId"))
|
3504
3506
|
CancelExportTaskRequest.struct_class = Types::CancelExportTaskRequest
|
3505
3507
|
|
3508
|
+
CancelImageLaunchPermissionRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
3509
|
+
CancelImageLaunchPermissionRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3510
|
+
CancelImageLaunchPermissionRequest.struct_class = Types::CancelImageLaunchPermissionRequest
|
3511
|
+
|
3512
|
+
CancelImageLaunchPermissionResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
3513
|
+
CancelImageLaunchPermissionResult.struct_class = Types::CancelImageLaunchPermissionResult
|
3514
|
+
|
3506
3515
|
CancelImportTaskRequest.add_member(:cancel_reason, Shapes::ShapeRef.new(shape: String, location_name: "CancelReason"))
|
3507
3516
|
CancelImportTaskRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3508
3517
|
CancelImportTaskRequest.add_member(:import_task_id, Shapes::ShapeRef.new(shape: ImportTaskId, location_name: "ImportTaskId"))
|
@@ -14054,6 +14063,14 @@ module Aws::EC2
|
|
14054
14063
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
14055
14064
|
end)
|
14056
14065
|
|
14066
|
+
api.add_operation(:cancel_image_launch_permission, Seahorse::Model::Operation.new.tap do |o|
|
14067
|
+
o.name = "CancelImageLaunchPermission"
|
14068
|
+
o.http_method = "POST"
|
14069
|
+
o.http_request_uri = "/"
|
14070
|
+
o.input = Shapes::ShapeRef.new(shape: CancelImageLaunchPermissionRequest)
|
14071
|
+
o.output = Shapes::ShapeRef.new(shape: CancelImageLaunchPermissionResult)
|
14072
|
+
end)
|
14073
|
+
|
14057
14074
|
api.add_operation(:cancel_import_task, Seahorse::Model::Operation.new.tap do |o|
|
14058
14075
|
o.name = "CancelImportTask"
|
14059
14076
|
o.http_method = "POST"
|
@@ -585,6 +585,20 @@ module Aws::EC2
|
|
585
585
|
end
|
586
586
|
end
|
587
587
|
|
588
|
+
class CancelImageLaunchPermission
|
589
|
+
def self.build(context)
|
590
|
+
unless context.config.regional_endpoint
|
591
|
+
endpoint = context.config.endpoint.to_s
|
592
|
+
end
|
593
|
+
Aws::EC2::EndpointParameters.new(
|
594
|
+
region: context.config.region,
|
595
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
596
|
+
use_fips: context.config.use_fips_endpoint,
|
597
|
+
endpoint: endpoint,
|
598
|
+
)
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
588
602
|
class CancelImportTask
|
589
603
|
def self.build(context)
|
590
604
|
unless context.config.regional_endpoint
|
@@ -138,6 +138,8 @@ module Aws::EC2
|
|
138
138
|
Aws::EC2::Endpoints::CancelConversionTask.build(context)
|
139
139
|
when :cancel_export_task
|
140
140
|
Aws::EC2::Endpoints::CancelExportTask.build(context)
|
141
|
+
when :cancel_image_launch_permission
|
142
|
+
Aws::EC2::Endpoints::CancelImageLaunchPermission.build(context)
|
141
143
|
when :cancel_import_task
|
142
144
|
Aws::EC2::Endpoints::CancelImportTask.build(context)
|
143
145
|
when :cancel_reserved_instances_listing
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -4238,6 +4238,48 @@ module Aws::EC2
|
|
4238
4238
|
include Aws::Structure
|
4239
4239
|
end
|
4240
4240
|
|
4241
|
+
# @note When making an API call, you may pass CancelImageLaunchPermissionRequest
|
4242
|
+
# data as a hash:
|
4243
|
+
#
|
4244
|
+
# {
|
4245
|
+
# image_id: "ImageId", # required
|
4246
|
+
# dry_run: false,
|
4247
|
+
# }
|
4248
|
+
#
|
4249
|
+
# @!attribute [rw] image_id
|
4250
|
+
# The ID of the AMI that was shared with your Amazon Web Services
|
4251
|
+
# account.
|
4252
|
+
# @return [String]
|
4253
|
+
#
|
4254
|
+
# @!attribute [rw] dry_run
|
4255
|
+
# Checks whether you have the required permissions for the action,
|
4256
|
+
# without actually making the request, and provides an error response.
|
4257
|
+
# If you have the required permissions, the error response is
|
4258
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
4259
|
+
# @return [Boolean]
|
4260
|
+
#
|
4261
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImageLaunchPermissionRequest AWS API Documentation
|
4262
|
+
#
|
4263
|
+
class CancelImageLaunchPermissionRequest < Struct.new(
|
4264
|
+
:image_id,
|
4265
|
+
:dry_run)
|
4266
|
+
SENSITIVE = []
|
4267
|
+
include Aws::Structure
|
4268
|
+
end
|
4269
|
+
|
4270
|
+
# @!attribute [rw] return
|
4271
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
4272
|
+
# error.
|
4273
|
+
# @return [Boolean]
|
4274
|
+
#
|
4275
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImageLaunchPermissionResult AWS API Documentation
|
4276
|
+
#
|
4277
|
+
class CancelImageLaunchPermissionResult < Struct.new(
|
4278
|
+
:return)
|
4279
|
+
SENSITIVE = []
|
4280
|
+
include Aws::Structure
|
4281
|
+
end
|
4282
|
+
|
4241
4283
|
# @note When making an API call, you may pass CancelImportTaskRequest
|
4242
4284
|
# data as a hash:
|
4243
4285
|
#
|
@@ -33557,7 +33599,8 @@ module Aws::EC2
|
|
33557
33599
|
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
33558
33600
|
#
|
33559
33601
|
# You can’t specify a date in the past. The upper limit for
|
33560
|
-
# `DeprecateAt` is 10 years from now
|
33602
|
+
# `DeprecateAt` is 10 years from now, except for public AMIs, where
|
33603
|
+
# the upper limit is 2 years from the creation date.
|
33561
33604
|
# @return [Time]
|
33562
33605
|
#
|
33563
33606
|
# @!attribute [rw] dry_run
|
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.345.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: 2022-
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|