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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +465 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +26 -16
  5. data/lib/aws-sdk-ec2/client.rb +10867 -4155
  6. data/lib/aws-sdk-ec2/client_api.rb +2924 -510
  7. data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
  8. data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
  9. data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
  10. data/lib/aws-sdk-ec2/customizations.rb +0 -22
  11. data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
  12. data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
  13. data/lib/aws-sdk-ec2/endpoint_provider.rb +14 -18
  14. data/lib/aws-sdk-ec2/endpoints.rb +2 -8608
  15. data/lib/aws-sdk-ec2/image.rb +166 -95
  16. data/lib/aws-sdk-ec2/instance.rb +425 -356
  17. data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
  18. data/lib/aws-sdk-ec2/key_pair.rb +14 -14
  19. data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
  20. data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
  21. data/lib/aws-sdk-ec2/network_acl.rb +70 -70
  22. data/lib/aws-sdk-ec2/network_interface.rb +94 -78
  23. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/placement_group.rb +37 -19
  25. data/lib/aws-sdk-ec2/plugins/endpoints.rb +20 -1242
  26. data/lib/aws-sdk-ec2/resource.rb +944 -811
  27. data/lib/aws-sdk-ec2/route.rb +34 -34
  28. data/lib/aws-sdk-ec2/route_table.rb +44 -44
  29. data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
  30. data/lib/aws-sdk-ec2/security_group.rb +212 -201
  31. data/lib/aws-sdk-ec2/snapshot.rb +169 -105
  32. data/lib/aws-sdk-ec2/subnet.rb +391 -359
  33. data/lib/aws-sdk-ec2/tag.rb +7 -4
  34. data/lib/aws-sdk-ec2/types.rb +13807 -4774
  35. data/lib/aws-sdk-ec2/volume.rb +157 -119
  36. data/lib/aws-sdk-ec2/vpc.rb +278 -224
  37. data/lib/aws-sdk-ec2/vpc_address.rb +31 -21
  38. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  39. data/lib/aws-sdk-ec2.rb +40 -36
  40. data/sig/classic_address.rbs +105 -0
  41. data/sig/client.rbs +14622 -0
  42. data/sig/dhcp_options.rbs +84 -0
  43. data/sig/errors.rbs +16 -0
  44. data/sig/image.rbs +228 -0
  45. data/sig/instance.rbs +564 -0
  46. data/sig/internet_gateway.rbs +91 -0
  47. data/sig/key_pair.rbs +54 -0
  48. data/sig/key_pair_info.rbs +63 -0
  49. data/sig/nat_gateway.rbs +107 -0
  50. data/sig/network_acl.rbs +144 -0
  51. data/sig/network_interface.rbs +239 -0
  52. data/sig/network_interface_association.rbs +62 -0
  53. data/sig/placement_group.rbs +78 -0
  54. data/sig/resource.rbs +1042 -0
  55. data/sig/route.rbs +113 -0
  56. data/sig/route_table.rbs +117 -0
  57. data/sig/route_table_association.rbs +69 -0
  58. data/sig/security_group.rbs +311 -0
  59. data/sig/snapshot.rbs +204 -0
  60. data/sig/subnet.rbs +436 -0
  61. data/sig/tag.rbs +63 -0
  62. data/sig/types.rbs +16812 -0
  63. data/sig/volume.rbs +210 -0
  64. data/sig/vpc.rbs +404 -0
  65. data/sig/vpc_address.rbs +101 -0
  66. data/sig/vpc_peering_connection.rbs +84 -0
  67. data/sig/waiters.rbs +664 -0
  68. metadata +44 -18
