aws_sdk_route53/client/get_geo_location.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetGeoLocation`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`continent_code(impl Into<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::continent_code) / [`set_continent_code(Option<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::set_continent_code):<br>required: **false**<br><p>For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Amazon Route 53 supports the following continent codes:</p> <ul> <li> <p><b>AF</b>: Africa</p></li> <li> <p><b>AN</b>: Antarctica</p></li> <li> <p><b>AS</b>: Asia</p></li> <li> <p><b>EU</b>: Europe</p></li> <li> <p><b>OC</b>: Oceania</p></li> <li> <p><b>NA</b>: North America</p></li> <li> <p><b>SA</b>: South America</p></li> </ul><br>
7 /// - [`country_code(impl Into<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::country_code) / [`set_country_code(Option<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::set_country_code):<br>required: **false**<br><p>Amazon Route 53 uses the two-letter country codes that are specified in <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO standard 3166-1 alpha-2</a>.</p> <p>Route 53 also supports the country code <b>UA</b> for Ukraine.</p><br>
8 /// - [`subdivision_code(impl Into<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::subdivision_code) / [`set_subdivision_code(Option<String>)`](crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::set_subdivision_code):<br>required: **false**<br><p>The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see <a href="https://pe.usps.com/text/pub28/28apb.htm">Appendix B: Two–Letter State and Possession Abbreviations</a> on the United States Postal Service website. For a list of all supported subdivision codes, use the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListGeoLocations.html">ListGeoLocations</a> API.</p><br>
9 /// - On success, responds with [`GetGeoLocationOutput`](crate::operation::get_geo_location::GetGeoLocationOutput) with field(s):
10 /// - [`geo_location_details(Option<GeoLocationDetails>)`](crate::operation::get_geo_location::GetGeoLocationOutput::geo_location_details): <p>A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.</p>
11 /// - On failure, responds with [`SdkError<GetGeoLocationError>`](crate::operation::get_geo_location::GetGeoLocationError)
12 pub fn get_geo_location(&self) -> crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder {
13 crate::operation::get_geo_location::builders::GetGeoLocationFluentBuilder::new(self.handle.clone())
14 }
15}