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