aws-sdk-ec2 1.146.0 → 1.147.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/lib/aws-sdk-ec2.rb +7 -4
- data/lib/aws-sdk-ec2/classic_address.rb +1 -0
- data/lib/aws-sdk-ec2/client.rb +64 -19
- data/lib/aws-sdk-ec2/client_api.rb +6 -0
- data/lib/aws-sdk-ec2/dhcp_options.rb +1 -0
- data/lib/aws-sdk-ec2/errors.rb +26 -0
- data/lib/aws-sdk-ec2/image.rb +1 -0
- data/lib/aws-sdk-ec2/instance.rb +1 -0
- data/lib/aws-sdk-ec2/internet_gateway.rb +1 -0
- data/lib/aws-sdk-ec2/key_pair.rb +1 -0
- data/lib/aws-sdk-ec2/key_pair_info.rb +1 -0
- data/lib/aws-sdk-ec2/nat_gateway.rb +1 -0
- data/lib/aws-sdk-ec2/network_acl.rb +1 -0
- data/lib/aws-sdk-ec2/network_interface.rb +1 -0
- data/lib/aws-sdk-ec2/network_interface_association.rb +1 -0
- data/lib/aws-sdk-ec2/placement_group.rb +1 -0
- data/lib/aws-sdk-ec2/resource.rb +7 -0
- data/lib/aws-sdk-ec2/route.rb +1 -0
- data/lib/aws-sdk-ec2/route_table.rb +1 -0
- data/lib/aws-sdk-ec2/route_table_association.rb +1 -0
- data/lib/aws-sdk-ec2/security_group.rb +1 -0
- data/lib/aws-sdk-ec2/snapshot.rb +1 -0
- data/lib/aws-sdk-ec2/subnet.rb +1 -0
- data/lib/aws-sdk-ec2/tag.rb +1 -0
- data/lib/aws-sdk-ec2/types.rb +61 -10
- data/lib/aws-sdk-ec2/volume.rb +1 -0
- data/lib/aws-sdk-ec2/vpc.rb +1 -0
- data/lib/aws-sdk-ec2/vpc_address.rb +1 -0
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ce3e14e0d19ef3d0bd434b83de70b210bac76a7
|
|
4
|
+
data.tar.gz: 8f0294ea7f8988e0a176643a0a5e7a41a60aab0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42ec82d6aab1dff57c0891ccb1f50a7e45958b4569a072ad7c54b81ec89a8605974a069755b17ef3d9a49240a4c8b55079c3e5971150a2e4f974c87a476a4f86
|
|
7
|
+
data.tar.gz: 34a01ab6a76343197521e17e3da1c5a418ae152eb27f699c0fe1d5f439ab99020608b3320f813441a6655f3e1a418adb86babb15a38ca4a63750c2b02597eb2e
|
data/lib/aws-sdk-ec2.rb
CHANGED
|
@@ -48,17 +48,20 @@ require_relative 'aws-sdk-ec2/customizations'
|
|
|
48
48
|
# methods each accept a hash of request parameters and return a response
|
|
49
49
|
# structure.
|
|
50
50
|
#
|
|
51
|
+
# ec2 = Aws::EC2::Client.new
|
|
52
|
+
# resp = ec2.accept_reserved_instances_exchange_quote(params)
|
|
53
|
+
#
|
|
51
54
|
# See {Client} for more information.
|
|
52
55
|
#
|
|
53
56
|
# # Errors
|
|
54
57
|
#
|
|
55
|
-
# Errors returned from Amazon Elastic Compute Cloud
|
|
56
|
-
# extend {Errors::ServiceError}.
|
|
58
|
+
# Errors returned from Amazon Elastic Compute Cloud are defined in the
|
|
59
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
|
57
60
|
#
|
|
58
61
|
# begin
|
|
59
62
|
# # do stuff
|
|
60
63
|
# rescue Aws::EC2::Errors::ServiceError
|
|
61
|
-
# # rescues all
|
|
64
|
+
# # rescues all Amazon Elastic Compute Cloud API errors
|
|
62
65
|
# end
|
|
63
66
|
#
|
|
64
67
|
# See {Errors} for more information.
|
|
@@ -66,6 +69,6 @@ require_relative 'aws-sdk-ec2/customizations'
|
|
|
66
69
|
# @service
|
|
67
70
|
module Aws::EC2
|
|
68
71
|
|
|
69
|
-
GEM_VERSION = '1.
|
|
72
|
+
GEM_VERSION = '1.147.0'
|
|
70
73
|
|
|
71
74
|
end
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
|
@@ -32,6 +32,16 @@ require 'aws-sdk-ec2/plugins/region_validation.rb'
|
|
|
32
32
|
Aws::Plugins::GlobalConfiguration.add_identifier(:ec2)
|
|
33
33
|
|
|
34
34
|
module Aws::EC2
|
|
35
|
+
# An API client for EC2. To construct a client, you need to configure a +:region+ and +:credentials+.
|
|
36
|
+
# client = Aws::EC2::Client.new(
|
|
37
|
+
# region: region_name,
|
|
38
|
+
# credentials: credentials,
|
|
39
|
+
# # ...
|
|
40
|
+
# )
|
|
41
|
+
# For details on configuring region and credentials see
|
|
42
|
+
# the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
|
|
43
|
+
#
|
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
|
35
45
|
class Client < Seahorse::Client::Base
|
|
36
46
|
|
|
37
47
|
include Aws::ClientStubs
|
|
@@ -213,16 +223,16 @@ module Aws::EC2
|
|
|
213
223
|
# requests through. Formatted like 'http://proxy.com:123'.
|
|
214
224
|
#
|
|
215
225
|
# @option options [Float] :http_open_timeout (15) The number of
|
|
216
|
-
# seconds to wait when opening a HTTP session before
|
|
226
|
+
# seconds to wait when opening a HTTP session before raising a
|
|
217
227
|
# `Timeout::Error`.
|
|
218
228
|
#
|
|
219
229
|
# @option options [Integer] :http_read_timeout (60) The default
|
|
220
230
|
# number of seconds to wait for response data. This value can
|
|
221
231
|
# safely be set
|
|
222
|
-
# per-request on the session
|
|
232
|
+
# per-request on the session yielded by {#session_for}.
|
|
223
233
|
#
|
|
224
234
|
# @option options [Float] :http_idle_timeout (5) The number of
|
|
225
|
-
# seconds a connection is allowed to sit
|
|
235
|
+
# seconds a connection is allowed to sit idle before it is
|
|
226
236
|
# considered stale. Stale connections are closed and removed
|
|
227
237
|
# from the pool before making a request.
|
|
228
238
|
#
|
|
@@ -231,7 +241,7 @@ module Aws::EC2
|
|
|
231
241
|
# request body. This option has no effect unless the request has
|
|
232
242
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
|
233
243
|
# disables this behaviour. This value can safely be set per
|
|
234
|
-
# request on the session
|
|
244
|
+
# request on the session yielded by {#session_for}.
|
|
235
245
|
#
|
|
236
246
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
|
237
247
|
# HTTP debug output will be sent to the `:logger`.
|
|
@@ -1187,6 +1197,12 @@ module Aws::EC2
|
|
|
1187
1197
|
# subnet in each Availability Zone. We recommend that you associate at
|
|
1188
1198
|
# least two subnets to provide Availability Zone redundancy.
|
|
1189
1199
|
#
|
|
1200
|
+
# If you specified a VPC when you created the Client VPN endpoint or if
|
|
1201
|
+
# you have previous subnet associations, the specified subnet must be in
|
|
1202
|
+
# the same VPC. To specify a subnet that's in a different VPC, you must
|
|
1203
|
+
# first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and
|
|
1204
|
+
# change the VPC that's associated with it.
|
|
1205
|
+
#
|
|
1190
1206
|
# @option params [required, String] :client_vpn_endpoint_id
|
|
1191
1207
|
# The ID of the Client VPN endpoint.
|
|
1192
1208
|
#
|
|
@@ -3718,6 +3734,16 @@ module Aws::EC2
|
|
|
3718
3734
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
|
3719
3735
|
# The tags to apply to the Client VPN endpoint during creation.
|
|
3720
3736
|
#
|
|
3737
|
+
# @option params [Array<String>] :security_group_ids
|
|
3738
|
+
# The IDs of one or more security groups to apply to the target network.
|
|
3739
|
+
# You must also specify the ID of the VPC that contains the security
|
|
3740
|
+
# groups.
|
|
3741
|
+
#
|
|
3742
|
+
# @option params [String] :vpc_id
|
|
3743
|
+
# The ID of the VPC to associate with the Client VPN endpoint. If no
|
|
3744
|
+
# security group IDs are specified in the request, the default security
|
|
3745
|
+
# group for the VPC is applied.
|
|
3746
|
+
#
|
|
3721
3747
|
# @return [Types::CreateClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3722
3748
|
#
|
|
3723
3749
|
# * {Types::CreateClientVpnEndpointResult#client_vpn_endpoint_id #client_vpn_endpoint_id} => String
|
|
@@ -3763,6 +3789,8 @@ module Aws::EC2
|
|
|
3763
3789
|
# ],
|
|
3764
3790
|
# },
|
|
3765
3791
|
# ],
|
|
3792
|
+
# security_group_ids: ["String"],
|
|
3793
|
+
# vpc_id: "VpcId",
|
|
3766
3794
|
# })
|
|
3767
3795
|
#
|
|
3768
3796
|
# @example Response structure
|
|
@@ -11495,11 +11523,10 @@ module Aws::EC2
|
|
|
11495
11523
|
req.send_request(options)
|
|
11496
11524
|
end
|
|
11497
11525
|
|
|
11498
|
-
# Deletes the specified virtual private gateway.
|
|
11499
|
-
#
|
|
11500
|
-
#
|
|
11501
|
-
# the
|
|
11502
|
-
# connection between your VPC and your network.
|
|
11526
|
+
# Deletes the specified virtual private gateway. You must first detach
|
|
11527
|
+
# the virtual private gateway from the VPC. Note that you don't need to
|
|
11528
|
+
# delete the virtual private gateway if you plan to delete and recreate
|
|
11529
|
+
# the VPN connection between your VPC and your network.
|
|
11503
11530
|
#
|
|
11504
11531
|
# @option params [required, String] :vpn_gateway_id
|
|
11505
11532
|
# The ID of the virtual private gateway.
|
|
@@ -12782,6 +12809,9 @@ module Aws::EC2
|
|
|
12782
12809
|
# resp.client_vpn_endpoints[0].tags #=> Array
|
|
12783
12810
|
# resp.client_vpn_endpoints[0].tags[0].key #=> String
|
|
12784
12811
|
# resp.client_vpn_endpoints[0].tags[0].value #=> String
|
|
12812
|
+
# resp.client_vpn_endpoints[0].security_group_ids #=> Array
|
|
12813
|
+
# resp.client_vpn_endpoints[0].security_group_ids[0] #=> String
|
|
12814
|
+
# resp.client_vpn_endpoints[0].vpc_id #=> String
|
|
12785
12815
|
# resp.next_token #=> String
|
|
12786
12816
|
#
|
|
12787
12817
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnEndpoints AWS API Documentation
|
|
@@ -21690,9 +21720,10 @@ module Aws::EC2
|
|
|
21690
21720
|
# `dedicated-host` \| `dhcp-options` \| `elastic-ip` \| `fleet` \|
|
|
21691
21721
|
# `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
|
|
21692
21722
|
# `internet-gateway` \| `launch-template` \| `natgateway` \|
|
|
21693
|
-
# `network-acl` \| `network-interface` \| `
|
|
21694
|
-
# `
|
|
21695
|
-
# `spot-instances-request` \| `subnet` \| `volume` \|
|
|
21723
|
+
# `network-acl` \| `network-interface` \| `placement-group` \|
|
|
21724
|
+
# `reserved-instances` \| `route-table` \| `security-group` \|
|
|
21725
|
+
# `snapshot` \| `spot-instances-request` \| `subnet` \| `volume` \|
|
|
21726
|
+
# `vpc` \| `vpc-endpoint` \| `vpc-endpoint-service` \|
|
|
21696
21727
|
# `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
|
|
21697
21728
|
#
|
|
21698
21729
|
# * `tag`\:<key> - The key/value combination of the tag. For
|
|
@@ -24862,6 +24893,10 @@ module Aws::EC2
|
|
|
24862
24893
|
# The ID of the route table.
|
|
24863
24894
|
#
|
|
24864
24895
|
# @option params [Boolean] :dry_run
|
|
24896
|
+
# Checks whether you have the required permissions for the action,
|
|
24897
|
+
# without actually making the request, and provides an error response.
|
|
24898
|
+
# If you have the required permissions, the error response is
|
|
24899
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
24865
24900
|
#
|
|
24866
24901
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
24867
24902
|
#
|
|
@@ -25544,6 +25579,10 @@ module Aws::EC2
|
|
|
25544
25579
|
# the same VPC that the virtual private gateway is attached to.
|
|
25545
25580
|
#
|
|
25546
25581
|
# @option params [Boolean] :dry_run
|
|
25582
|
+
# Checks whether you have the required permissions for the action,
|
|
25583
|
+
# without actually making the request, and provides an error response.
|
|
25584
|
+
# If you have the required permissions, the error response is
|
|
25585
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
25547
25586
|
#
|
|
25548
25587
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
25549
25588
|
#
|
|
@@ -27768,9 +27807,7 @@ module Aws::EC2
|
|
|
27768
27807
|
req.send_request(options)
|
|
27769
27808
|
end
|
|
27770
27809
|
|
|
27771
|
-
# Modifies the specified Client VPN endpoint.
|
|
27772
|
-
# endpoint's server certificate information, client connection logging
|
|
27773
|
-
# information, DNS server, and description. Modifying the DNS server
|
|
27810
|
+
# Modifies the specified Client VPN endpoint. Modifying the DNS server
|
|
27774
27811
|
# resets existing client connections.
|
|
27775
27812
|
#
|
|
27776
27813
|
# @option params [required, String] :client_vpn_endpoint_id
|
|
@@ -27827,6 +27864,12 @@ module Aws::EC2
|
|
|
27827
27864
|
# If you have the required permissions, the error response is
|
|
27828
27865
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
27829
27866
|
#
|
|
27867
|
+
# @option params [Array<String>] :security_group_ids
|
|
27868
|
+
# The IDs of one or more security groups to apply to the target network.
|
|
27869
|
+
#
|
|
27870
|
+
# @option params [String] :vpc_id
|
|
27871
|
+
# The ID of the VPC to associate with the Client VPN endpoint.
|
|
27872
|
+
#
|
|
27830
27873
|
# @return [Types::ModifyClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
27831
27874
|
#
|
|
27832
27875
|
# * {Types::ModifyClientVpnEndpointResult#return #return} => Boolean
|
|
@@ -27849,6 +27892,8 @@ module Aws::EC2
|
|
|
27849
27892
|
# description: "String",
|
|
27850
27893
|
# split_tunnel: false,
|
|
27851
27894
|
# dry_run: false,
|
|
27895
|
+
# security_group_ids: ["String"],
|
|
27896
|
+
# vpc_id: "VpcId",
|
|
27852
27897
|
# })
|
|
27853
27898
|
#
|
|
27854
27899
|
# @example Response structure
|
|
@@ -30661,9 +30706,9 @@ module Aws::EC2
|
|
|
30661
30706
|
# the transit gateway route table.
|
|
30662
30707
|
#
|
|
30663
30708
|
# After you perform this operation, the AWS VPN endpoint's IP addresses
|
|
30664
|
-
# on the AWS side and the tunnel options remain intact. Your
|
|
30665
|
-
# connection will be temporarily unavailable for
|
|
30666
|
-
#
|
|
30709
|
+
# on the AWS side and the tunnel options remain intact. Your AWS
|
|
30710
|
+
# Site-to-Site VPN connection will be temporarily unavailable for a
|
|
30711
|
+
# brief period while we provision the new endpoints.
|
|
30667
30712
|
#
|
|
30668
30713
|
#
|
|
30669
30714
|
#
|
|
@@ -36044,7 +36089,7 @@ module Aws::EC2
|
|
|
36044
36089
|
params: params,
|
|
36045
36090
|
config: config)
|
|
36046
36091
|
context[:gem_name] = 'aws-sdk-ec2'
|
|
36047
|
-
context[:gem_version] = '1.
|
|
36092
|
+
context[:gem_version] = '1.147.0'
|
|
36048
36093
|
Seahorse::Client::Request.new(handlers, context)
|
|
36049
36094
|
end
|
|
36050
36095
|
|
|
@@ -2632,6 +2632,8 @@ module Aws::EC2
|
|
|
2632
2632
|
ClientVpnEndpoint.add_member(:authentication_options, Shapes::ShapeRef.new(shape: ClientVpnAuthenticationList, location_name: "authenticationOptions"))
|
|
2633
2633
|
ClientVpnEndpoint.add_member(:connection_log_options, Shapes::ShapeRef.new(shape: ConnectionLogResponseOptions, location_name: "connectionLogOptions"))
|
|
2634
2634
|
ClientVpnEndpoint.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
|
2635
|
+
ClientVpnEndpoint.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "securityGroupIdSet"))
|
|
2636
|
+
ClientVpnEndpoint.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
|
|
2635
2637
|
ClientVpnEndpoint.struct_class = Types::ClientVpnEndpoint
|
|
2636
2638
|
|
|
2637
2639
|
ClientVpnEndpointIdList.member = Shapes::ShapeRef.new(shape: ClientVpnEndpointId, location_name: "item")
|
|
@@ -2796,6 +2798,8 @@ module Aws::EC2
|
|
|
2796
2798
|
CreateClientVpnEndpointRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
2797
2799
|
CreateClientVpnEndpointRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
|
2798
2800
|
CreateClientVpnEndpointRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
|
2801
|
+
CreateClientVpnEndpointRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "SecurityGroupId"))
|
|
2802
|
+
CreateClientVpnEndpointRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
|
|
2799
2803
|
CreateClientVpnEndpointRequest.struct_class = Types::CreateClientVpnEndpointRequest
|
|
2800
2804
|
|
|
2801
2805
|
CreateClientVpnEndpointResult.add_member(:client_vpn_endpoint_id, Shapes::ShapeRef.new(shape: String, location_name: "clientVpnEndpointId"))
|
|
@@ -6896,6 +6900,8 @@ module Aws::EC2
|
|
|
6896
6900
|
ModifyClientVpnEndpointRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
|
6897
6901
|
ModifyClientVpnEndpointRequest.add_member(:split_tunnel, Shapes::ShapeRef.new(shape: Boolean, location_name: "SplitTunnel"))
|
|
6898
6902
|
ModifyClientVpnEndpointRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
6903
|
+
ModifyClientVpnEndpointRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "SecurityGroupId"))
|
|
6904
|
+
ModifyClientVpnEndpointRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
|
|
6899
6905
|
ModifyClientVpnEndpointRequest.struct_class = Types::ModifyClientVpnEndpointRequest
|
|
6900
6906
|
|
|
6901
6907
|
ModifyClientVpnEndpointResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
data/lib/aws-sdk-ec2/errors.rb
CHANGED
|
@@ -6,6 +6,32 @@
|
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
|
7
7
|
|
|
8
8
|
module Aws::EC2
|
|
9
|
+
|
|
10
|
+
# When EC2 returns an error response, the Ruby SDK constructs and raises an error.
|
|
11
|
+
# These errors all extend Aws::EC2::Errors::ServiceError < {Aws::Errors::ServiceError}
|
|
12
|
+
#
|
|
13
|
+
# You can rescue all EC2 errors using ServiceError:
|
|
14
|
+
# begin
|
|
15
|
+
# # do stuff
|
|
16
|
+
# rescue Aws::EC2::Errors::ServiceError
|
|
17
|
+
# # rescues all EC2 API errors
|
|
18
|
+
# end
|
|
19
|
+
#
|
|
20
|
+
# ## Request Context
|
|
21
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
|
22
|
+
# information about the request that generated the error, including:
|
|
23
|
+
# *
|
|
24
|
+
# * #params - The request params
|
|
25
|
+
# * #operation_name - Name of the API operation invoked
|
|
26
|
+
# * #http_request
|
|
27
|
+
# * #http_response
|
|
28
|
+
# * etc ...
|
|
29
|
+
#
|
|
30
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
|
31
|
+
#
|
|
32
|
+
# ## Error Classes
|
|
33
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
34
|
+
# if they are not defined above.
|
|
9
35
|
module Errors
|
|
10
36
|
|
|
11
37
|
extend Aws::Errors::DynamicErrors
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
data/lib/aws-sdk-ec2/instance.rb
CHANGED
data/lib/aws-sdk-ec2/key_pair.rb
CHANGED
data/lib/aws-sdk-ec2/resource.rb
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
|
7
7
|
|
|
8
8
|
module Aws::EC2
|
|
9
|
+
# This class provides a resource oriented interface for EC2.
|
|
10
|
+
# To create a resource object:
|
|
11
|
+
# resource = Aws::EC2::Resource.new(region: 'us-west-2')
|
|
12
|
+
# You can supply a client object with custom configuration that will be used for all resource operations.
|
|
13
|
+
# If you do not pass +:client+, a default client will be constructed.
|
|
14
|
+
# client = Aws::EC2::Client.new(region: 'us-west-2')
|
|
15
|
+
# resource = Aws::EC2::Resource.new(client: client)
|
|
9
16
|
class Resource
|
|
10
17
|
|
|
11
18
|
# @param options ({})
|
data/lib/aws-sdk-ec2/route.rb
CHANGED
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
data/lib/aws-sdk-ec2/tag.rb
CHANGED
data/lib/aws-sdk-ec2/types.rb
CHANGED
|
@@ -3628,6 +3628,14 @@ module Aws::EC2
|
|
|
3628
3628
|
# Any tags assigned to the Client VPN endpoint.
|
|
3629
3629
|
# @return [Array<Types::Tag>]
|
|
3630
3630
|
#
|
|
3631
|
+
# @!attribute [rw] security_group_ids
|
|
3632
|
+
# The IDs of the security groups for the target network.
|
|
3633
|
+
# @return [Array<String>]
|
|
3634
|
+
#
|
|
3635
|
+
# @!attribute [rw] vpc_id
|
|
3636
|
+
# The ID of the VPC.
|
|
3637
|
+
# @return [String]
|
|
3638
|
+
#
|
|
3631
3639
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientVpnEndpoint AWS API Documentation
|
|
3632
3640
|
#
|
|
3633
3641
|
class ClientVpnEndpoint < Struct.new(
|
|
@@ -3647,7 +3655,9 @@ module Aws::EC2
|
|
|
3647
3655
|
:server_certificate_arn,
|
|
3648
3656
|
:authentication_options,
|
|
3649
3657
|
:connection_log_options,
|
|
3650
|
-
:tags
|
|
3658
|
+
:tags,
|
|
3659
|
+
:security_group_ids,
|
|
3660
|
+
:vpc_id)
|
|
3651
3661
|
include Aws::Structure
|
|
3652
3662
|
end
|
|
3653
3663
|
|
|
@@ -4622,6 +4632,8 @@ module Aws::EC2
|
|
|
4622
4632
|
# ],
|
|
4623
4633
|
# },
|
|
4624
4634
|
# ],
|
|
4635
|
+
# security_group_ids: ["String"],
|
|
4636
|
+
# vpc_id: "VpcId",
|
|
4625
4637
|
# }
|
|
4626
4638
|
#
|
|
4627
4639
|
# @!attribute [rw] client_cidr_block
|
|
@@ -4728,6 +4740,18 @@ module Aws::EC2
|
|
|
4728
4740
|
# The tags to apply to the Client VPN endpoint during creation.
|
|
4729
4741
|
# @return [Array<Types::TagSpecification>]
|
|
4730
4742
|
#
|
|
4743
|
+
# @!attribute [rw] security_group_ids
|
|
4744
|
+
# The IDs of one or more security groups to apply to the target
|
|
4745
|
+
# network. You must also specify the ID of the VPC that contains the
|
|
4746
|
+
# security groups.
|
|
4747
|
+
# @return [Array<String>]
|
|
4748
|
+
#
|
|
4749
|
+
# @!attribute [rw] vpc_id
|
|
4750
|
+
# The ID of the VPC to associate with the Client VPN endpoint. If no
|
|
4751
|
+
# security group IDs are specified in the request, the default
|
|
4752
|
+
# security group for the VPC is applied.
|
|
4753
|
+
# @return [String]
|
|
4754
|
+
#
|
|
4731
4755
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpointRequest AWS API Documentation
|
|
4732
4756
|
#
|
|
4733
4757
|
class CreateClientVpnEndpointRequest < Struct.new(
|
|
@@ -4742,7 +4766,9 @@ module Aws::EC2
|
|
|
4742
4766
|
:split_tunnel,
|
|
4743
4767
|
:dry_run,
|
|
4744
4768
|
:client_token,
|
|
4745
|
-
:tag_specifications
|
|
4769
|
+
:tag_specifications,
|
|
4770
|
+
:security_group_ids,
|
|
4771
|
+
:vpc_id)
|
|
4746
4772
|
include Aws::Structure
|
|
4747
4773
|
end
|
|
4748
4774
|
|
|
@@ -18827,9 +18853,10 @@ module Aws::EC2
|
|
|
18827
18853
|
# `dedicated-host` \| `dhcp-options` \| `elastic-ip` \| `fleet` \|
|
|
18828
18854
|
# `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
|
|
18829
18855
|
# `internet-gateway` \| `launch-template` \| `natgateway` \|
|
|
18830
|
-
# `network-acl` \| `network-interface` \| `
|
|
18831
|
-
# `
|
|
18832
|
-
# `spot-instances-request` \| `subnet` \| `volume` \|
|
|
18856
|
+
# `network-acl` \| `network-interface` \| `placement-group` \|
|
|
18857
|
+
# `reserved-instances` \| `route-table` \| `security-group` \|
|
|
18858
|
+
# `snapshot` \| `spot-instances-request` \| `subnet` \| `volume` \|
|
|
18859
|
+
# `vpc` \| `vpc-endpoint` \| `vpc-endpoint-service` \|
|
|
18833
18860
|
# `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
|
|
18834
18861
|
#
|
|
18835
18862
|
# * `tag`\:<key> - The key/value combination of the tag. For
|
|
@@ -21685,6 +21712,10 @@ module Aws::EC2
|
|
|
21685
21712
|
# @return [String]
|
|
21686
21713
|
#
|
|
21687
21714
|
# @!attribute [rw] dry_run
|
|
21715
|
+
# Checks whether you have the required permissions for the action,
|
|
21716
|
+
# without actually making the request, and provides an error response.
|
|
21717
|
+
# If you have the required permissions, the error response is
|
|
21718
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
21688
21719
|
# @return [Boolean]
|
|
21689
21720
|
#
|
|
21690
21721
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationRequest AWS API Documentation
|
|
@@ -22987,6 +23018,10 @@ module Aws::EC2
|
|
|
22987
23018
|
# @return [String]
|
|
22988
23019
|
#
|
|
22989
23020
|
# @!attribute [rw] dry_run
|
|
23021
|
+
# Checks whether you have the required permissions for the action,
|
|
23022
|
+
# without actually making the request, and provides an error response.
|
|
23023
|
+
# If you have the required permissions, the error response is
|
|
23024
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
22990
23025
|
# @return [Boolean]
|
|
22991
23026
|
#
|
|
22992
23027
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationRequest AWS API Documentation
|
|
@@ -31406,6 +31441,8 @@ module Aws::EC2
|
|
|
31406
31441
|
# description: "String",
|
|
31407
31442
|
# split_tunnel: false,
|
|
31408
31443
|
# dry_run: false,
|
|
31444
|
+
# security_group_ids: ["String"],
|
|
31445
|
+
# vpc_id: "VpcId",
|
|
31409
31446
|
# }
|
|
31410
31447
|
#
|
|
31411
31448
|
# @!attribute [rw] client_vpn_endpoint_id
|
|
@@ -31470,6 +31507,15 @@ module Aws::EC2
|
|
|
31470
31507
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
31471
31508
|
# @return [Boolean]
|
|
31472
31509
|
#
|
|
31510
|
+
# @!attribute [rw] security_group_ids
|
|
31511
|
+
# The IDs of one or more security groups to apply to the target
|
|
31512
|
+
# network.
|
|
31513
|
+
# @return [Array<String>]
|
|
31514
|
+
#
|
|
31515
|
+
# @!attribute [rw] vpc_id
|
|
31516
|
+
# The ID of the VPC to associate with the Client VPN endpoint.
|
|
31517
|
+
# @return [String]
|
|
31518
|
+
#
|
|
31473
31519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpointRequest AWS API Documentation
|
|
31474
31520
|
#
|
|
31475
31521
|
class ModifyClientVpnEndpointRequest < Struct.new(
|
|
@@ -31480,7 +31526,9 @@ module Aws::EC2
|
|
|
31480
31526
|
:vpn_port,
|
|
31481
31527
|
:description,
|
|
31482
31528
|
:split_tunnel,
|
|
31483
|
-
:dry_run
|
|
31529
|
+
:dry_run,
|
|
31530
|
+
:security_group_ids,
|
|
31531
|
+
:vpc_id)
|
|
31484
31532
|
include Aws::Structure
|
|
31485
31533
|
end
|
|
31486
31534
|
|
|
@@ -44054,10 +44102,13 @@ module Aws::EC2
|
|
|
44054
44102
|
# support tagging on creation are: `capacity-reservation` \|
|
|
44055
44103
|
# `client-vpn-endpoint` \| `dedicated-host` \| `fleet` \| `fpga-image`
|
|
44056
44104
|
# \| `instance` \| `key-pair` \| `launch-template` \|
|
|
44057
|
-
# `
|
|
44058
|
-
# `traffic-mirror-
|
|
44059
|
-
# `
|
|
44060
|
-
# `transit-gateway-route-table` \|
|
|
44105
|
+
# `spot-fleet-request` \| `placement-group` \| `snapshot` \|
|
|
44106
|
+
# `traffic-mirror-filter` \| `traffic-mirror-session` \|
|
|
44107
|
+
# `traffic-mirror-target` \| `transit-gateway` \|
|
|
44108
|
+
# `transit-gateway-attachment` \| `transit-gateway-route-table` \|
|
|
44109
|
+
# `vpc-endpoint` (for interface VPC endpoints)\|
|
|
44110
|
+
# `vpc-endpoint-service` (for gateway VPC endpoints) \| `volume` \|
|
|
44111
|
+
# `vpc-flow-log`.
|
|
44061
44112
|
#
|
|
44062
44113
|
# To tag a resource after it has been created, see [CreateTags][1].
|
|
44063
44114
|
#
|
data/lib/aws-sdk-ec2/volume.rb
CHANGED
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-ec2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.147.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sigv4
|