Class: Aws::EC2::Resource

Inherits:
Object
  • Object
show all
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



48
49
50
51
# File 'lib/chef/resource/aws_nat_gateway.rb', line 48

def create_nat_gateway(options)
  nat_gateway_struct = client.create_nat_gateway(options).nat_gateway
  nat_gateway(nat_gateway_struct.nat_gateway_id)
end

#nat_gateway(nat_gateway_id) ⇒ Object



53
54
55
# File 'lib/chef/resource/aws_nat_gateway.rb', line 53

def nat_gateway(nat_gateway_id)
  ::Aws::EC2::NatGateway.new(nat_gateway_id, client: client)
end