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/route.rbs
ADDED
@@ -0,0 +1,113 @@
|
|
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/Route.html
|
11
|
+
class Route
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#initialize-instance_method
|
13
|
+
def initialize: (String route_table_id, String destination_cidr_block, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (route_table_id: String, destination_cidr_block: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#route_table_id-instance_method
|
18
|
+
def route_table_id: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#destination_cidr_block-instance_method
|
21
|
+
def destination_cidr_block: () -> String
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#destination_ipv_6_cidr_block-instance_method
|
24
|
+
def destination_ipv_6_cidr_block: () -> ::String
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#destination_prefix_list_id-instance_method
|
27
|
+
def destination_prefix_list_id: () -> ::String
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#egress_only_internet_gateway_id-instance_method
|
30
|
+
def egress_only_internet_gateway_id: () -> ::String
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#gateway_id-instance_method
|
33
|
+
def gateway_id: () -> ::String
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#instance_id-instance_method
|
36
|
+
def instance_id: () -> ::String
|
37
|
+
|
38
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#instance_owner_id-instance_method
|
39
|
+
def instance_owner_id: () -> ::String
|
40
|
+
|
41
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#nat_gateway_id-instance_method
|
42
|
+
def nat_gateway_id: () -> ::String
|
43
|
+
|
44
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#transit_gateway_id-instance_method
|
45
|
+
def transit_gateway_id: () -> ::String
|
46
|
+
|
47
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#local_gateway_id-instance_method
|
48
|
+
def local_gateway_id: () -> ::String
|
49
|
+
|
50
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#carrier_gateway_id-instance_method
|
51
|
+
def carrier_gateway_id: () -> ::String
|
52
|
+
|
53
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#network_interface_id-instance_method
|
54
|
+
def network_interface_id: () -> ::String
|
55
|
+
|
56
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#origin-instance_method
|
57
|
+
def origin: () -> ("CreateRouteTable" | "CreateRoute" | "EnableVgwRoutePropagation")
|
58
|
+
|
59
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#state-instance_method
|
60
|
+
def state: () -> ("active" | "blackhole")
|
61
|
+
|
62
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#vpc_peering_connection_id-instance_method
|
63
|
+
def vpc_peering_connection_id: () -> ::String
|
64
|
+
|
65
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#core_network_arn-instance_method
|
66
|
+
def core_network_arn: () -> ::String
|
67
|
+
|
68
|
+
def client: () -> Client
|
69
|
+
|
70
|
+
|
71
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#data-instance_method
|
72
|
+
def data: () -> Types::Route
|
73
|
+
|
74
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#data_loaded?-instance_method
|
75
|
+
def data_loaded?: () -> bool
|
76
|
+
|
77
|
+
|
78
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#delete-instance_method
|
79
|
+
def delete: (
|
80
|
+
?destination_prefix_list_id: ::String,
|
81
|
+
?dry_run: bool,
|
82
|
+
?destination_ipv_6_cidr_block: ::String
|
83
|
+
) -> ::Aws::EmptyStructure
|
84
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
85
|
+
|
86
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#replace-instance_method
|
87
|
+
def replace: (
|
88
|
+
?destination_prefix_list_id: ::String,
|
89
|
+
?vpc_endpoint_id: ::String,
|
90
|
+
?local_target: bool,
|
91
|
+
?transit_gateway_id: ::String,
|
92
|
+
?local_gateway_id: ::String,
|
93
|
+
?carrier_gateway_id: ::String,
|
94
|
+
?core_network_arn: ::String,
|
95
|
+
?dry_run: bool,
|
96
|
+
?gateway_id: ::String,
|
97
|
+
?destination_ipv_6_cidr_block: ::String,
|
98
|
+
?egress_only_internet_gateway_id: ::String,
|
99
|
+
?instance_id: ::String,
|
100
|
+
?network_interface_id: ::String,
|
101
|
+
?vpc_peering_connection_id: ::String,
|
102
|
+
?nat_gateway_id: ::String
|
103
|
+
) -> ::Aws::EmptyStructure
|
104
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
105
|
+
|
106
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Route.html#route_table-instance_method
|
107
|
+
def route_table: () -> RouteTable
|
108
|
+
|
109
|
+
class Collection < ::Aws::Resources::Collection[Route]
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
data/sig/route_table.rbs
ADDED
@@ -0,0 +1,117 @@
|
|
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/RouteTable.html
|
11
|
+
class RouteTable
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.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/RouteTable.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias route_table_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#propagating_vgws-instance_method
|
22
|
+
def propagating_vgws: () -> ::Array[Types::PropagatingVgw]
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#tags-instance_method
|
25
|
+
def tags: () -> ::Array[Types::Tag]
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#vpc_id-instance_method
|
28
|
+
def vpc_id: () -> ::String
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#owner_id-instance_method
|
31
|
+
def owner_id: () -> ::String
|
32
|
+
|
33
|
+
def client: () -> Client
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#load-instance_method
|
36
|
+
def load: () -> self
|
37
|
+
alias reload load
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#data-instance_method
|
40
|
+
def data: () -> Types::RouteTable
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#data_loaded?-instance_method
|
43
|
+
def data_loaded?: () -> bool
|
44
|
+
|
45
|
+
|
46
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#associate_with_subnet-instance_method
|
47
|
+
def associate_with_subnet: (
|
48
|
+
?gateway_id: ::String,
|
49
|
+
?dry_run: bool,
|
50
|
+
?subnet_id: ::String
|
51
|
+
) -> RouteTableAssociation
|
52
|
+
| (?Hash[Symbol, untyped]) -> RouteTableAssociation
|
53
|
+
|
54
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#create_route-instance_method
|
55
|
+
def create_route: (
|
56
|
+
?destination_prefix_list_id: ::String,
|
57
|
+
?vpc_endpoint_id: ::String,
|
58
|
+
?transit_gateway_id: ::String,
|
59
|
+
?local_gateway_id: ::String,
|
60
|
+
?carrier_gateway_id: ::String,
|
61
|
+
?core_network_arn: ::String,
|
62
|
+
?dry_run: bool,
|
63
|
+
?destination_cidr_block: ::String,
|
64
|
+
?gateway_id: ::String,
|
65
|
+
?destination_ipv_6_cidr_block: ::String,
|
66
|
+
?egress_only_internet_gateway_id: ::String,
|
67
|
+
?instance_id: ::String,
|
68
|
+
?network_interface_id: ::String,
|
69
|
+
?vpc_peering_connection_id: ::String,
|
70
|
+
?nat_gateway_id: ::String
|
71
|
+
) -> Route
|
72
|
+
| (?Hash[Symbol, untyped]) -> Route
|
73
|
+
|
74
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#create_tags-instance_method
|
75
|
+
def create_tags: (
|
76
|
+
?dry_run: bool,
|
77
|
+
tags: Array[
|
78
|
+
{
|
79
|
+
key: ::String?,
|
80
|
+
value: ::String?
|
81
|
+
},
|
82
|
+
]
|
83
|
+
) -> Tag::Collection
|
84
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
85
|
+
|
86
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#delete_tags-instance_method
|
87
|
+
def delete_tags: (
|
88
|
+
?dry_run: bool,
|
89
|
+
?tags: Array[
|
90
|
+
{
|
91
|
+
key: ::String?,
|
92
|
+
value: ::String?
|
93
|
+
},
|
94
|
+
]
|
95
|
+
) -> Tag::Collection
|
96
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
97
|
+
|
98
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#delete-instance_method
|
99
|
+
def delete: (
|
100
|
+
?dry_run: bool
|
101
|
+
) -> ::Aws::EmptyStructure
|
102
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
103
|
+
|
104
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#associations-instance_method
|
105
|
+
def associations: () -> RouteTableAssociation::Collection
|
106
|
+
|
107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#routes-instance_method
|
108
|
+
def routes: () -> Route::Collection
|
109
|
+
|
110
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTable.html#vpc-instance_method
|
111
|
+
def vpc: () -> Vpc?
|
112
|
+
|
113
|
+
class Collection < ::Aws::Resources::Collection[RouteTable]
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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/RouteTableAssociation.html
|
11
|
+
class RouteTableAssociation
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.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/RouteTableAssociation.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias route_table_association_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#main-instance_method
|
22
|
+
def main: () -> bool
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#route_table_id-instance_method
|
25
|
+
def route_table_id: () -> ::String
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#subnet_id-instance_method
|
28
|
+
def subnet_id: () -> ::String
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#gateway_id-instance_method
|
31
|
+
def gateway_id: () -> ::String
|
32
|
+
|
33
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#association_state-instance_method
|
34
|
+
def association_state: () -> Types::RouteTableAssociationState
|
35
|
+
|
36
|
+
def client: () -> Client
|
37
|
+
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#data-instance_method
|
40
|
+
def data: () -> Types::RouteTableAssociation
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#data_loaded?-instance_method
|
43
|
+
def data_loaded?: () -> bool
|
44
|
+
|
45
|
+
|
46
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#delete-instance_method
|
47
|
+
def delete: (
|
48
|
+
?dry_run: bool
|
49
|
+
) -> ::Aws::EmptyStructure
|
50
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
51
|
+
|
52
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#replace_subnet-instance_method
|
53
|
+
def replace_subnet: (
|
54
|
+
?dry_run: bool,
|
55
|
+
route_table_id: ::String
|
56
|
+
) -> RouteTableAssociation
|
57
|
+
| (?Hash[Symbol, untyped]) -> RouteTableAssociation
|
58
|
+
|
59
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#route_table-instance_method
|
60
|
+
def route_table: () -> RouteTable?
|
61
|
+
|
62
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/RouteTableAssociation.html#subnet-instance_method
|
63
|
+
def subnet: () -> Subnet?
|
64
|
+
|
65
|
+
class Collection < ::Aws::Resources::Collection[RouteTableAssociation]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,311 @@
|
|
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/SecurityGroup.html
|
11
|
+
class SecurityGroup
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.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/SecurityGroup.html#id-instance_method
|
18
|
+
def id: () -> String
|
19
|
+
alias group_id id
|
20
|
+
|
21
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#ip_permissions_egress-instance_method
|
22
|
+
def ip_permissions_egress: () -> ::Array[Types::IpPermission]
|
23
|
+
|
24
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#tags-instance_method
|
25
|
+
def tags: () -> ::Array[Types::Tag]
|
26
|
+
|
27
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#vpc_id-instance_method
|
28
|
+
def vpc_id: () -> ::String
|
29
|
+
|
30
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#security_group_arn-instance_method
|
31
|
+
def security_group_arn: () -> ::String
|
32
|
+
|
33
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#owner_id-instance_method
|
34
|
+
def owner_id: () -> ::String
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#group_name-instance_method
|
37
|
+
def group_name: () -> ::String
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#description-instance_method
|
40
|
+
def description: () -> ::String
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#ip_permissions-instance_method
|
43
|
+
def ip_permissions: () -> ::Array[Types::IpPermission]
|
44
|
+
|
45
|
+
def client: () -> Client
|
46
|
+
|
47
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#load-instance_method
|
48
|
+
def load: () -> self
|
49
|
+
alias reload load
|
50
|
+
|
51
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#data-instance_method
|
52
|
+
def data: () -> Types::SecurityGroup
|
53
|
+
|
54
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#data_loaded?-instance_method
|
55
|
+
def data_loaded?: () -> bool
|
56
|
+
|
57
|
+
|
58
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#authorize_egress-instance_method
|
59
|
+
def authorize_egress: (
|
60
|
+
?tag_specifications: Array[
|
61
|
+
{
|
62
|
+
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")?,
|
63
|
+
tags: Array[
|
64
|
+
{
|
65
|
+
key: ::String?,
|
66
|
+
value: ::String?
|
67
|
+
},
|
68
|
+
]?
|
69
|
+
},
|
70
|
+
],
|
71
|
+
?dry_run: bool,
|
72
|
+
?source_security_group_name: ::String,
|
73
|
+
?source_security_group_owner_id: ::String,
|
74
|
+
?ip_protocol: ::String,
|
75
|
+
?from_port: ::Integer,
|
76
|
+
?to_port: ::Integer,
|
77
|
+
?cidr_ip: ::String,
|
78
|
+
?ip_permissions: Array[
|
79
|
+
{
|
80
|
+
ip_protocol: ::String?,
|
81
|
+
from_port: ::Integer?,
|
82
|
+
to_port: ::Integer?,
|
83
|
+
user_id_group_pairs: Array[
|
84
|
+
{
|
85
|
+
description: ::String?,
|
86
|
+
user_id: ::String?,
|
87
|
+
group_name: ::String?,
|
88
|
+
group_id: ::String?,
|
89
|
+
vpc_id: ::String?,
|
90
|
+
vpc_peering_connection_id: ::String?,
|
91
|
+
peering_status: ::String?
|
92
|
+
},
|
93
|
+
]?,
|
94
|
+
ip_ranges: Array[
|
95
|
+
{
|
96
|
+
description: ::String?,
|
97
|
+
cidr_ip: ::String?
|
98
|
+
},
|
99
|
+
]?,
|
100
|
+
ipv_6_ranges: Array[
|
101
|
+
{
|
102
|
+
description: ::String?,
|
103
|
+
cidr_ipv_6: ::String?
|
104
|
+
},
|
105
|
+
]?,
|
106
|
+
prefix_list_ids: Array[
|
107
|
+
{
|
108
|
+
description: ::String?,
|
109
|
+
prefix_list_id: ::String?
|
110
|
+
},
|
111
|
+
]?
|
112
|
+
},
|
113
|
+
]
|
114
|
+
) -> Types::AuthorizeSecurityGroupEgressResult
|
115
|
+
| (?Hash[Symbol, untyped]) -> Types::AuthorizeSecurityGroupEgressResult
|
116
|
+
|
117
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#authorize_ingress-instance_method
|
118
|
+
def authorize_ingress: (
|
119
|
+
?cidr_ip: ::String,
|
120
|
+
?from_port: ::Integer,
|
121
|
+
?group_name: ::String,
|
122
|
+
?ip_permissions: Array[
|
123
|
+
{
|
124
|
+
ip_protocol: ::String?,
|
125
|
+
from_port: ::Integer?,
|
126
|
+
to_port: ::Integer?,
|
127
|
+
user_id_group_pairs: Array[
|
128
|
+
{
|
129
|
+
description: ::String?,
|
130
|
+
user_id: ::String?,
|
131
|
+
group_name: ::String?,
|
132
|
+
group_id: ::String?,
|
133
|
+
vpc_id: ::String?,
|
134
|
+
vpc_peering_connection_id: ::String?,
|
135
|
+
peering_status: ::String?
|
136
|
+
},
|
137
|
+
]?,
|
138
|
+
ip_ranges: Array[
|
139
|
+
{
|
140
|
+
description: ::String?,
|
141
|
+
cidr_ip: ::String?
|
142
|
+
},
|
143
|
+
]?,
|
144
|
+
ipv_6_ranges: Array[
|
145
|
+
{
|
146
|
+
description: ::String?,
|
147
|
+
cidr_ipv_6: ::String?
|
148
|
+
},
|
149
|
+
]?,
|
150
|
+
prefix_list_ids: Array[
|
151
|
+
{
|
152
|
+
description: ::String?,
|
153
|
+
prefix_list_id: ::String?
|
154
|
+
},
|
155
|
+
]?
|
156
|
+
},
|
157
|
+
],
|
158
|
+
?ip_protocol: ::String,
|
159
|
+
?source_security_group_name: ::String,
|
160
|
+
?source_security_group_owner_id: ::String,
|
161
|
+
?to_port: ::Integer,
|
162
|
+
?tag_specifications: Array[
|
163
|
+
{
|
164
|
+
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")?,
|
165
|
+
tags: Array[
|
166
|
+
{
|
167
|
+
key: ::String?,
|
168
|
+
value: ::String?
|
169
|
+
},
|
170
|
+
]?
|
171
|
+
},
|
172
|
+
],
|
173
|
+
?dry_run: bool
|
174
|
+
) -> Types::AuthorizeSecurityGroupIngressResult
|
175
|
+
| (?Hash[Symbol, untyped]) -> Types::AuthorizeSecurityGroupIngressResult
|
176
|
+
|
177
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#create_tags-instance_method
|
178
|
+
def create_tags: (
|
179
|
+
?dry_run: bool,
|
180
|
+
tags: Array[
|
181
|
+
{
|
182
|
+
key: ::String?,
|
183
|
+
value: ::String?
|
184
|
+
},
|
185
|
+
]
|
186
|
+
) -> Tag::Collection
|
187
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
188
|
+
|
189
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#delete_tags-instance_method
|
190
|
+
def delete_tags: (
|
191
|
+
?dry_run: bool,
|
192
|
+
?tags: Array[
|
193
|
+
{
|
194
|
+
key: ::String?,
|
195
|
+
value: ::String?
|
196
|
+
},
|
197
|
+
]
|
198
|
+
) -> Tag::Collection
|
199
|
+
| (?Hash[Symbol, untyped]) -> Tag::Collection
|
200
|
+
|
201
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#delete-instance_method
|
202
|
+
def delete: (
|
203
|
+
?group_name: ::String,
|
204
|
+
?dry_run: bool
|
205
|
+
) -> Types::DeleteSecurityGroupResult
|
206
|
+
| (?Hash[Symbol, untyped]) -> Types::DeleteSecurityGroupResult
|
207
|
+
|
208
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#revoke_egress-instance_method
|
209
|
+
def revoke_egress: (
|
210
|
+
?security_group_rule_ids: Array[::String],
|
211
|
+
?dry_run: bool,
|
212
|
+
?source_security_group_name: ::String,
|
213
|
+
?source_security_group_owner_id: ::String,
|
214
|
+
?ip_protocol: ::String,
|
215
|
+
?from_port: ::Integer,
|
216
|
+
?to_port: ::Integer,
|
217
|
+
?cidr_ip: ::String,
|
218
|
+
?ip_permissions: Array[
|
219
|
+
{
|
220
|
+
ip_protocol: ::String?,
|
221
|
+
from_port: ::Integer?,
|
222
|
+
to_port: ::Integer?,
|
223
|
+
user_id_group_pairs: Array[
|
224
|
+
{
|
225
|
+
description: ::String?,
|
226
|
+
user_id: ::String?,
|
227
|
+
group_name: ::String?,
|
228
|
+
group_id: ::String?,
|
229
|
+
vpc_id: ::String?,
|
230
|
+
vpc_peering_connection_id: ::String?,
|
231
|
+
peering_status: ::String?
|
232
|
+
},
|
233
|
+
]?,
|
234
|
+
ip_ranges: Array[
|
235
|
+
{
|
236
|
+
description: ::String?,
|
237
|
+
cidr_ip: ::String?
|
238
|
+
},
|
239
|
+
]?,
|
240
|
+
ipv_6_ranges: Array[
|
241
|
+
{
|
242
|
+
description: ::String?,
|
243
|
+
cidr_ipv_6: ::String?
|
244
|
+
},
|
245
|
+
]?,
|
246
|
+
prefix_list_ids: Array[
|
247
|
+
{
|
248
|
+
description: ::String?,
|
249
|
+
prefix_list_id: ::String?
|
250
|
+
},
|
251
|
+
]?
|
252
|
+
},
|
253
|
+
]
|
254
|
+
) -> Types::RevokeSecurityGroupEgressResult
|
255
|
+
| (?Hash[Symbol, untyped]) -> Types::RevokeSecurityGroupEgressResult
|
256
|
+
|
257
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/SecurityGroup.html#revoke_ingress-instance_method
|
258
|
+
def revoke_ingress: (
|
259
|
+
?cidr_ip: ::String,
|
260
|
+
?from_port: ::Integer,
|
261
|
+
?group_name: ::String,
|
262
|
+
?ip_permissions: Array[
|
263
|
+
{
|
264
|
+
ip_protocol: ::String?,
|
265
|
+
from_port: ::Integer?,
|
266
|
+
to_port: ::Integer?,
|
267
|
+
user_id_group_pairs: Array[
|
268
|
+
{
|
269
|
+
description: ::String?,
|
270
|
+
user_id: ::String?,
|
271
|
+
group_name: ::String?,
|
272
|
+
group_id: ::String?,
|
273
|
+
vpc_id: ::String?,
|
274
|
+
vpc_peering_connection_id: ::String?,
|
275
|
+
peering_status: ::String?
|
276
|
+
},
|
277
|
+
]?,
|
278
|
+
ip_ranges: Array[
|
279
|
+
{
|
280
|
+
description: ::String?,
|
281
|
+
cidr_ip: ::String?
|
282
|
+
},
|
283
|
+
]?,
|
284
|
+
ipv_6_ranges: Array[
|
285
|
+
{
|
286
|
+
description: ::String?,
|
287
|
+
cidr_ipv_6: ::String?
|
288
|
+
},
|
289
|
+
]?,
|
290
|
+
prefix_list_ids: Array[
|
291
|
+
{
|
292
|
+
description: ::String?,
|
293
|
+
prefix_list_id: ::String?
|
294
|
+
},
|
295
|
+
]?
|
296
|
+
},
|
297
|
+
],
|
298
|
+
?ip_protocol: ::String,
|
299
|
+
?source_security_group_name: ::String,
|
300
|
+
?source_security_group_owner_id: ::String,
|
301
|
+
?to_port: ::Integer,
|
302
|
+
?security_group_rule_ids: Array[::String],
|
303
|
+
?dry_run: bool
|
304
|
+
) -> Types::RevokeSecurityGroupIngressResult
|
305
|
+
| (?Hash[Symbol, untyped]) -> Types::RevokeSecurityGroupIngressResult
|
306
|
+
|
307
|
+
class Collection < ::Aws::Resources::Collection[SecurityGroup]
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|