Class: Aws::EC2::Resource
- Inherits:
-
Object
- Object
- Aws::EC2::Resource
- Defined in:
- lib/chef/resource/aws_nat_gateway.rb
Overview
See comment on class above as to why we add these methods to the AWS SDK
Instance Method Summary collapse
Instance Method Details
#create_nat_gateway(options) ⇒ Object
47 48 49 50 |
# File 'lib/chef/resource/aws_nat_gateway.rb', line 47 def create_nat_gateway() nat_gateway_struct = self.client.create_nat_gateway().nat_gateway self.nat_gateway(nat_gateway_struct.nat_gateway_id) end |
#nat_gateway(nat_gateway_id) ⇒ Object
52 53 54 |
# File 'lib/chef/resource/aws_nat_gateway.rb', line 52 def nat_gateway(nat_gateway_id) ::Aws::EC2::NatGateway.new(nat_gateway_id, {client: client}) end |