1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use ubuntu_ami::*; #[tokio::main] async fn main() -> Result<(), StdError> { let res = get_latest( "us-east-1", Some("bionic"), None, Some("hvm:ebs-ssd"), Some("amd64"), ) .await?; println!("us-east-1 ubuntu:bionic: {}", res); Ok(()) }