You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.
Class: AWS::EC2::VPCPeeringConnection
- Inherits:
-
Resource
- Object
- Core::Resource
- Resource
- AWS::EC2::VPCPeeringConnection
- Includes:
- TaggedItem
- Defined in:
- lib/aws/ec2/vpc_peering_connection.rb
Instance Attribute Summary collapse
-
#vpc_peering_connection_id ⇒ Object
(also: #id)
readonly
Returns the value of attribute vpc_peering_connection_id.
Instance Method Summary collapse
-
#accept ⇒ Object
Accept a requested VPC peering connection.
-
#delete ⇒ nil
Deletes this VPC peering connection.
Methods included from TaggedItem
Instance Attribute Details
#vpc_peering_connection_id ⇒ Object (readonly) Also known as: id
Returns the value of attribute vpc_peering_connection_id
25 26 27 |
# File 'lib/aws/ec2/vpc_peering_connection.rb', line 25 def vpc_peering_connection_id @vpc_peering_connection_id end |
Instance Method Details
#accept ⇒ Object
Accept a requested VPC peering connection
30 31 32 33 34 |
# File 'lib/aws/ec2/vpc_peering_connection.rb', line 30 def accept client_opts = {} client_opts[:vpc_peering_connection_id] = vpc_peering_connection_id resp = client.accept_vpc_peering_connection(client_opts) end |
#delete ⇒ nil
Deletes this VPC peering connection.
38 39 40 41 42 43 |
# File 'lib/aws/ec2/vpc_peering_connection.rb', line 38 def delete client_opts = {} client_opts[:vpc_peering_connection_id] = vpc_peering_connection_id client.delete_vpc_peering_connection(client_opts) nil end |