aws-sdk-ec2 1.551.0 → 1.552.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 +546 -107
- data/lib/aws-sdk-ec2/client_api.rb +238 -0
- data/lib/aws-sdk-ec2/instance.rb +1 -1
- data/lib/aws-sdk-ec2/resource.rb +17 -17
- data/lib/aws-sdk-ec2/security_group.rb +2 -2
- data/lib/aws-sdk-ec2/snapshot.rb +1 -1
- data/lib/aws-sdk-ec2/subnet.rb +2 -2
- data/lib/aws-sdk-ec2/types.rb +632 -6
- data/lib/aws-sdk-ec2/volume.rb +1 -1
- data/lib/aws-sdk-ec2/vpc.rb +5 -5
- data/lib/aws-sdk-ec2/waiters.rb +45 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +228 -100
- data/sig/instance.rbs +1 -1
- data/sig/resource.rbs +17 -17
- data/sig/security_group.rbs +2 -2
- data/sig/snapshot.rbs +1 -1
- data/sig/subnet.rbs +2 -2
- data/sig/tag.rbs +1 -1
- data/sig/types.rbs +145 -5
- data/sig/volume.rbs +1 -1
- data/sig/vpc.rbs +5 -5
- data/sig/waiters.rbs +20 -0
- metadata +3 -3
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -9800,6 +9800,71 @@ module Aws::EC2
|
|
9800
9800
|
include Aws::Structure
|
9801
9801
|
end
|
9802
9802
|
|
9803
|
+
# @!attribute [rw] image_id
|
9804
|
+
# The ID of the image to report on.
|
9805
|
+
# @return [String]
|
9806
|
+
#
|
9807
|
+
# @!attribute [rw] dry_run
|
9808
|
+
# Checks whether you have the required permissions for the action,
|
9809
|
+
# without actually making the request, and provides an error response.
|
9810
|
+
# If you have the required permissions, the error response is
|
9811
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
9812
|
+
# @return [Boolean]
|
9813
|
+
#
|
9814
|
+
# @!attribute [rw] resource_types
|
9815
|
+
# The resource types to include in the report.
|
9816
|
+
# @return [Array<Types::ImageUsageResourceTypeRequest>]
|
9817
|
+
#
|
9818
|
+
# @!attribute [rw] account_ids
|
9819
|
+
# The Amazon Web Services account IDs to include in the report. To
|
9820
|
+
# include all accounts, omit this parameter.
|
9821
|
+
# @return [Array<String>]
|
9822
|
+
#
|
9823
|
+
# @!attribute [rw] client_token
|
9824
|
+
# A unique, case-sensitive identifier that you provide to ensure
|
9825
|
+
# idempotency of the request.
|
9826
|
+
#
|
9827
|
+
# **A suitable default value is auto-generated.** You should normally
|
9828
|
+
# not need to pass this option.
|
9829
|
+
# @return [String]
|
9830
|
+
#
|
9831
|
+
# @!attribute [rw] tag_specifications
|
9832
|
+
# The tags to apply to the report on creation. The `ResourceType` must
|
9833
|
+
# be set to `image-usage-report`; any other value will cause the
|
9834
|
+
# report creation to fail.
|
9835
|
+
#
|
9836
|
+
# To tag a report after it has been created, see [CreateTags][1].
|
9837
|
+
#
|
9838
|
+
#
|
9839
|
+
#
|
9840
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
9841
|
+
# @return [Array<Types::TagSpecification>]
|
9842
|
+
#
|
9843
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageUsageReportRequest AWS API Documentation
|
9844
|
+
#
|
9845
|
+
class CreateImageUsageReportRequest < Struct.new(
|
9846
|
+
:image_id,
|
9847
|
+
:dry_run,
|
9848
|
+
:resource_types,
|
9849
|
+
:account_ids,
|
9850
|
+
:client_token,
|
9851
|
+
:tag_specifications)
|
9852
|
+
SENSITIVE = []
|
9853
|
+
include Aws::Structure
|
9854
|
+
end
|
9855
|
+
|
9856
|
+
# @!attribute [rw] report_id
|
9857
|
+
# The ID of the report.
|
9858
|
+
# @return [String]
|
9859
|
+
#
|
9860
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageUsageReportResult AWS API Documentation
|
9861
|
+
#
|
9862
|
+
class CreateImageUsageReportResult < Struct.new(
|
9863
|
+
:report_id)
|
9864
|
+
SENSITIVE = []
|
9865
|
+
include Aws::Structure
|
9866
|
+
end
|
9867
|
+
|
9803
9868
|
# @!attribute [rw] dry_run
|
9804
9869
|
# Checks whether you have the required permissions for the action,
|
9805
9870
|
# without actually making the request, and provides an error response.
|
@@ -16366,6 +16431,39 @@ module Aws::EC2
|
|
16366
16431
|
include Aws::Structure
|
16367
16432
|
end
|
16368
16433
|
|
16434
|
+
# @!attribute [rw] report_id
|
16435
|
+
# The ID of the report to delete.
|
16436
|
+
# @return [String]
|
16437
|
+
#
|
16438
|
+
# @!attribute [rw] dry_run
|
16439
|
+
# Checks whether you have the required permissions for the action,
|
16440
|
+
# without actually making the request, and provides an error response.
|
16441
|
+
# If you have the required permissions, the error response is
|
16442
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
16443
|
+
# @return [Boolean]
|
16444
|
+
#
|
16445
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteImageUsageReportRequest AWS API Documentation
|
16446
|
+
#
|
16447
|
+
class DeleteImageUsageReportRequest < Struct.new(
|
16448
|
+
:report_id,
|
16449
|
+
:dry_run)
|
16450
|
+
SENSITIVE = []
|
16451
|
+
include Aws::Structure
|
16452
|
+
end
|
16453
|
+
|
16454
|
+
# @!attribute [rw] return
|
16455
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
16456
|
+
# error.
|
16457
|
+
# @return [Boolean]
|
16458
|
+
#
|
16459
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteImageUsageReportResult AWS API Documentation
|
16460
|
+
#
|
16461
|
+
class DeleteImageUsageReportResult < Struct.new(
|
16462
|
+
:return)
|
16463
|
+
SENSITIVE = []
|
16464
|
+
include Aws::Structure
|
16465
|
+
end
|
16466
|
+
|
16369
16467
|
# @!attribute [rw] dry_run
|
16370
16468
|
# Checks whether you have the required permissions for the action,
|
16371
16469
|
# without actually making the request, and provides an error response.
|
@@ -22499,6 +22597,244 @@ module Aws::EC2
|
|
22499
22597
|
include Aws::Structure
|
22500
22598
|
end
|
22501
22599
|
|
22600
|
+
# @!attribute [rw] image_ids
|
22601
|
+
# The IDs of the images to check for resource references.
|
22602
|
+
# @return [Array<String>]
|
22603
|
+
#
|
22604
|
+
# @!attribute [rw] include_all_resource_types
|
22605
|
+
# Specifies whether to check all supported Amazon Web Services
|
22606
|
+
# resource types for image references. When specified, default values
|
22607
|
+
# are applied for `ResourceTypeOptions`. For the default values, see
|
22608
|
+
# [How AMI reference checks work][1] in the *Amazon EC2 User Guide*.
|
22609
|
+
# If you also specify `ResourceTypes` with `ResourceTypeOptions`, your
|
22610
|
+
# specified values override the default values.
|
22611
|
+
#
|
22612
|
+
# Supported resource types: `ec2:Instance` \| `ec2:LaunchTemplate` \|
|
22613
|
+
# `ssm:Parameter` \| `imagebuilder:ImageRecipe` \|
|
22614
|
+
# `imagebuilder:ContainerRecipe`
|
22615
|
+
#
|
22616
|
+
# Either `IncludeAllResourceTypes` or `ResourceTypes` must be
|
22617
|
+
# specified.
|
22618
|
+
#
|
22619
|
+
#
|
22620
|
+
#
|
22621
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-ami-references-works.html
|
22622
|
+
# @return [Boolean]
|
22623
|
+
#
|
22624
|
+
# @!attribute [rw] resource_types
|
22625
|
+
# The Amazon Web Services resource types to check for image
|
22626
|
+
# references.
|
22627
|
+
#
|
22628
|
+
# Either `IncludeAllResourceTypes` or `ResourceTypes` must be
|
22629
|
+
# specified.
|
22630
|
+
# @return [Array<Types::ResourceTypeRequest>]
|
22631
|
+
#
|
22632
|
+
# @!attribute [rw] next_token
|
22633
|
+
# The token returned from a previous paginated request. Pagination
|
22634
|
+
# continues from the end of the items returned by the previous
|
22635
|
+
# request.
|
22636
|
+
# @return [String]
|
22637
|
+
#
|
22638
|
+
# @!attribute [rw] dry_run
|
22639
|
+
# Checks whether you have the required permissions for the action,
|
22640
|
+
# without actually making the request, and provides an error response.
|
22641
|
+
# If you have the required permissions, the error response is
|
22642
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22643
|
+
# @return [Boolean]
|
22644
|
+
#
|
22645
|
+
# @!attribute [rw] max_results
|
22646
|
+
# The maximum number of items to return for this request. To get the
|
22647
|
+
# next page of items, make another request with the token returned in
|
22648
|
+
# the output. For more information, see [Pagination][1].
|
22649
|
+
#
|
22650
|
+
#
|
22651
|
+
#
|
22652
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
22653
|
+
# @return [Integer]
|
22654
|
+
#
|
22655
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageReferencesRequest AWS API Documentation
|
22656
|
+
#
|
22657
|
+
class DescribeImageReferencesRequest < Struct.new(
|
22658
|
+
:image_ids,
|
22659
|
+
:include_all_resource_types,
|
22660
|
+
:resource_types,
|
22661
|
+
:next_token,
|
22662
|
+
:dry_run,
|
22663
|
+
:max_results)
|
22664
|
+
SENSITIVE = []
|
22665
|
+
include Aws::Structure
|
22666
|
+
end
|
22667
|
+
|
22668
|
+
# @!attribute [rw] next_token
|
22669
|
+
# The token to include in another request to get the next page of
|
22670
|
+
# items. This value is `null` when there are no more items to return.
|
22671
|
+
# @return [String]
|
22672
|
+
#
|
22673
|
+
# @!attribute [rw] image_references
|
22674
|
+
# The resources that are referencing the specified images.
|
22675
|
+
# @return [Array<Types::ImageReference>]
|
22676
|
+
#
|
22677
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageReferencesResult AWS API Documentation
|
22678
|
+
#
|
22679
|
+
class DescribeImageReferencesResult < Struct.new(
|
22680
|
+
:next_token,
|
22681
|
+
:image_references)
|
22682
|
+
SENSITIVE = []
|
22683
|
+
include Aws::Structure
|
22684
|
+
end
|
22685
|
+
|
22686
|
+
# @!attribute [rw] image_ids
|
22687
|
+
# The IDs of the images for filtering the report entries. If
|
22688
|
+
# specified, only report entries containing these images are returned.
|
22689
|
+
# @return [Array<String>]
|
22690
|
+
#
|
22691
|
+
# @!attribute [rw] report_ids
|
22692
|
+
# The IDs of the usage reports.
|
22693
|
+
# @return [Array<String>]
|
22694
|
+
#
|
22695
|
+
# @!attribute [rw] next_token
|
22696
|
+
# The token returned from a previous paginated request. Pagination
|
22697
|
+
# continues from the end of the items returned by the previous
|
22698
|
+
# request.
|
22699
|
+
# @return [String]
|
22700
|
+
#
|
22701
|
+
# @!attribute [rw] filters
|
22702
|
+
# The filters.
|
22703
|
+
#
|
22704
|
+
# * `account-id` - A 12-digit Amazon Web Services account ID.
|
22705
|
+
#
|
22706
|
+
# * `creation-time` - The time when the report was created, in the ISO
|
22707
|
+
# 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
|
22708
|
+
# example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`),
|
22709
|
+
# for example, `2025-11-29T*`, which matches an entire day.
|
22710
|
+
#
|
22711
|
+
# * `resource-type` - The resource type (`ec2:Instance` \|
|
22712
|
+
# `ec2:LaunchTemplate`).
|
22713
|
+
# @return [Array<Types::Filter>]
|
22714
|
+
#
|
22715
|
+
# @!attribute [rw] dry_run
|
22716
|
+
# Checks whether you have the required permissions for the action,
|
22717
|
+
# without actually making the request, and provides an error response.
|
22718
|
+
# If you have the required permissions, the error response is
|
22719
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22720
|
+
# @return [Boolean]
|
22721
|
+
#
|
22722
|
+
# @!attribute [rw] max_results
|
22723
|
+
# The maximum number of items to return for this request. To get the
|
22724
|
+
# next page of items, make another request with the token returned in
|
22725
|
+
# the output. For more information, see [Pagination][1].
|
22726
|
+
#
|
22727
|
+
#
|
22728
|
+
#
|
22729
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
22730
|
+
# @return [Integer]
|
22731
|
+
#
|
22732
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageUsageReportEntriesRequest AWS API Documentation
|
22733
|
+
#
|
22734
|
+
class DescribeImageUsageReportEntriesRequest < Struct.new(
|
22735
|
+
:image_ids,
|
22736
|
+
:report_ids,
|
22737
|
+
:next_token,
|
22738
|
+
:filters,
|
22739
|
+
:dry_run,
|
22740
|
+
:max_results)
|
22741
|
+
SENSITIVE = []
|
22742
|
+
include Aws::Structure
|
22743
|
+
end
|
22744
|
+
|
22745
|
+
# @!attribute [rw] next_token
|
22746
|
+
# The token to include in another request to get the next page of
|
22747
|
+
# items. This value is `null` when there are no more items to return.
|
22748
|
+
# @return [String]
|
22749
|
+
#
|
22750
|
+
# @!attribute [rw] image_usage_report_entries
|
22751
|
+
# The content of the usage reports.
|
22752
|
+
# @return [Array<Types::ImageUsageReportEntry>]
|
22753
|
+
#
|
22754
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageUsageReportEntriesResult AWS API Documentation
|
22755
|
+
#
|
22756
|
+
class DescribeImageUsageReportEntriesResult < Struct.new(
|
22757
|
+
:next_token,
|
22758
|
+
:image_usage_report_entries)
|
22759
|
+
SENSITIVE = []
|
22760
|
+
include Aws::Structure
|
22761
|
+
end
|
22762
|
+
|
22763
|
+
# @!attribute [rw] image_ids
|
22764
|
+
# The IDs of the images for filtering the reports. If specified, only
|
22765
|
+
# reports containing these images are returned.
|
22766
|
+
# @return [Array<String>]
|
22767
|
+
#
|
22768
|
+
# @!attribute [rw] report_ids
|
22769
|
+
# The IDs of the image usage reports.
|
22770
|
+
# @return [Array<String>]
|
22771
|
+
#
|
22772
|
+
# @!attribute [rw] next_token
|
22773
|
+
# The token returned from a previous paginated request. Pagination
|
22774
|
+
# continues from the end of the items returned by the previous
|
22775
|
+
# request.
|
22776
|
+
# @return [String]
|
22777
|
+
#
|
22778
|
+
# @!attribute [rw] filters
|
22779
|
+
# The filters.
|
22780
|
+
#
|
22781
|
+
# * `creation-time` - The time when the report was created, in the ISO
|
22782
|
+
# 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
|
22783
|
+
# example, `2025-11-29T11:04:43.305Z`. You can use a wildcard (`*`),
|
22784
|
+
# for example, `2025-11-29T*`, which matches an entire day.
|
22785
|
+
#
|
22786
|
+
# * `state` - The state of the report (`available` \| `pending` \|
|
22787
|
+
# `error`).
|
22788
|
+
# @return [Array<Types::Filter>]
|
22789
|
+
#
|
22790
|
+
# @!attribute [rw] dry_run
|
22791
|
+
# Checks whether you have the required permissions for the action,
|
22792
|
+
# without actually making the request, and provides an error response.
|
22793
|
+
# If you have the required permissions, the error response is
|
22794
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22795
|
+
# @return [Boolean]
|
22796
|
+
#
|
22797
|
+
# @!attribute [rw] max_results
|
22798
|
+
# The maximum number of items to return for this request. To get the
|
22799
|
+
# next page of items, make another request with the token returned in
|
22800
|
+
# the output. For more information, see [Pagination][1].
|
22801
|
+
#
|
22802
|
+
#
|
22803
|
+
#
|
22804
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
22805
|
+
# @return [Integer]
|
22806
|
+
#
|
22807
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageUsageReportsRequest AWS API Documentation
|
22808
|
+
#
|
22809
|
+
class DescribeImageUsageReportsRequest < Struct.new(
|
22810
|
+
:image_ids,
|
22811
|
+
:report_ids,
|
22812
|
+
:next_token,
|
22813
|
+
:filters,
|
22814
|
+
:dry_run,
|
22815
|
+
:max_results)
|
22816
|
+
SENSITIVE = []
|
22817
|
+
include Aws::Structure
|
22818
|
+
end
|
22819
|
+
|
22820
|
+
# @!attribute [rw] next_token
|
22821
|
+
# The token to include in another request to get the next page of
|
22822
|
+
# items. This value is `null` when there are no more items to return.
|
22823
|
+
# @return [String]
|
22824
|
+
#
|
22825
|
+
# @!attribute [rw] image_usage_reports
|
22826
|
+
# The image usage reports.
|
22827
|
+
# @return [Array<Types::ImageUsageReport>]
|
22828
|
+
#
|
22829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageUsageReportsResult AWS API Documentation
|
22830
|
+
#
|
22831
|
+
class DescribeImageUsageReportsResult < Struct.new(
|
22832
|
+
:next_token,
|
22833
|
+
:image_usage_reports)
|
22834
|
+
SENSITIVE = []
|
22835
|
+
include Aws::Structure
|
22836
|
+
end
|
22837
|
+
|
22502
22838
|
# @!attribute [rw] executable_users
|
22503
22839
|
# Scopes the images by users with explicit launch permissions. Specify
|
22504
22840
|
# an Amazon Web Services account ID, `self` (the sender of the
|
@@ -31604,6 +31940,9 @@ module Aws::EC2
|
|
31604
31940
|
#
|
31605
31941
|
# * `resource-configuration-group-arn` - The Amazon Resource Name
|
31606
31942
|
# (ARN) of the resource configuration of type GROUP.
|
31943
|
+
#
|
31944
|
+
# * `service-network-resource-association-id` - The ID of the
|
31945
|
+
# association.
|
31607
31946
|
# @return [Array<Types::Filter>]
|
31608
31947
|
#
|
31609
31948
|
# @!attribute [rw] max_results
|
@@ -37859,12 +38198,17 @@ module Aws::EC2
|
|
37859
38198
|
# Describes an EC2 Fleet.
|
37860
38199
|
#
|
37861
38200
|
# @!attribute [rw] activity_status
|
37862
|
-
# The progress of the EC2 Fleet.
|
37863
|
-
#
|
37864
|
-
#
|
37865
|
-
#
|
37866
|
-
#
|
37867
|
-
#
|
38201
|
+
# The progress of the EC2 Fleet.
|
38202
|
+
#
|
38203
|
+
# For fleets of type `instant`, the status is `fulfilled` after all
|
38204
|
+
# requests are placed, regardless of whether target capacity is met
|
38205
|
+
# (this is the only possible status for `instant` fleets).
|
38206
|
+
#
|
38207
|
+
# For fleets of type `request` or `maintain`, the status is
|
38208
|
+
# `pending_fulfillment` after all requests are placed, `fulfilled`
|
38209
|
+
# when the fleet size meets or exceeds target capacity,
|
38210
|
+
# `pending_termination` while instances are terminating when fleet
|
38211
|
+
# size is decreased, and `error` if there's an error.
|
37868
38212
|
# @return [String]
|
37869
38213
|
#
|
37870
38214
|
# @!attribute [rw] create_time
|
@@ -43534,6 +43878,226 @@ module Aws::EC2
|
|
43534
43878
|
include Aws::Structure
|
43535
43879
|
end
|
43536
43880
|
|
43881
|
+
# A resource that is referencing an image.
|
43882
|
+
#
|
43883
|
+
# @!attribute [rw] image_id
|
43884
|
+
# The ID of the referenced image.
|
43885
|
+
# @return [String]
|
43886
|
+
#
|
43887
|
+
# @!attribute [rw] resource_type
|
43888
|
+
# The type of resource referencing the image.
|
43889
|
+
# @return [String]
|
43890
|
+
#
|
43891
|
+
# @!attribute [rw] arn
|
43892
|
+
# The Amazon Resource Name (ARN) of the resource referencing the
|
43893
|
+
# image.
|
43894
|
+
# @return [String]
|
43895
|
+
#
|
43896
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageReference AWS API Documentation
|
43897
|
+
#
|
43898
|
+
class ImageReference < Struct.new(
|
43899
|
+
:image_id,
|
43900
|
+
:resource_type,
|
43901
|
+
:arn)
|
43902
|
+
SENSITIVE = []
|
43903
|
+
include Aws::Structure
|
43904
|
+
end
|
43905
|
+
|
43906
|
+
# The configuration and status of an image usage report.
|
43907
|
+
#
|
43908
|
+
# @!attribute [rw] image_id
|
43909
|
+
# The ID of the image that was specified when the report was created.
|
43910
|
+
# @return [String]
|
43911
|
+
#
|
43912
|
+
# @!attribute [rw] report_id
|
43913
|
+
# The ID of the report.
|
43914
|
+
# @return [String]
|
43915
|
+
#
|
43916
|
+
# @!attribute [rw] resource_types
|
43917
|
+
# The resource types that were specified when the report was created.
|
43918
|
+
# @return [Array<Types::ImageUsageResourceType>]
|
43919
|
+
#
|
43920
|
+
# @!attribute [rw] account_ids
|
43921
|
+
# The IDs of the Amazon Web Services accounts that were specified when
|
43922
|
+
# the report was created.
|
43923
|
+
# @return [Array<String>]
|
43924
|
+
#
|
43925
|
+
# @!attribute [rw] state
|
43926
|
+
# The current state of the report. Possible values:
|
43927
|
+
#
|
43928
|
+
# * `available` - The report is available to view.
|
43929
|
+
#
|
43930
|
+
# * `pending` - The report is being created and not available to view.
|
43931
|
+
#
|
43932
|
+
# * `error` - The report could not be created.
|
43933
|
+
# @return [String]
|
43934
|
+
#
|
43935
|
+
# @!attribute [rw] state_reason
|
43936
|
+
# Provides additional details when the report is in an `error` state.
|
43937
|
+
# @return [String]
|
43938
|
+
#
|
43939
|
+
# @!attribute [rw] creation_time
|
43940
|
+
# The date and time when the report was created.
|
43941
|
+
# @return [Time]
|
43942
|
+
#
|
43943
|
+
# @!attribute [rw] expiration_time
|
43944
|
+
# The date and time when Amazon EC2 will delete the report (30 days
|
43945
|
+
# after the report was created).
|
43946
|
+
# @return [Time]
|
43947
|
+
#
|
43948
|
+
# @!attribute [rw] tags
|
43949
|
+
# Any tags assigned to the report.
|
43950
|
+
# @return [Array<Types::Tag>]
|
43951
|
+
#
|
43952
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageReport AWS API Documentation
|
43953
|
+
#
|
43954
|
+
class ImageUsageReport < Struct.new(
|
43955
|
+
:image_id,
|
43956
|
+
:report_id,
|
43957
|
+
:resource_types,
|
43958
|
+
:account_ids,
|
43959
|
+
:state,
|
43960
|
+
:state_reason,
|
43961
|
+
:creation_time,
|
43962
|
+
:expiration_time,
|
43963
|
+
:tags)
|
43964
|
+
SENSITIVE = []
|
43965
|
+
include Aws::Structure
|
43966
|
+
end
|
43967
|
+
|
43968
|
+
# A single entry in an image usage report, detailing how an image is
|
43969
|
+
# being used by a specific Amazon Web Services account and resource
|
43970
|
+
# type.
|
43971
|
+
#
|
43972
|
+
# @!attribute [rw] resource_type
|
43973
|
+
# The type of resource (`ec2:Instance` or `ec2:LaunchTemplate`).
|
43974
|
+
# @return [String]
|
43975
|
+
#
|
43976
|
+
# @!attribute [rw] report_id
|
43977
|
+
# The ID of the report.
|
43978
|
+
# @return [String]
|
43979
|
+
#
|
43980
|
+
# @!attribute [rw] usage_count
|
43981
|
+
# The number of times resources of this type reference this image in
|
43982
|
+
# the account.
|
43983
|
+
# @return [Integer]
|
43984
|
+
#
|
43985
|
+
# @!attribute [rw] account_id
|
43986
|
+
# The ID of the account that uses the image.
|
43987
|
+
# @return [String]
|
43988
|
+
#
|
43989
|
+
# @!attribute [rw] image_id
|
43990
|
+
# The ID of the image.
|
43991
|
+
# @return [String]
|
43992
|
+
#
|
43993
|
+
# @!attribute [rw] report_creation_time
|
43994
|
+
# The date and time the report creation was initiated.
|
43995
|
+
# @return [Time]
|
43996
|
+
#
|
43997
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageReportEntry AWS API Documentation
|
43998
|
+
#
|
43999
|
+
class ImageUsageReportEntry < Struct.new(
|
44000
|
+
:resource_type,
|
44001
|
+
:report_id,
|
44002
|
+
:usage_count,
|
44003
|
+
:account_id,
|
44004
|
+
:image_id,
|
44005
|
+
:report_creation_time)
|
44006
|
+
SENSITIVE = []
|
44007
|
+
include Aws::Structure
|
44008
|
+
end
|
44009
|
+
|
44010
|
+
# A resource type to include in the report. Associated options can also
|
44011
|
+
# be specified if the resource type is a launch template.
|
44012
|
+
#
|
44013
|
+
# @!attribute [rw] resource_type
|
44014
|
+
# The resource type.
|
44015
|
+
#
|
44016
|
+
# Valid values: `ec2:Instance` \| `ec2:LaunchTemplate`
|
44017
|
+
# @return [String]
|
44018
|
+
#
|
44019
|
+
# @!attribute [rw] resource_type_options
|
44020
|
+
# The options that affect the scope of the report. Valid only when
|
44021
|
+
# `ResourceType` is `ec2:LaunchTemplate`.
|
44022
|
+
# @return [Array<Types::ImageUsageResourceTypeOption>]
|
44023
|
+
#
|
44024
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageResourceType AWS API Documentation
|
44025
|
+
#
|
44026
|
+
class ImageUsageResourceType < Struct.new(
|
44027
|
+
:resource_type,
|
44028
|
+
:resource_type_options)
|
44029
|
+
SENSITIVE = []
|
44030
|
+
include Aws::Structure
|
44031
|
+
end
|
44032
|
+
|
44033
|
+
# The options that affect the scope of the report.
|
44034
|
+
#
|
44035
|
+
# @!attribute [rw] option_name
|
44036
|
+
# The name of the option.
|
44037
|
+
# @return [String]
|
44038
|
+
#
|
44039
|
+
# @!attribute [rw] option_values
|
44040
|
+
# The number of launch template versions to check.
|
44041
|
+
# @return [Array<String>]
|
44042
|
+
#
|
44043
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageResourceTypeOption AWS API Documentation
|
44044
|
+
#
|
44045
|
+
class ImageUsageResourceTypeOption < Struct.new(
|
44046
|
+
:option_name,
|
44047
|
+
:option_values)
|
44048
|
+
SENSITIVE = []
|
44049
|
+
include Aws::Structure
|
44050
|
+
end
|
44051
|
+
|
44052
|
+
# The options that affect the scope of the report.
|
44053
|
+
#
|
44054
|
+
# @!attribute [rw] option_name
|
44055
|
+
# The name of the option.
|
44056
|
+
#
|
44057
|
+
# Valid value: `version-depth` - The number of launch template
|
44058
|
+
# versions to check.
|
44059
|
+
# @return [String]
|
44060
|
+
#
|
44061
|
+
# @!attribute [rw] option_values
|
44062
|
+
# A value for the specified option.
|
44063
|
+
#
|
44064
|
+
# Valid values: Integers between `1` and `10000`
|
44065
|
+
#
|
44066
|
+
# Default: `20`
|
44067
|
+
# @return [Array<String>]
|
44068
|
+
#
|
44069
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageResourceTypeOptionRequest AWS API Documentation
|
44070
|
+
#
|
44071
|
+
class ImageUsageResourceTypeOptionRequest < Struct.new(
|
44072
|
+
:option_name,
|
44073
|
+
:option_values)
|
44074
|
+
SENSITIVE = []
|
44075
|
+
include Aws::Structure
|
44076
|
+
end
|
44077
|
+
|
44078
|
+
# A resource type to include in the report. Associated options can also
|
44079
|
+
# be specified if the resource type is a launch template.
|
44080
|
+
#
|
44081
|
+
# @!attribute [rw] resource_type
|
44082
|
+
# The resource type.
|
44083
|
+
#
|
44084
|
+
# Valid values: `ec2:Instance` \| `ec2:LaunchTemplate`
|
44085
|
+
# @return [String]
|
44086
|
+
#
|
44087
|
+
# @!attribute [rw] resource_type_options
|
44088
|
+
# The options that affect the scope of the report. Valid only when
|
44089
|
+
# `ResourceType` is `ec2:LaunchTemplate`.
|
44090
|
+
# @return [Array<Types::ImageUsageResourceTypeOptionRequest>]
|
44091
|
+
#
|
44092
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageUsageResourceTypeRequest AWS API Documentation
|
44093
|
+
#
|
44094
|
+
class ImageUsageResourceTypeRequest < Struct.new(
|
44095
|
+
:resource_type,
|
44096
|
+
:resource_type_options)
|
44097
|
+
SENSITIVE = []
|
44098
|
+
include Aws::Structure
|
44099
|
+
end
|
44100
|
+
|
43537
44101
|
# @!attribute [rw] client_vpn_endpoint_id
|
43538
44102
|
# The ID of the Client VPN endpoint to which the client certificate
|
43539
44103
|
# revocation list applies.
|
@@ -66093,6 +66657,68 @@ module Aws::EC2
|
|
66093
66657
|
include Aws::Structure
|
66094
66658
|
end
|
66095
66659
|
|
66660
|
+
# The options that affect the scope of the response.
|
66661
|
+
#
|
66662
|
+
# @!attribute [rw] option_name
|
66663
|
+
# The name of the option.
|
66664
|
+
#
|
66665
|
+
# * For `ec2:Instance`:
|
66666
|
+
#
|
66667
|
+
# Specify `state-name` - The current state of the EC2 instance.
|
66668
|
+
#
|
66669
|
+
# * For `ec2:LaunchTemplate`:
|
66670
|
+
#
|
66671
|
+
# Specify `version-depth` - The number of launch template versions
|
66672
|
+
# to check, starting from the most recent version.
|
66673
|
+
# @return [String]
|
66674
|
+
#
|
66675
|
+
# @!attribute [rw] option_values
|
66676
|
+
# A value for the specified option.
|
66677
|
+
#
|
66678
|
+
# * For `state-name`:
|
66679
|
+
#
|
66680
|
+
# * Valid values: `pending` \| `running` \| `shutting-down` \|
|
66681
|
+
# `terminated` \| `stopping` \| `stopped`
|
66682
|
+
#
|
66683
|
+
# * Default: All states
|
66684
|
+
# * For `version-depth`:
|
66685
|
+
#
|
66686
|
+
# * Valid values: Integers between `1` and `10000`
|
66687
|
+
#
|
66688
|
+
# * Default: `10`
|
66689
|
+
# @return [Array<String>]
|
66690
|
+
#
|
66691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResourceTypeOption AWS API Documentation
|
66692
|
+
#
|
66693
|
+
class ResourceTypeOption < Struct.new(
|
66694
|
+
:option_name,
|
66695
|
+
:option_values)
|
66696
|
+
SENSITIVE = []
|
66697
|
+
include Aws::Structure
|
66698
|
+
end
|
66699
|
+
|
66700
|
+
# A resource type to check for image references. Associated options can
|
66701
|
+
# also be specified if the resource type is an EC2 instance or launch
|
66702
|
+
# template.
|
66703
|
+
#
|
66704
|
+
# @!attribute [rw] resource_type
|
66705
|
+
# The resource type.
|
66706
|
+
# @return [String]
|
66707
|
+
#
|
66708
|
+
# @!attribute [rw] resource_type_options
|
66709
|
+
# The options that affect the scope of the response. Valid only when
|
66710
|
+
# `ResourceType` is `ec2:Instance` or `ec2:LaunchTemplate`.
|
66711
|
+
# @return [Array<Types::ResourceTypeOption>]
|
66712
|
+
#
|
66713
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResourceTypeRequest AWS API Documentation
|
66714
|
+
#
|
66715
|
+
class ResourceTypeRequest < Struct.new(
|
66716
|
+
:resource_type,
|
66717
|
+
:resource_type_options)
|
66718
|
+
SENSITIVE = []
|
66719
|
+
include Aws::Structure
|
66720
|
+
end
|
66721
|
+
|
66096
66722
|
# Describes the error that's returned when you cannot delete a launch
|
66097
66723
|
# template version.
|
66098
66724
|
#
|
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -340,7 +340,7 @@ module Aws::EC2
|
|
340
340
|
# outpost_arn: "String",
|
341
341
|
# tag_specifications: [
|
342
342
|
# {
|
343
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, 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, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task
|
343
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, image-usage-report, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task
|
344
344
|
# tags: [
|
345
345
|
# {
|
346
346
|
# key: "String",
|