Reputation: 1016
I used this reference: AWS SDK for Ruby: describe_instance_type_offerings()
When I try to implement this, it gives an exception:
Undefined method
Please guide me.
client = Aws::EC2::Client.new
resp = client.describe_instance_type_offerings(
{
dry_run: false,
location_type: "region",
filters: [
{
name: "location",
values: ["us-east-1"],
},
],
max_results: 1,
next_token: "NextToken",
}
)
Upvotes: 0
Views: 82
Reputation: 269330
Please make sure you are using the latest version of the AWS SDK for Ruby, because this command was added relatively recently.
While the APIs are backwards-compatible, the library will need to be updated to access the newer functions and capabilities.
Upvotes: 1