create_geofence_collection
¶
create_geofence_collection(
collection_name: ResourceName,
*,
config_overrides: Optional[LocationClientConfig] = None,
pricing_plan: Optional[PricingPlan] = None,
pricing_plan_data_source: Optional[str] = None,
description: Optional[ResourceDescription] = None,
tags: Optional[TagMap] = None,
kms_key_id: Optional[KmsKeyId] = None,
) -> CreateGeofenceCollectionResponse
Creates a geofence collection, which manages and stores geofences.
Parameters:
-
collection_name(ResourceName) –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.
-
-
pricing_plan(Optional[PricingPlan], default:None) –No longer used. If included, the only allowed value is
RequestBasedUsage. -
pricing_plan_data_source(Optional[str], default:None) –This parameter is no longer used.
-
description(Optional[ResourceDescription], default:None) –An optional description for the geofence collection.
-
tags(Optional[TagMap], default:None) –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.
-
-
kms_key_id(Optional[KmsKeyId], default:None) –A key identifier for an Amazon Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN.
Raises:
-
AccessDeniedException–The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
-
ConflictException–The request was unsuccessful because of a conflict.
-
InternalServerException–The request has failed to process because of an unknown server error, exception, or failure.
-
ServiceQuotaExceededException–The operation was denied because the request would exceed the maximum quota set for Amazon Location Service.
-
ThrottlingException–The request was denied because of request throttling.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_location/_services/location.py
888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 | |