data/sig/volume.rbs ADDED
@@ -0,0 +1,210 @@
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/Volume.html
11
+ class Volume
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.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/Volume.html#id-instance_method
18
+ def id: () -> String
19
+ alias volume_id id
20
+
21
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#outpost_arn-instance_method
22
+ def outpost_arn: () -> ::String
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#iops-instance_method
25
+ def iops: () -> ::Integer
26
+
27
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#tags-instance_method
28
+ def tags: () -> ::Array[Types::Tag]
29
+
30
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#volume_type-instance_method
31
+ def volume_type: () -> ("standard" | "io1" | "io2" | "gp2" | "sc1" | "st1" | "gp3")
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#fast_restored-instance_method
34
+ def fast_restored: () -> bool
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#multi_attach_enabled-instance_method
37
+ def multi_attach_enabled: () -> bool
38
+
39
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#throughput-instance_method
40
+ def throughput: () -> ::Integer
41
+
42
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#sse_type-instance_method
43
+ def sse_type: () -> ("sse-ebs" | "sse-kms" | "none")
44
+
45
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#operator-instance_method
46
+ def operator: () -> Types::OperatorResponse
47
+
48
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#volume_initialization_rate-instance_method
49
+ def volume_initialization_rate: () -> ::Integer
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#size-instance_method
52
+ def size: () -> ::Integer
53
+
54
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#snapshot_id-instance_method
55
+ def snapshot_id: () -> ::String
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#availability_zone-instance_method
58
+ def availability_zone: () -> ::String
59
+
60
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#state-instance_method
61
+ def state: () -> ("creating" | "available" | "in-use" | "deleting" | "deleted" | "error")
62
+
63
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#create_time-instance_method
64
+ def create_time: () -> ::Time
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#attachments-instance_method
67
+ def attachments: () -> ::Array[Types::VolumeAttachment]
68
+
69
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#encrypted-instance_method
70
+ def encrypted: () -> bool
71
+
72
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#kms_key_id-instance_method
73
+ def kms_key_id: () -> ::String
74
+
75
+ def client: () -> Client
76
+
77
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#load-instance_method
78
+ def load: () -> self
79
+ alias reload load
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#data-instance_method
82
+ def data: () -> Types::Volume
83
+
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#data_loaded?-instance_method
85
+ def data_loaded?: () -> bool
86
+
87
+
88
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#attach_to_instance-instance_method
89
+ def attach_to_instance: (
90
+ device: ::String,
91
+ instance_id: ::String,
92
+ ?dry_run: bool
93
+ ) -> Types::VolumeAttachment
94
+ | (?Hash[Symbol, untyped]) -> Types::VolumeAttachment
95
+
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#create_snapshot-instance_method
97
+ def create_snapshot: (
98
+ ?description: ::String,
99
+ ?outpost_arn: ::String,
100
+ ?tag_specifications: Array[
101
+ {
102
+ 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")?,
103
+ tags: Array[
104
+ {
105
+ key: ::String?,
106
+ value: ::String?
107
+ },
108
+ ]?
109
+ },
110
+ ],
111
+ ?location: ("regional" | "local"),
112
+ ?dry_run: bool
113
+ ) -> Snapshot
114
+ | (?Hash[Symbol, untyped]) -> Snapshot
115
+
116
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#create_tags-instance_method
117
+ def create_tags: (
118
+ ?dry_run: bool,
119
+ tags: Array[
120
+ {
121
+ key: ::String?,
122
+ value: ::String?
123
+ },
124
+ ]
125
+ ) -> Tag::Collection
126
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
127
+
128
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#delete_tags-instance_method
129
+ def delete_tags: (
130
+ ?dry_run: bool,
131
+ ?tags: Array[
132
+ {
133
+ key: ::String?,
134
+ value: ::String?
135
+ },
136
+ ]
137
+ ) -> Tag::Collection
138
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
139
+
140
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#delete-instance_method
141
+ def delete: (
142
+ ?dry_run: bool
143
+ ) -> ::Aws::EmptyStructure
144
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
145
+
146
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#describe_attribute-instance_method
147
+ def describe_attribute: (
148
+ attribute: ("autoEnableIO" | "productCodes"),
149
+ ?dry_run: bool
150
+ ) -> Types::DescribeVolumeAttributeResult
151
+ | (?Hash[Symbol, untyped]) -> Types::DescribeVolumeAttributeResult
152
+
153
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#describe_status-instance_method
154
+ def describe_status: (
155
+ ?max_results: ::Integer,
156
+ ?next_token: ::String,
157
+ ?dry_run: bool,
158
+ ?filters: Array[
159
+ {
160
+ name: ::String?,
161
+ values: Array[::String]?
162
+ },
163
+ ]
164
+ ) -> Types::DescribeVolumeStatusResult
165
+ | (?Hash[Symbol, untyped]) -> Types::DescribeVolumeStatusResult
166
+
167
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#detach_from_instance-instance_method
168
+ def detach_from_instance: (
169
+ ?device: ::String,
170
+ ?force: bool,
171
+ ?instance_id: ::String,
172
+ ?dry_run: bool
173
+ ) -> Types::VolumeAttachment
174
+ | (?Hash[Symbol, untyped]) -> Types::VolumeAttachment
175
+
176
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#enable_io-instance_method
177
+ def enable_io: (
178
+ ?dry_run: bool
179
+ ) -> ::Aws::EmptyStructure
180
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
181
+
182
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#modify_attribute-instance_method
183
+ def modify_attribute: (
184
+ ?auto_enable_io: {
185
+ value: bool?
186
+ },
187
+ ?dry_run: bool
188
+ ) -> ::Aws::EmptyStructure
189
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
190
+
191
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Volume.html#snapshots-instance_method
192
+ def snapshots: (
193
+ ?owner_ids: Array[::String],
194
+ ?restorable_by_user_ids: Array[::String],
195
+ ?snapshot_ids: Array[::String],
196
+ ?dry_run: bool,
197
+ ?filters: Array[
198
+ {
199
+ name: ::String?,
200
+ values: Array[::String]?
201
+ },
202
+ ]
203
+ ) -> Snapshot::Collection
204
+ | (?Hash[Symbol, untyped]) -> Snapshot::Collection
205
+
206
+ class Collection < ::Aws::Resources::Collection[Volume]
207
+ end
208
+ end
209
+ end
210
+ end
data/sig/vpc.rbs ADDED
@@ -0,0 +1,404 @@
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/Vpc.html
11
+ class Vpc
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.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/Vpc.html#id-instance_method
18
+ def id: () -> String
19
+ alias vpc_id id
20
+
21
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#owner_id-instance_method
22
+ def owner_id: () -> ::String
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#instance_tenancy-instance_method
25
+ def instance_tenancy: () -> ("default" | "dedicated" | "host")
26
+
27
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#ipv_6_cidr_block_association_set-instance_method
28
+ def ipv_6_cidr_block_association_set: () -> ::Array[Types::VpcIpv6CidrBlockAssociation]
29
+
30
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#cidr_block_association_set-instance_method
31
+ def cidr_block_association_set: () -> ::Array[Types::VpcCidrBlockAssociation]
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#is_default-instance_method
34
+ def is_default: () -> bool
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#encryption_control-instance_method
37
+ def encryption_control: () -> Types::VpcEncryptionControl
38
+
39
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#tags-instance_method
40
+ def tags: () -> ::Array[Types::Tag]
41
+
42
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#block_public_access_states-instance_method
43
+ def block_public_access_states: () -> Types::BlockPublicAccessStates
44
+
45
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#state-instance_method
46
+ def state: () -> ("pending" | "available")
47
+
48
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#cidr_block-instance_method
49
+ def cidr_block: () -> ::String
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#dhcp_options_id-instance_method
52
+ def dhcp_options_id: () -> ::String
53
+
54
+ def client: () -> Client
55
+
56
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#load-instance_method
57
+ def load: () -> self
58
+ alias reload load
59
+
60
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#data-instance_method
61
+ def data: () -> Types::Vpc
62
+
63
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#data_loaded?-instance_method
64
+ def data_loaded?: () -> bool
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#exists?-instance_method
67
+ def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
68
+ | (?Hash[Symbol, untyped]) -> bool
69
+
70
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#wait_until_available-instance_method
71
+ def wait_until_available: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Vpc
72
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Vpc
73
+
74
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#wait_until_exists-instance_method
75
+ def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Vpc
76
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Vpc
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#associate_dhcp_options-instance_method
79
+ def associate_dhcp_options: (
80
+ dhcp_options_id: ::String,
81
+ ?dry_run: bool
82
+ ) -> ::Aws::EmptyStructure
83
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
84
+
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#attach_classic_link_instance-instance_method
86
+ def attach_classic_link_instance: (
87
+ ?dry_run: bool,
88
+ instance_id: ::String,
89
+ groups: Array[::String]
90
+ ) -> Types::AttachClassicLinkVpcResult
91
+ | (?Hash[Symbol, untyped]) -> Types::AttachClassicLinkVpcResult
92
+
93
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#attach_internet_gateway-instance_method
94
+ def attach_internet_gateway: (
95
+ ?dry_run: bool,
96
+ internet_gateway_id: ::String
97
+ ) -> ::Aws::EmptyStructure
98
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
99
+
100
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#create_network_acl-instance_method
101
+ def create_network_acl: (
102
+ ?tag_specifications: Array[
103
+ {
104
+ 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")?,
105
+ tags: Array[
106
+ {
107
+ key: ::String?,
108
+ value: ::String?
109
+ },
110
+ ]?
111
+ },
112
+ ],
113
+ ?client_token: ::String,
114
+ ?dry_run: bool
115
+ ) -> NetworkAcl
116
+ | (?Hash[Symbol, untyped]) -> NetworkAcl
117
+
118
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#create_route_table-instance_method
119
+ def create_route_table: (
120
+ ?tag_specifications: Array[
121
+ {
122
+ 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")?,
123
+ tags: Array[
124
+ {
125
+ key: ::String?,
126
+ value: ::String?
127
+ },
128
+ ]?
129
+ },
130
+ ],
131
+ ?client_token: ::String,
132
+ ?dry_run: bool
133
+ ) -> RouteTable
134
+ | (?Hash[Symbol, untyped]) -> RouteTable
135
+
136
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#create_security_group-instance_method
137
+ def create_security_group: (
138
+ description: ::String,
139
+ group_name: ::String,
140
+ ?tag_specifications: Array[
141
+ {
142
+ 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")?,
143
+ tags: Array[
144
+ {
145
+ key: ::String?,
146
+ value: ::String?
147
+ },
148
+ ]?
149
+ },
150
+ ],
151
+ ?dry_run: bool
152
+ ) -> SecurityGroup
153
+ | (?Hash[Symbol, untyped]) -> SecurityGroup
154
+
155
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#create_subnet-instance_method
156
+ def create_subnet: (
157
+ ?tag_specifications: Array[
158
+ {
159
+ 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")?,
160
+ tags: Array[
161
+ {
162
+ key: ::String?,
163
+ value: ::String?
164
+ },
165
+ ]?
166
+ },
167
+ ],
168
+ ?availability_zone: ::String,
169
+ ?availability_zone_id: ::String,
170
+ ?cidr_block: ::String,
171
+ ?ipv_6_cidr_block: ::String,
172
+ ?outpost_arn: ::String,
173
+ ?ipv_6_native: bool,
174
+ ?ipv_4_ipam_pool_id: ::String,
175
+ ?ipv_4_netmask_length: ::Integer,
176
+ ?ipv_6_ipam_pool_id: ::String,
177
+ ?ipv_6_netmask_length: ::Integer,
178
+ ?dry_run: bool
179
+ ) -> Subnet
180
+ | (?Hash[Symbol, untyped]) -> Subnet
181
+
182
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#create_tags-instance_method
183
+ def create_tags: (
184
+ ?dry_run: bool,
185
+ tags: Array[
186
+ {
187
+ key: ::String?,
188
+ value: ::String?
189
+ },
190
+ ]
191
+ ) -> Tag::Collection
192
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
193
+
194
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#delete_tags-instance_method
195
+ def delete_tags: (
196
+ ?dry_run: bool,
197
+ ?tags: Array[
198
+ {
199
+ key: ::String?,
200
+ value: ::String?
201
+ },
202
+ ]
203
+ ) -> Tag::Collection
204
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
205
+
206
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#delete-instance_method
207
+ def delete: (
208
+ ?dry_run: bool
209
+ ) -> ::Aws::EmptyStructure
210
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
211
+
212
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#describe_attribute-instance_method
213
+ def describe_attribute: (
214
+ attribute: ("enableDnsSupport" | "enableDnsHostnames" | "enableNetworkAddressUsageMetrics"),
215
+ ?dry_run: bool
216
+ ) -> Types::DescribeVpcAttributeResult
217
+ | (?Hash[Symbol, untyped]) -> Types::DescribeVpcAttributeResult
218
+
219
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#detach_classic_link_instance-instance_method
220
+ def detach_classic_link_instance: (
221
+ ?dry_run: bool,
222
+ instance_id: ::String
223
+ ) -> Types::DetachClassicLinkVpcResult
224
+ | (?Hash[Symbol, untyped]) -> Types::DetachClassicLinkVpcResult
225
+
226
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#detach_internet_gateway-instance_method
227
+ def detach_internet_gateway: (
228
+ ?dry_run: bool,
229
+ internet_gateway_id: ::String
230
+ ) -> ::Aws::EmptyStructure
231
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
232
+
233
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#disable_classic_link-instance_method
234
+ def disable_classic_link: (
235
+ ?dry_run: bool
236
+ ) -> Types::DisableVpcClassicLinkResult
237
+ | (?Hash[Symbol, untyped]) -> Types::DisableVpcClassicLinkResult
238
+
239
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#enable_classic_link-instance_method
240
+ def enable_classic_link: (
241
+ ?dry_run: bool
242
+ ) -> Types::EnableVpcClassicLinkResult
243
+ | (?Hash[Symbol, untyped]) -> Types::EnableVpcClassicLinkResult
244
+
245
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#modify_attribute-instance_method
246
+ def modify_attribute: (
247
+ ?enable_dns_hostnames: {
248
+ value: bool?
249
+ },
250
+ ?enable_dns_support: {
251
+ value: bool?
252
+ },
253
+ ?enable_network_address_usage_metrics: {
254
+ value: bool?
255
+ }
256
+ ) -> ::Aws::EmptyStructure
257
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
258
+
259
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#request_vpc_peering_connection-instance_method
260
+ def request_vpc_peering_connection: (
261
+ ?peer_region: ::String,
262
+ ?tag_specifications: Array[
263
+ {
264
+ 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")?,
265
+ tags: Array[
266
+ {
267
+ key: ::String?,
268
+ value: ::String?
269
+ },
270
+ ]?
271
+ },
272
+ ],
273
+ ?dry_run: bool,
274
+ ?peer_vpc_id: ::String,
275
+ ?peer_owner_id: ::String
276
+ ) -> VpcPeeringConnection
277
+ | (?Hash[Symbol, untyped]) -> VpcPeeringConnection
278
+
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#accepted_vpc_peering_connections-instance_method
280
+ def accepted_vpc_peering_connections: (
281
+ ?dry_run: bool,
282
+ ?vpc_peering_connection_ids: Array[::String],
283
+ ?filters: Array[
284
+ {
285
+ name: ::String?,
286
+ values: Array[::String]?
287
+ },
288
+ ]
289
+ ) -> VpcPeeringConnection::Collection
290
+ | (?Hash[Symbol, untyped]) -> VpcPeeringConnection::Collection
291
+
292
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#dhcp_options-instance_method
293
+ def dhcp_options: () -> DhcpOptions?
294
+
295
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#instances-instance_method
296
+ def instances: (
297
+ ?instance_ids: Array[::String],
298
+ ?dry_run: bool,
299
+ ?filters: Array[
300
+ {
301
+ name: ::String?,
302
+ values: Array[::String]?
303
+ },
304
+ ]
305
+ ) -> Instance::Collection
306
+ | (?Hash[Symbol, untyped]) -> Instance::Collection
307
+
308
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#internet_gateways-instance_method
309
+ def internet_gateways: (
310
+ ?dry_run: bool,
311
+ ?internet_gateway_ids: Array[::String],
312
+ ?filters: Array[
313
+ {
314
+ name: ::String?,
315
+ values: Array[::String]?
316
+ },
317
+ ]
318
+ ) -> InternetGateway::Collection
319
+ | (?Hash[Symbol, untyped]) -> InternetGateway::Collection
320
+
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#network_acls-instance_method
322
+ def network_acls: (
323
+ ?dry_run: bool,
324
+ ?network_acl_ids: Array[::String],
325
+ ?filters: Array[
326
+ {
327
+ name: ::String?,
328
+ values: Array[::String]?
329
+ },
330
+ ]
331
+ ) -> NetworkAcl::Collection
332
+ | (?Hash[Symbol, untyped]) -> NetworkAcl::Collection
333
+
334
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#network_interfaces-instance_method
335
+ def network_interfaces: (
336
+ ?dry_run: bool,
337
+ ?network_interface_ids: Array[::String],
338
+ ?filters: Array[
339
+ {
340
+ name: ::String?,
341
+ values: Array[::String]?
342
+ },
343
+ ]
344
+ ) -> NetworkInterface::Collection
345
+ | (?Hash[Symbol, untyped]) -> NetworkInterface::Collection
346
+
347
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#requested_vpc_peering_connections-instance_method
348
+ def requested_vpc_peering_connections: (
349
+ ?dry_run: bool,
350
+ ?vpc_peering_connection_ids: Array[::String],
351
+ ?filters: Array[
352
+ {
353
+ name: ::String?,
354
+ values: Array[::String]?
355
+ },
356
+ ]
357
+ ) -> VpcPeeringConnection::Collection
358
+ | (?Hash[Symbol, untyped]) -> VpcPeeringConnection::Collection
359
+
360
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#route_tables-instance_method
361
+ def route_tables: (
362
+ ?dry_run: bool,
363
+ ?route_table_ids: Array[::String],
364
+ ?filters: Array[
365
+ {
366
+ name: ::String?,
367
+ values: Array[::String]?
368
+ },
369
+ ]
370
+ ) -> RouteTable::Collection
371
+ | (?Hash[Symbol, untyped]) -> RouteTable::Collection
372
+
373
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#security_groups-instance_method
374
+ def security_groups: (
375
+ ?group_ids: Array[::String],
376
+ ?group_names: Array[::String],
377
+ ?dry_run: bool,
378
+ ?filters: Array[
379
+ {
380
+ name: ::String?,
381
+ values: Array[::String]?
382
+ },
383
+ ]
384
+ ) -> SecurityGroup::Collection
385
+ | (?Hash[Symbol, untyped]) -> SecurityGroup::Collection
386
+
387
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Vpc.html#subnets-instance_method
388
+ def subnets: (
389
+ ?filters: Array[
390
+ {
391
+ name: ::String?,
392
+ values: Array[::String]?
393
+ },
394
+ ],
395
+ ?subnet_ids: Array[::String],
396
+ ?dry_run: bool
397
+ ) -> Subnet::Collection
398
+ | (?Hash[Symbol, untyped]) -> Subnet::Collection
399
+
400
+ class Collection < ::Aws::Resources::Collection[Vpc]
401
+ end
402
+ end
403
+ end
404
+ end