Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateMap = CreateMap' {}
- newCreateMap :: MapConfiguration -> Text -> CreateMap
- createMap_description :: Lens' CreateMap (Maybe Text)
- createMap_pricingPlan :: Lens' CreateMap (Maybe PricingPlan)
- createMap_tags :: Lens' CreateMap (Maybe (HashMap Text Text))
- createMap_configuration :: Lens' CreateMap MapConfiguration
- createMap_mapName :: Lens' CreateMap Text
- data CreateMapResponse = CreateMapResponse' {
- httpStatus :: Int
- createTime :: ISO8601
- mapArn :: Text
- mapName :: Text
- newCreateMapResponse :: Int -> UTCTime -> Text -> Text -> CreateMapResponse
- createMapResponse_httpStatus :: Lens' CreateMapResponse Int
- createMapResponse_createTime :: Lens' CreateMapResponse UTCTime
- createMapResponse_mapArn :: Lens' CreateMapResponse Text
- createMapResponse_mapName :: Lens' CreateMapResponse Text
Creating a Request
See: newCreateMap
smart constructor.
CreateMap' | |
|
Instances
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.
CreateMapResponse' | |
|
Instances
:: Int | |
-> UTCTime | |
-> Text | |
-> Text | |
-> CreateMapResponse |
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
createMapResponse_mapName :: Lens' CreateMapResponse Text Source #
The name of the map resource.