Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.
Synopsis
- data CreateMap = CreateMap' {}
- newCreateMap :: MapConfiguration -> Text -> PricingPlan -> CreateMap
- createMap_description :: Lens' CreateMap (Maybe Text)
- createMap_tags :: Lens' CreateMap (Maybe (HashMap Text Text))
- createMap_configuration :: Lens' CreateMap MapConfiguration
- createMap_mapName :: Lens' CreateMap Text
- createMap_pricingPlan :: Lens' CreateMap PricingPlan
- data CreateMapResponse = CreateMapResponse' {
- httpStatus :: Int
- createTime :: POSIX
- 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
:: MapConfiguration | |
-> Text | |
-> PricingPlan | |
-> CreateMap |
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:
$sel:description:CreateMap'
, createMap_description
- An optional description for the map resource.
$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: + - = . _ : / @.
$sel:configuration:CreateMap'
, createMap_configuration
- Specifies the map style selected from an available data provider.
$sel:mapName: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
.
$sel:pricingPlan:CreateMap'
, createMap_pricingPlan
- Specifies the pricing plan for your map resource.
For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.
Request Lenses
createMap_description :: Lens' CreateMap (Maybe Text) Source #
An optional description for the map resource.
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: + - = . _ : / @.
createMap_configuration :: Lens' CreateMap MapConfiguration Source #
Specifies the map style selected from an available data provider.
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
.
createMap_pricingPlan :: Lens' CreateMap PricingPlan Source #
Specifies the pricing plan for your map resource.
For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.
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.
$sel:createTime: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:maps/ExampleMap
$sel:mapName: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:maps/ExampleMap
createMapResponse_mapName :: Lens' CreateMapResponse Text Source #
The name of the map resource.