class AWS::EC2::DHCPOptions

def exists?

Returns:
  • (Boolean) - Returns true if the dhcp options exists.
def exists?
  begin
    get_resource
    true
  rescue Errors::InvalidDhcpOptionID::NotFound
    false
  end
end