| 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 |
Amazonka.Location.CreateGeofenceCollection
Description
Creates a geofence collection, which manages and stores geofences.
Synopsis
- data CreateGeofenceCollection = CreateGeofenceCollection' {}
- newCreateGeofenceCollection :: Text -> CreateGeofenceCollection
- createGeofenceCollection_description :: Lens' CreateGeofenceCollection (Maybe Text)
- createGeofenceCollection_kmsKeyId :: Lens' CreateGeofenceCollection (Maybe Text)
- createGeofenceCollection_pricingPlan :: Lens' CreateGeofenceCollection (Maybe PricingPlan)
- createGeofenceCollection_pricingPlanDataSource :: Lens' CreateGeofenceCollection (Maybe Text)
- createGeofenceCollection_tags :: Lens' CreateGeofenceCollection (Maybe (HashMap Text Text))
- createGeofenceCollection_collectionName :: Lens' CreateGeofenceCollection Text
- data CreateGeofenceCollectionResponse = CreateGeofenceCollectionResponse' {}
- newCreateGeofenceCollectionResponse :: Int -> Text -> Text -> UTCTime -> CreateGeofenceCollectionResponse
- createGeofenceCollectionResponse_httpStatus :: Lens' CreateGeofenceCollectionResponse Int
- createGeofenceCollectionResponse_collectionArn :: Lens' CreateGeofenceCollectionResponse Text
- createGeofenceCollectionResponse_collectionName :: Lens' CreateGeofenceCollectionResponse Text
- createGeofenceCollectionResponse_createTime :: Lens' CreateGeofenceCollectionResponse UTCTime
Creating a Request
data CreateGeofenceCollection Source #
See: newCreateGeofenceCollection smart constructor.
Constructors
| CreateGeofenceCollection' | |
Fields
| |
Instances
newCreateGeofenceCollection Source #
Arguments
| :: Text | |
| -> CreateGeofenceCollection |
Create a value of CreateGeofenceCollection 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:
CreateGeofenceCollection, createGeofenceCollection_description - An optional description for the geofence collection.
$sel:kmsKeyId:CreateGeofenceCollection', createGeofenceCollection_kmsKeyId - A key identifier for an
AWS KMS customer managed key.
Enter a key ID, key ARN, alias name, or alias ARN.
CreateGeofenceCollection, createGeofenceCollection_pricingPlan - No longer used. If included, the only allowed value is
RequestBasedUsage.
CreateGeofenceCollection, createGeofenceCollection_pricingPlanDataSource - This parameter is no longer used.
$sel:tags:CreateGeofenceCollection', createGeofenceCollection_tags - Applies one or more tags to the geofence collection. 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.
CreateGeofenceCollection, createGeofenceCollection_collectionName - A custom name for the geofence collection.
Requirements:
- Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
- Must be a unique geofence collection name.
- No spaces allowed. For example,
ExampleGeofenceCollection.
Request Lenses
createGeofenceCollection_description :: Lens' CreateGeofenceCollection (Maybe Text) Source #
An optional description for the geofence collection.
createGeofenceCollection_kmsKeyId :: Lens' CreateGeofenceCollection (Maybe Text) Source #
A key identifier for an AWS KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN.
createGeofenceCollection_pricingPlan :: Lens' CreateGeofenceCollection (Maybe PricingPlan) Source #
No longer used. If included, the only allowed value is
RequestBasedUsage.
createGeofenceCollection_pricingPlanDataSource :: Lens' CreateGeofenceCollection (Maybe Text) Source #
This parameter is no longer used.
createGeofenceCollection_tags :: Lens' CreateGeofenceCollection (Maybe (HashMap Text Text)) Source #
Applies one or more tags to the geofence collection. 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.
createGeofenceCollection_collectionName :: Lens' CreateGeofenceCollection Text Source #
A custom name for the geofence collection.
Requirements:
- Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
- Must be a unique geofence collection name.
- No spaces allowed. For example,
ExampleGeofenceCollection.
Destructuring the Response
data CreateGeofenceCollectionResponse Source #
See: newCreateGeofenceCollectionResponse smart constructor.
Constructors
| CreateGeofenceCollectionResponse' | |
Fields
| |
Instances
newCreateGeofenceCollectionResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> UTCTime | |
| -> CreateGeofenceCollectionResponse |
Create a value of CreateGeofenceCollectionResponse 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:CreateGeofenceCollectionResponse', createGeofenceCollectionResponse_httpStatus - The response's http status code.
$sel:collectionArn:CreateGeofenceCollectionResponse', createGeofenceCollectionResponse_collectionArn - The Amazon Resource Name (ARN) for the geofence collection resource.
Used when you need to specify a resource across all AWS.
- Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
CreateGeofenceCollection, createGeofenceCollectionResponse_collectionName - The name for the geofence collection.
CreateGeofenceCollectionResponse, createGeofenceCollectionResponse_createTime - The timestamp for when the geofence collection was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
Response Lenses
createGeofenceCollectionResponse_httpStatus :: Lens' CreateGeofenceCollectionResponse Int Source #
The response's http status code.
createGeofenceCollectionResponse_collectionArn :: Lens' CreateGeofenceCollectionResponse Text Source #
The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS.
- Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
createGeofenceCollectionResponse_collectionName :: Lens' CreateGeofenceCollectionResponse Text Source #
The name for the geofence collection.
createGeofenceCollectionResponse_createTime :: Lens' CreateGeofenceCollectionResponse UTCTime Source #
The timestamp for when the geofence collection was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