class Aws::EC2::Resource

See comment on class above as to why we add these methods to the AWS SDK

Public Instance Methods

create_nat_gateway(options) click to toggle source
# 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) click to toggle source
# 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