aws_sdk_location/client/create_map.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateMap`](crate::operation::create_map::builders::CreateMapFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`map_name(impl Into<String>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::map_name) / [`set_map_name(Option<String>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::set_map_name):<br>required: **true**<br><p>The name for the map resource.</p> <p>Requirements:</p> <ul> <li> <p>Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).</p></li> <li> <p>Must be a unique map resource name.</p></li> <li> <p>No spaces allowed. For example, <code>ExampleMap</code>.</p></li> </ul><br>
/// - [`configuration(MapConfiguration)`](crate::operation::create_map::builders::CreateMapFluentBuilder::configuration) / [`set_configuration(Option<MapConfiguration>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::set_configuration):<br>required: **true**<br><p>Specifies the <code>MapConfiguration</code>, including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.</p><br>
/// - [`pricing_plan(PricingPlan)`](crate::operation::create_map::builders::CreateMapFluentBuilder::pricing_plan) / [`set_pricing_plan(Option<PricingPlan>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::set_pricing_plan):<br>required: **false**<br><p>No longer used. If included, the only allowed value is <code>RequestBasedUsage</code>.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::set_description):<br>required: **false**<br><p>An optional description for the map resource.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_map::builders::CreateMapFluentBuilder::set_tags):<br>required: **false**<br><p>Applies one or more tags to the map resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.</p> <p>Format: <code>"key" : "value"</code></p> <p>Restrictions:</p> <ul> <li> <p>Maximum 50 tags per resource</p></li> <li> <p>Each resource tag must be unique with a maximum of one value.</p></li> <li> <p>Maximum key length: 128 Unicode characters in UTF-8</p></li> <li> <p>Maximum value length: 256 Unicode characters in UTF-8</p></li> <li> <p>Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.</p></li> <li> <p>Cannot use "aws:" as a prefix for a key.</p></li> </ul><br>
/// - On success, responds with [`CreateMapOutput`](crate::operation::create_map::CreateMapOutput) with field(s):
/// - [`map_name(String)`](crate::operation::create_map::CreateMapOutput::map_name): <p>The name of the map resource.</p>
/// - [`map_arn(String)`](crate::operation::create_map::CreateMapOutput::map_arn): <p>The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all Amazon Web Services.</p> <ul> <li> <p>Format example: <code>arn:aws:geo:region:account-id:map/ExampleMap</code></p></li> </ul>
/// - [`create_time(DateTime)`](crate::operation::create_map::CreateMapOutput::create_time): <p>The timestamp for when the map resource was created in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format: <code>YYYY-MM-DDThh:mm:ss.sssZ</code>.</p>
/// - On failure, responds with [`SdkError<CreateMapError>`](crate::operation::create_map::CreateMapError)
pub fn create_map(&self) -> crate::operation::create_map::builders::CreateMapFluentBuilder {
crate::operation::create_map::builders::CreateMapFluentBuilder::new(self.handle.clone())
}
}