aws-sdk-ec2 1.431.0 → 1.522.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 +465 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +26 -16
- data/lib/aws-sdk-ec2/client.rb +10867 -4155
- data/lib/aws-sdk-ec2/client_api.rb +2924 -510
- data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
- data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
- data/lib/aws-sdk-ec2/customizations.rb +0 -22
- data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
- data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-ec2/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-ec2/endpoints.rb +2 -8608
- data/lib/aws-sdk-ec2/image.rb +166 -95
- data/lib/aws-sdk-ec2/instance.rb +425 -356
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +14 -14
- data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +70 -70
- data/lib/aws-sdk-ec2/network_interface.rb +94 -78
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +37 -19
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +20 -1242
- data/lib/aws-sdk-ec2/resource.rb +944 -811
- data/lib/aws-sdk-ec2/route.rb +34 -34
- data/lib/aws-sdk-ec2/route_table.rb +44 -44
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +212 -201
- data/lib/aws-sdk-ec2/snapshot.rb +169 -105
- data/lib/aws-sdk-ec2/subnet.rb +391 -359
- data/lib/aws-sdk-ec2/tag.rb +7 -4
- data/lib/aws-sdk-ec2/types.rb +13807 -4774
- data/lib/aws-sdk-ec2/volume.rb +157 -119
- data/lib/aws-sdk-ec2/vpc.rb +278 -224
- data/lib/aws-sdk-ec2/vpc_address.rb +31 -21
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2.rb +40 -36
- data/sig/classic_address.rbs +105 -0
- data/sig/client.rbs +14622 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +228 -0
- data/sig/instance.rbs +564 -0
- data/sig/internet_gateway.rbs +91 -0
- data/sig/key_pair.rbs +54 -0
- data/sig/key_pair_info.rbs +63 -0
- data/sig/nat_gateway.rbs +107 -0
- data/sig/network_acl.rbs +144 -0
- data/sig/network_interface.rbs +239 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1042 -0
- data/sig/route.rbs +113 -0
- data/sig/route_table.rbs +117 -0
- data/sig/route_table_association.rbs +69 -0
- data/sig/security_group.rbs +311 -0
- data/sig/snapshot.rbs +204 -0
- data/sig/subnet.rbs +436 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +16812 -0
- data/sig/volume.rbs +210 -0
- data/sig/vpc.rbs +404 -0
- data/sig/vpc_address.rbs +101 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +664 -0
- metadata +44 -18
data/sig/snapshot.rbs
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module EC2
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html
|
11
|
+
class Snapshot
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#initialize-instance_method
|
13
|
+
def initialize: (String id, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (id: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias snapshot_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#owner_alias-instance_method
|
22
|
+
def owner_alias: () -> ::String
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#outpost_arn-instance_method
|
25
|
+
def outpost_arn: () -> ::String
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#tags-instance_method
|
28
|
+
def tags: () -> ::Array[Types::Tag]
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#storage_tier-instance_method
|
31
|
+
def storage_tier: () -> ("archive" | "standard")
|
32
|
+
|
33
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#restore_expiry_time-instance_method
|
34
|
+
def restore_expiry_time: () -> ::Time
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#sse_type-instance_method
|
37
|
+
def sse_type: () -> ("sse-ebs" | "sse-kms" | "none")
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#availability_zone-instance_method
|
40
|
+
def availability_zone: () -> ::String
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#transfer_type-instance_method
|
43
|
+
def transfer_type: () -> ("time-based" | "standard")
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#completion_duration_minutes-instance_method
|
46
|
+
def completion_duration_minutes: () -> ::Integer
|
47
|
+
|
48
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#completion_time-instance_method
|
49
|
+
def completion_time: () -> ::Time
|
50
|
+
|
51
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#full_snapshot_size_in_bytes-instance_method
|
52
|
+
def full_snapshot_size_in_bytes: () -> ::Integer
|
53
|
+
|
54
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume_id-instance_method
|
55
|
+
def volume_id: () -> ::String
|
56
|
+
|
57
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#state-instance_method
|
58
|
+
def state: () -> ("pending" | "completed" | "error" | "recoverable" | "recovering")
|
59
|
+
|
60
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#state_message-instance_method
|
61
|
+
def state_message: () -> ::String
|
62
|
+
|
63
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#start_time-instance_method
|
64
|
+
def start_time: () -> ::Time
|
65
|
+
|
66
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#progress-instance_method
|
67
|
+
def progress: () -> ::String
|
68
|
+
|
69
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#owner_id-instance_method
|
70
|
+
def owner_id: () -> ::String
|
71
|
+
|
72
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#description-instance_method
|
73
|
+
def description: () -> ::String
|
74
|
+
|
75
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume_size-instance_method
|
76
|
+
def volume_size: () -> ::Integer
|
77
|
+
|
78
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#encrypted-instance_method
|
79
|
+
def encrypted: () -> bool
|
80
|
+
|
81
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#kms_key_id-instance_method
|
82
|
+
def kms_key_id: () -> ::String
|
83
|
+
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data_encryption_key_id-instance_method
|
85
|
+
def data_encryption_key_id: () -> ::String
|
86
|
+
|
87
|
+
def client: () -> Client
|
88
|
+
|
89
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#load-instance_method
|
90
|
+
def load: () -> self
|
91
|
+
alias reload load
|
92
|
+
|
93
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data-instance_method
|
94
|
+
def data: () -> Types::Snapshot
|
95
|
+
|
96
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data_loaded?-instance_method
|
97
|
+
def data_loaded?: () -> bool
|
98
|
+
|
99
|
+
|
100
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#wait_until_completed-instance_method
|
101
|
+
def wait_until_completed: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Snapshot
|
102
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Snapshot
|
103
|
+
|
104
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#copy-instance_method
|
105
|
+
def copy: (
|
106
|
+
?description: ::String,
|
107
|
+
?destination_outpost_arn: ::String,
|
108
|
+
?destination_region: ::String,
|
109
|
+
?encrypted: bool,
|
110
|
+
?kms_key_id: ::String,
|
111
|
+
?presigned_url: ::String,
|
112
|
+
source_region: ::String,
|
113
|
+
?tag_specifications: Array[
|
114
|
+
{
|
115
|
+
resource_type: ("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")?,
|
116
|
+
tags: Array[
|
117
|
+
{
|
118
|
+
key: ::String?,
|
119
|
+
value: ::String?
|
120
|
+
},
|
121
|
+
]?
|
122
|
+
},
|
123
|
+
],
|
124
|
+
?completion_duration_minutes: ::Integer,
|
125
|
+
?dry_run: bool
|
126
|
+
) -> Types::CopySnapshotResult
|
127
|
+
| (?Hash[Symbol, untyped]) -> Types::CopySnapshotResult
|
128
|
+
|
129
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#create_tags-instance_method
|
130
|
+
def create_tags: (
|
131
|
+
?dry_run: bool,
|
132
|
+
tags: Array[
|
133
|
+
{
|
134
|
+
key: ::String?,
|
135
|
+
value: ::String?
|
136
|
+
},
|
137
|
+
]
|
138
|
+
) -> Tag::Collection
|
139
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
140
|
+
|
141
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#delete_tags-instance_method
|
142
|
+
def delete_tags: (
|
143
|
+
?dry_run: bool,
|
144
|
+
?tags: Array[
|
145
|
+
{
|
146
|
+
key: ::String?,
|
147
|
+
value: ::String?
|
148
|
+
},
|
149
|
+
]
|
150
|
+
) -> Tag::Collection
|
151
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
152
|
+
|
153
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#delete-instance_method
|
154
|
+
def delete: (
|
155
|
+
?dry_run: bool
|
156
|
+
) -> ::Aws::EmptyStructure
|
157
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
158
|
+
|
159
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#describe_attribute-instance_method
|
160
|
+
def describe_attribute: (
|
161
|
+
attribute: ("productCodes" | "createVolumePermission"),
|
162
|
+
?dry_run: bool
|
163
|
+
) -> Types::DescribeSnapshotAttributeResult
|
164
|
+
| (?Hash[Symbol, untyped]) -> Types::DescribeSnapshotAttributeResult
|
165
|
+
|
166
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#modify_attribute-instance_method
|
167
|
+
def modify_attribute: (
|
168
|
+
?attribute: ("productCodes" | "createVolumePermission"),
|
169
|
+
?create_volume_permission: {
|
170
|
+
add: Array[
|
171
|
+
{
|
172
|
+
user_id: ::String?,
|
173
|
+
group: ("all")?
|
174
|
+
},
|
175
|
+
]?,
|
176
|
+
remove: Array[
|
177
|
+
{
|
178
|
+
user_id: ::String?,
|
179
|
+
group: ("all")?
|
180
|
+
},
|
181
|
+
]?
|
182
|
+
},
|
183
|
+
?group_names: Array[::String],
|
184
|
+
?operation_type: ("add" | "remove"),
|
185
|
+
?user_ids: Array[::String],
|
186
|
+
?dry_run: bool
|
187
|
+
) -> ::Aws::EmptyStructure
|
188
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
189
|
+
|
190
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#reset_attribute-instance_method
|
191
|
+
def reset_attribute: (
|
192
|
+
attribute: ("productCodes" | "createVolumePermission"),
|
193
|
+
?dry_run: bool
|
194
|
+
) -> ::Aws::EmptyStructure
|
195
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
196
|
+
|
197
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume-instance_method
|
198
|
+
def volume: () -> Volume?
|
199
|
+
|
200
|
+
class Collection < ::Aws::Resources::Collection[Snapshot]
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|