Neeraj Amoli
Neeraj Amoli

Reputation: 1016

AWS: Ruby describe_instance_type_offerings() gives exception: "undefined method"

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

Answers (1)

John Rotenstein
John Rotenstein

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

Related Questions