amazonka-location-2.0: Amazon Location Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Location.CreateMap

Description

Creates a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you may only use HERE as your geolocation provider. See section 82 of the AWS service terms for more details.

Synopsis

Creating a Request

data CreateMap Source #

See: newCreateMap smart constructor.

Constructors

CreateMap' 

Fields

  • description :: Maybe Text

    An optional description for the map resource.

  • pricingPlan :: Maybe PricingPlan

    No longer used. If included, the only allowed value is RequestBasedUsage.

  • tags :: Maybe (HashMap Text Text)

    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.

    Format: "key" : "value"

    Restrictions:

    • Maximum 50 tags per resource
    • Each resource tag must be unique with a maximum of one value.
    • Maximum key length: 128 Unicode characters in UTF-8
    • Maximum value length: 256 Unicode characters in UTF-8
    • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
    • Cannot use "aws:" as a prefix for a key.
  • configuration :: MapConfiguration

    Specifies the MapConfiguration, 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.

  • mapName :: Text

    The name for the map resource.

    Requirements:

    • Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
    • Must be a unique map resource name.
    • No spaces allowed. For example, ExampleMap.

Instances

Instances details
ToJSON CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

ToHeaders CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Methods

toHeaders :: CreateMap -> [Header] #

ToPath CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

ToQuery CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

AWSRequest CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Associated Types

type AWSResponse CreateMap #

Generic CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Associated Types

type Rep CreateMap :: Type -> Type #

Read CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Show CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

NFData CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Methods

rnf :: CreateMap -> () #

Eq CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Hashable CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

type AWSResponse CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

type Rep CreateMap Source # 
Instance details

Defined in Amazonka.Location.CreateMap

newCreateMap Source #

Create a value of CreateMap with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateMap, createMap_description - An optional description for the map resource.

CreateMap, createMap_pricingPlan - No longer used. If included, the only allowed value is RequestBasedUsage.

$sel:tags:CreateMap', createMap_tags - 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.

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource
  • Each resource tag must be unique with a maximum of one value.
  • Maximum key length: 128 Unicode characters in UTF-8
  • Maximum value length: 256 Unicode characters in UTF-8
  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
  • Cannot use "aws:" as a prefix for a key.

$sel:configuration:CreateMap', createMap_configuration - Specifies the MapConfiguration, 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.

CreateMap, createMap_mapName - The name for the map resource.

Requirements:

  • Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
  • Must be a unique map resource name.
  • No spaces allowed. For example, ExampleMap.

Request Lenses

createMap_description :: Lens' CreateMap (Maybe Text) Source #

An optional description for the map resource.

createMap_pricingPlan :: Lens' CreateMap (Maybe PricingPlan) Source #

No longer used. If included, the only allowed value is RequestBasedUsage.

createMap_tags :: Lens' CreateMap (Maybe (HashMap Text Text)) Source #

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.

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource
  • Each resource tag must be unique with a maximum of one value.
  • Maximum key length: 128 Unicode characters in UTF-8
  • Maximum value length: 256 Unicode characters in UTF-8
  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
  • Cannot use "aws:" as a prefix for a key.

createMap_configuration :: Lens' CreateMap MapConfiguration Source #

Specifies the MapConfiguration, 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.

createMap_mapName :: Lens' CreateMap Text Source #

The name for the map resource.

Requirements:

  • Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
  • Must be a unique map resource name.
  • No spaces allowed. For example, ExampleMap.

Destructuring the Response

data CreateMapResponse Source #

See: newCreateMapResponse smart constructor.

Constructors

CreateMapResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • createTime :: ISO8601

    The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

  • mapArn :: Text

    The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.

    • Format example: arn:aws:geo:region:account-id:map/ExampleMap
  • mapName :: Text

    The name of the map resource.

Instances

Instances details
Generic CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Associated Types

type Rep CreateMapResponse :: Type -> Type #

Read CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Show CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

NFData CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

Methods

rnf :: CreateMapResponse -> () #

Eq CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

type Rep CreateMapResponse Source # 
Instance details

Defined in Amazonka.Location.CreateMap

type Rep CreateMapResponse = D1 ('MetaData "CreateMapResponse" "Amazonka.Location.CreateMap" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "CreateMapResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)) :*: (S1 ('MetaSel ('Just "mapArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "mapName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateMapResponse Source #

Create a value of CreateMapResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateMapResponse', createMapResponse_httpStatus - The response's http status code.

CreateMapResponse, createMapResponse_createTime - The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

$sel:mapArn:CreateMapResponse', createMapResponse_mapArn - The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.

  • Format example: arn:aws:geo:region:account-id:map/ExampleMap

CreateMap, createMapResponse_mapName - The name of the map resource.

Response Lenses

createMapResponse_httpStatus :: Lens' CreateMapResponse Int Source #

The response's http status code.

createMapResponse_createTime :: Lens' CreateMapResponse UTCTime Source #

The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

createMapResponse_mapArn :: Lens' CreateMapResponse Text Source #

The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.

  • Format example: arn:aws:geo:region:account-id:map/ExampleMap