You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MTurk::Types::Locale

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mturk/lib/aws-sdk-mturk/types.rb

Overview

Note:

When making an API call, you may pass Locale data as a hash:

{
  country: "CountryParameters", # required
  subdivision: "CountryParameters",
}

The Locale data structure represents a geographical region or location.

Instance Attribute Summary collapse

Instance Attribute Details

#countryString

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

Returns:

  • (String)


2059
2060
2061
2062
2063
# File 'gems/aws-sdk-mturk/lib/aws-sdk-mturk/types.rb', line 2059

class Locale < Struct.new(
  :country,
  :subdivision)
  include Aws::Structure
end

#subdivisionString

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

Returns:

  • (String)


2059
2060
2061
2062
2063
# File 'gems/aws-sdk-mturk/lib/aws-sdk-mturk/types.rb', line 2059

class Locale < Struct.new(
  :country,
  :subdivision)
  include Aws::Structure
end