aws-sdk-ec2 1.435.0 → 1.436.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +1 -1
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +102 -0
- data/sig/client.rbs +13220 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +213 -0
- data/sig/instance.rbs +557 -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 +232 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1009 -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 +308 -0
- data/sig/snapshot.rbs +188 -0
- data/sig/subnet.rbs +422 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +15047 -0
- data/sig/volume.rbs +203 -0
- data/sig/vpc.rbs +398 -0
- data/sig/vpc_address.rbs +98 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +664 -0
- metadata +32 -4
@@ -0,0 +1,84 @@
|
|
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/DhcpOptions.html
|
11
|
+
class DhcpOptions
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.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/DhcpOptions.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias dhcp_options_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#dhcp_configurations-instance_method
|
22
|
+
def dhcp_configurations: () -> ::Array[Types::DhcpConfiguration]
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#owner_id-instance_method
|
25
|
+
def owner_id: () -> ::String
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#tags-instance_method
|
28
|
+
def tags: () -> ::Array[Types::Tag]
|
29
|
+
|
30
|
+
def client: () -> Client
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#load-instance_method
|
33
|
+
def load: () -> self
|
34
|
+
alias reload load
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#data-instance_method
|
37
|
+
def data: () -> Types::DhcpOptions
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#data_loaded?-instance_method
|
40
|
+
def data_loaded?: () -> bool
|
41
|
+
|
42
|
+
|
43
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#associate_with_vpc-instance_method
|
44
|
+
def associate_with_vpc: (
|
45
|
+
vpc_id: ::String,
|
46
|
+
?dry_run: bool
|
47
|
+
) -> ::Aws::EmptyStructure
|
48
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
49
|
+
|
50
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#create_tags-instance_method
|
51
|
+
def create_tags: (
|
52
|
+
?dry_run: bool,
|
53
|
+
tags: Array[
|
54
|
+
{
|
55
|
+
key: ::String?,
|
56
|
+
value: ::String?
|
57
|
+
},
|
58
|
+
]
|
59
|
+
) -> Tag::Collection
|
60
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
61
|
+
|
62
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#delete_tags-instance_method
|
63
|
+
def delete_tags: (
|
64
|
+
?dry_run: bool,
|
65
|
+
?tags: Array[
|
66
|
+
{
|
67
|
+
key: ::String?,
|
68
|
+
value: ::String?
|
69
|
+
},
|
70
|
+
]
|
71
|
+
) -> Tag::Collection
|
72
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
73
|
+
|
74
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/DhcpOptions.html#delete-instance_method
|
75
|
+
def delete: (
|
76
|
+
?dry_run: bool
|
77
|
+
) -> ::Aws::EmptyStructure
|
78
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
79
|
+
|
80
|
+
class Collection < ::Aws::Resources::Collection[DhcpOptions]
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,16 @@
|
|
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
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/sig/image.rbs
ADDED
@@ -0,0 +1,213 @@
|
|
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/Image.html
|
11
|
+
class Image
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.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/Image.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias image_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#architecture-instance_method
|
22
|
+
def architecture: () -> ("i386" | "x86_64" | "arm64" | "x86_64_mac" | "arm64_mac")
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#creation_date-instance_method
|
25
|
+
def creation_date: () -> ::String
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#image_location-instance_method
|
28
|
+
def image_location: () -> ::String
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#image_type-instance_method
|
31
|
+
def image_type: () -> ("machine" | "kernel" | "ramdisk")
|
32
|
+
|
33
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#public-instance_method
|
34
|
+
def public: () -> bool
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#kernel_id-instance_method
|
37
|
+
def kernel_id: () -> ::String
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#owner_id-instance_method
|
40
|
+
def owner_id: () -> ::String
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#platform-instance_method
|
43
|
+
def platform: () -> ("Windows")
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#platform_details-instance_method
|
46
|
+
def platform_details: () -> ::String
|
47
|
+
|
48
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#usage_operation-instance_method
|
49
|
+
def usage_operation: () -> ::String
|
50
|
+
|
51
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#product_codes-instance_method
|
52
|
+
def product_codes: () -> ::Array[Types::ProductCode]
|
53
|
+
|
54
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#ramdisk_id-instance_method
|
55
|
+
def ramdisk_id: () -> ::String
|
56
|
+
|
57
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#state-instance_method
|
58
|
+
def state: () -> ("pending" | "available" | "invalid" | "deregistered" | "transient" | "failed" | "error" | "disabled")
|
59
|
+
|
60
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#block_device_mappings-instance_method
|
61
|
+
def block_device_mappings: () -> ::Array[Types::BlockDeviceMapping]
|
62
|
+
|
63
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#description-instance_method
|
64
|
+
def description: () -> ::String
|
65
|
+
|
66
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#ena_support-instance_method
|
67
|
+
def ena_support: () -> bool
|
68
|
+
|
69
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#hypervisor-instance_method
|
70
|
+
def hypervisor: () -> ("ovm" | "xen")
|
71
|
+
|
72
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#image_owner_alias-instance_method
|
73
|
+
def image_owner_alias: () -> ::String
|
74
|
+
|
75
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#name-instance_method
|
76
|
+
def name: () -> ::String
|
77
|
+
|
78
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#root_device_name-instance_method
|
79
|
+
def root_device_name: () -> ::String
|
80
|
+
|
81
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#root_device_type-instance_method
|
82
|
+
def root_device_type: () -> ("ebs" | "instance-store")
|
83
|
+
|
84
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#sriov_net_support-instance_method
|
85
|
+
def sriov_net_support: () -> ::String
|
86
|
+
|
87
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#state_reason-instance_method
|
88
|
+
def state_reason: () -> Types::StateReason
|
89
|
+
|
90
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#tags-instance_method
|
91
|
+
def tags: () -> ::Array[Types::Tag]
|
92
|
+
|
93
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#virtualization_type-instance_method
|
94
|
+
def virtualization_type: () -> ("hvm" | "paravirtual")
|
95
|
+
|
96
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#boot_mode-instance_method
|
97
|
+
def boot_mode: () -> ("legacy-bios" | "uefi" | "uefi-preferred")
|
98
|
+
|
99
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#tpm_support-instance_method
|
100
|
+
def tpm_support: () -> ("v2.0")
|
101
|
+
|
102
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#deprecation_time-instance_method
|
103
|
+
def deprecation_time: () -> ::String
|
104
|
+
|
105
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#imds_support-instance_method
|
106
|
+
def imds_support: () -> ("v2.0")
|
107
|
+
|
108
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#source_instance_id-instance_method
|
109
|
+
def source_instance_id: () -> ::String
|
110
|
+
|
111
|
+
def client: () -> Client
|
112
|
+
|
113
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#load-instance_method
|
114
|
+
def load: () -> self
|
115
|
+
alias reload load
|
116
|
+
|
117
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#data-instance_method
|
118
|
+
def data: () -> Types::Image
|
119
|
+
|
120
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#data_loaded?-instance_method
|
121
|
+
def data_loaded?: () -> bool
|
122
|
+
|
123
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#exists?-instance_method
|
124
|
+
def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
|
125
|
+
| (?Hash[Symbol, untyped]) -> bool
|
126
|
+
|
127
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#wait_until_exists-instance_method
|
128
|
+
def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Image
|
129
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Image
|
130
|
+
|
131
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#create_tags-instance_method
|
132
|
+
def create_tags: (
|
133
|
+
?dry_run: bool,
|
134
|
+
tags: Array[
|
135
|
+
{
|
136
|
+
key: ::String?,
|
137
|
+
value: ::String?
|
138
|
+
},
|
139
|
+
]
|
140
|
+
) -> Tag::Collection
|
141
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
142
|
+
|
143
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#delete_tags-instance_method
|
144
|
+
def delete_tags: (
|
145
|
+
?dry_run: bool,
|
146
|
+
?tags: Array[
|
147
|
+
{
|
148
|
+
key: ::String?,
|
149
|
+
value: ::String?
|
150
|
+
},
|
151
|
+
]
|
152
|
+
) -> Tag::Collection
|
153
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
154
|
+
|
155
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#deregister-instance_method
|
156
|
+
def deregister: (
|
157
|
+
?dry_run: bool
|
158
|
+
) -> ::Aws::EmptyStructure
|
159
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
160
|
+
|
161
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#describe_attribute-instance_method
|
162
|
+
def describe_attribute: (
|
163
|
+
attribute: ("description" | "kernel" | "ramdisk" | "launchPermission" | "productCodes" | "blockDeviceMapping" | "sriovNetSupport" | "bootMode" | "tpmSupport" | "uefiData" | "lastLaunchedTime" | "imdsSupport"),
|
164
|
+
?dry_run: bool
|
165
|
+
) -> Types::ImageAttribute
|
166
|
+
| (?Hash[Symbol, untyped]) -> Types::ImageAttribute
|
167
|
+
|
168
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#modify_attribute-instance_method
|
169
|
+
def modify_attribute: (
|
170
|
+
?attribute: ::String,
|
171
|
+
?description: untyped,
|
172
|
+
?launch_permission: {
|
173
|
+
add: Array[
|
174
|
+
{
|
175
|
+
group: ("all")?,
|
176
|
+
user_id: ::String?,
|
177
|
+
organization_arn: ::String?,
|
178
|
+
organizational_unit_arn: ::String?
|
179
|
+
},
|
180
|
+
]?,
|
181
|
+
remove: Array[
|
182
|
+
{
|
183
|
+
group: ("all")?,
|
184
|
+
user_id: ::String?,
|
185
|
+
organization_arn: ::String?,
|
186
|
+
organizational_unit_arn: ::String?
|
187
|
+
},
|
188
|
+
]?
|
189
|
+
},
|
190
|
+
?operation_type: ("add" | "remove"),
|
191
|
+
?product_codes: Array[::String],
|
192
|
+
?user_groups: Array[::String],
|
193
|
+
?user_ids: Array[::String],
|
194
|
+
?value: ::String,
|
195
|
+
?dry_run: bool,
|
196
|
+
?organization_arns: Array[::String],
|
197
|
+
?organizational_unit_arns: Array[::String],
|
198
|
+
?imds_support: untyped
|
199
|
+
) -> ::Aws::EmptyStructure
|
200
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
201
|
+
|
202
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Image.html#reset_attribute-instance_method
|
203
|
+
def reset_attribute: (
|
204
|
+
attribute: ("launchPermission"),
|
205
|
+
?dry_run: bool
|
206
|
+
) -> ::Aws::EmptyStructure
|
207
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
208
|
+
|
209
|
+
class Collection < ::Aws::Resources::Collection[Image]
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|