UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

1,021 lines 94.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Geo = void 0; const shared_1 = require("../../shared"); /** * Statement provider for service [geo](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlocation.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ class Geo extends shared_1.PolicyStatement { /** * Grants permission to create an association between a geofence-collection and a tracker resource * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_AssociateTrackerConsumer.html */ toAssociateTrackerConsumer() { return this.to('AssociateTrackerConsumer'); } /** * Grants permission to delete a batch of device position histories from a tracker resource * * Access Level: Write * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_BatchDeleteDevicePositionHistory.html */ toBatchDeleteDevicePositionHistory() { return this.to('BatchDeleteDevicePositionHistory'); } /** * Grants permission to delete a batch of geofences from a geofence collection * * Access Level: Write * * Possible conditions: * - .ifGeofenceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchDeleteGeofence.html */ toBatchDeleteGeofence() { return this.to('BatchDeleteGeofence'); } /** * Grants permission to evaluate device positions against the position of geofences in a given geofence collection * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchEvaluateGeofences.html */ toBatchEvaluateGeofences() { return this.to('BatchEvaluateGeofences'); } /** * Grants permission to send a batch request to retrieve device positions * * Access Level: Read * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_BatchGetDevicePosition.html */ toBatchGetDevicePosition() { return this.to('BatchGetDevicePosition'); } /** * Grants permission to send a batch request for adding geofences into a given geofence collection * * Access Level: Write * * Possible conditions: * - .ifGeofenceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchPutGeofence.html */ toBatchPutGeofence() { return this.to('BatchPutGeofence'); } /** * Grants permission to upload a position update for one or more devices to a tracker resource * * Access Level: Write * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_BatchUpdateDevicePosition.html */ toBatchUpdateDevicePosition() { return this.to('BatchUpdateDevicePosition'); } /** * Grants permission to calculate routes using a given route calculator resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_CalculateRoute.html */ toCalculateRoute() { return this.to('CalculateRoute'); } /** * Grants permission to calculate a route matrix using a given route calculator resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_CalculateRouteMatrix.html */ toCalculateRouteMatrix() { return this.to('CalculateRouteMatrix'); } /** * Grants permission to cancel a job * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_geojobs_CancelJob.html */ toCancelJob() { return this.to('CancelJob'); } /** * Grants permission to create a geofence-collection * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_CreateGeofenceCollection.html */ toCreateGeofenceCollection() { return this.to('CreateGeofenceCollection'); } /** * Grants permission to create an API key resource * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_CreateKey.html */ toCreateKey() { return this.to('CreateKey'); } /** * Grants permission to create a map resource * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/previous/APIReference/API_CreateMap.html */ toCreateMap() { return this.to('CreateMap'); } /** * Grants permission to create a place index resource * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/previous/APIReference/API_CreatePlaceIndex.html */ toCreatePlaceIndex() { return this.to('CreatePlaceIndex'); } /** * Grants permission to create a route calculator resource * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/previous/APIReference/API_CreateRouteCalculator.html */ toCreateRouteCalculator() { return this.to('CreateRouteCalculator'); } /** * Grants permission to create a tracker resource * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_CreateTracker.html */ toCreateTracker() { return this.to('CreateTracker'); } /** * Grants permission to delete a geofence-collection * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DeleteGeofenceCollection.html */ toDeleteGeofenceCollection() { return this.to('DeleteGeofenceCollection'); } /** * Grants permission to delete an API key resource * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_DeleteKey.html */ toDeleteKey() { return this.to('DeleteKey'); } /** * Grants permission to delete a map resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_DeleteMap.html */ toDeleteMap() { return this.to('DeleteMap'); } /** * Grants permission to delete a place index resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_DeletePlaceIndex.html */ toDeletePlaceIndex() { return this.to('DeletePlaceIndex'); } /** * Grants permission to delete a route calculator resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_DeleteRouteCalculator.html */ toDeleteRouteCalculator() { return this.to('DeleteRouteCalculator'); } /** * Grants permission to delete a tracker resource * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_DeleteTracker.html */ toDeleteTracker() { return this.to('DeleteTracker'); } /** * Grants permission to retrieve geofence collection details * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DescribeGeofenceCollection.html */ toDescribeGeofenceCollection() { return this.to('DescribeGeofenceCollection'); } /** * Grants permission to retrieve API key resource details and secret * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_DescribeKey.html */ toDescribeKey() { return this.to('DescribeKey'); } /** * Grants permission to retrieve map resource details * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_DescribeMap.html */ toDescribeMap() { return this.to('DescribeMap'); } /** * Grants permission to retrieve place-index resource details * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_DescribePlaceIndex.html */ toDescribePlaceIndex() { return this.to('DescribePlaceIndex'); } /** * Grants permission to retrieve route calculator resource details * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_DescribeRouteCalculator.html */ toDescribeRouteCalculator() { return this.to('DescribeRouteCalculator'); } /** * Grants permission to retrieve a tracker resource details * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_DescribeTracker.html */ toDescribeTracker() { return this.to('DescribeTracker'); } /** * Grants permission to remove the association between a tracker resource and a geofence-collection * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_DisassociateTrackerConsumer.html */ toDisassociateTrackerConsumer() { return this.to('DisassociateTrackerConsumer'); } /** * Grants permission to forecast events for geofences stored in a given geofence collection * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ForecastGeofenceEvents.html */ toForecastGeofenceEvents() { return this.to('ForecastGeofenceEvents'); } /** * Grants permission to retrieve the latest device position * * Access Level: Read * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_GetDevicePosition.html */ toGetDevicePosition() { return this.to('GetDevicePosition'); } /** * Grants permission to retrieve the device position history * * Access Level: Read * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_GetDevicePositionHistory.html */ toGetDevicePositionHistory() { return this.to('GetDevicePositionHistory'); } /** * Grants permission to retrieve the geofence details from a geofence-collection * * Access Level: Read * * Possible conditions: * - .ifGeofenceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_GetGeofence.html */ toGetGeofence() { return this.to('GetGeofence'); } /** * Grants permission to retrieve job details * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_geojobs_GetJob.html */ toGetJob() { return this.to('GetJob'); } /** * Grants permission to retrieve the glyph file for a map resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_GetMapGlyphs.html */ toGetMapGlyphs() { return this.to('GetMapGlyphs'); } /** * Grants permission to retrieve the sprite file for a map resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_GetMapSprites.html */ toGetMapSprites() { return this.to('GetMapSprites'); } /** * Grants permission to retrieve the map style descriptor from a map resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_GetMapStyleDescriptor.html */ toGetMapStyleDescriptor() { return this.to('GetMapStyleDescriptor'); } /** * Grants permission to retrieve the map tile from the map resource * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_GetMapTile.html */ toGetMapTile() { return this.to('GetMapTile'); } /** * Grants permission to find a place by its unique ID * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_GetPlace.html */ toGetPlace() { return this.to('GetPlace'); } /** * Grants permission to retrieve a list of devices and their latest positions from the given tracker resource * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_ListDevicePositions.html */ toListDevicePositions() { return this.to('ListDevicePositions'); } /** * Grants permission to lists geofence-collections * * Access Level: List * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofenceCollections.html */ toListGeofenceCollections() { return this.to('ListGeofenceCollections'); } /** * Grants permission to list geofences stored in a given geofence collection * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofences.html */ toListGeofences() { return this.to('ListGeofences'); } /** * Grants permission to list jobs * * Access Level: List * * https://docs.aws.amazon.com/location/latest/APIReference/API_geojobs_ListJobs.html */ toListJobs() { return this.to('ListJobs'); } /** * Grants permission to list API key resources * * Access Level: List * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_ListKeys.html */ toListKeys() { return this.to('ListKeys'); } /** * Grants permission to list map resources * * Access Level: List * * https://docs.aws.amazon.com/location/previous/APIReference/API_ListMaps.html */ toListMaps() { return this.to('ListMaps'); } /** * Grants permission to return a list of place index resources * * Access Level: List * * https://docs.aws.amazon.com/location/previous/APIReference/API_ListPlaceIndexes.html */ toListPlaceIndexes() { return this.to('ListPlaceIndexes'); } /** * Grants permission to return a list of route calculator resources * * Access Level: List * * https://docs.aws.amazon.com/location/previous/APIReference/API_ListRouteCalculators.html */ toListRouteCalculators() { return this.to('ListRouteCalculators'); } /** * Grants permission to list the tags (metadata) which you have assigned to the resource * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_ListTagsForResource.html */ toListTagsForResource() { return this.to('ListTagsForResource'); } /** * Grants permission to retrieve a list of geofence collections currently associated to the given tracker resource * * Access Level: Read * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_ListTrackerConsumers.html */ toListTrackerConsumers() { return this.to('ListTrackerConsumers'); } /** * Grants permission to return a list of tracker resources * * Access Level: List * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_ListTrackers.html */ toListTrackers() { return this.to('ListTrackers'); } /** * Grants permission to add a new geofence or update an existing geofence to a given geofence-collection * * Access Level: Write * * Possible conditions: * - .ifGeofenceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_PutGeofence.html */ toPutGeofence() { return this.to('PutGeofence'); } /** * Grants permission to reverse geocodes a given coordinate * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_SearchPlaceIndexForPosition.html */ toSearchPlaceIndexForPosition() { return this.to('SearchPlaceIndexForPosition'); } /** * Grants permission to generate suggestions for addresses and points of interest based on partial or misspelled free-form text * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_SearchPlaceIndexForSuggestions.html */ toSearchPlaceIndexForSuggestions() { return this.to('SearchPlaceIndexForSuggestions'); } /** * Grants permission to geocode free-form text, such as an address, name, city or region * * Access Level: Read * * https://docs.aws.amazon.com/location/previous/APIReference/API_SearchPlaceIndexForText.html */ toSearchPlaceIndexForText() { return this.to('SearchPlaceIndexForText'); } /** * Grants permission to start a job * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_geojobs_StartJob.html */ toStartJob() { return this.to('StartJob'); } /** * Grants permission to adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_TagResource.html */ toTagResource() { return this.to('TagResource'); } /** * Grants permission to remove the given tags (metadata) from the resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_UntagResource.html */ toUntagResource() { return this.to('UntagResource'); } /** * Grants permission to update a geofence collection * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_UpdateGeofenceCollection.html */ toUpdateGeofenceCollection() { return this.to('UpdateGeofenceCollection'); } /** * Grants permission to update an API key resource * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_geotags_UpdateKey.html */ toUpdateKey() { return this.to('UpdateKey'); } /** * Grants permission to update a map resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_UpdateMap.html */ toUpdateMap() { return this.to('UpdateMap'); } /** * Grants permission to update a place index resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_UpdatePlaceIndex.html */ toUpdatePlaceIndex() { return this.to('UpdatePlaceIndex'); } /** * Grants permission to update a route calculator resource * * Access Level: Write * * https://docs.aws.amazon.com/location/previous/APIReference/API_UpdateRouteCalculator.html */ toUpdateRouteCalculator() { return this.to('UpdateRouteCalculator'); } /** * Grants permission to update a tracker resource * * Access Level: Write * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_UpdateTracker.html */ toUpdateTracker() { return this.to('UpdateTracker'); } /** * Grants permission to verify a device position * * Access Level: Read * * Possible conditions: * - .ifDeviceIds() * * https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointTracking_VerifyDevicePosition.html */ toVerifyDevicePosition() { return this.to('VerifyDevicePosition'); } /** * Adds a resource of type api-key to the statement * * https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html * * @param keyName - Identifier for the keyName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onApiKey(keyName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:api-key/${keyName}`); } /** * Adds a resource of type geofence-collection to the statement * * https://docs.aws.amazon.com/location/latest/developerguide/geofence-components.html * * @param geofenceCollectionName - Identifier for the geofenceCollectionName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() * - .ifGeofenceIds() */ onGeofenceCollection(geofenceCollectionName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:geofence-collection/${geofenceCollectionName}`); } /** * Adds a resource of type map to the statement * * https://docs.aws.amazon.com/location/previous/developerguide/map-concepts.html * * @param mapName - Identifier for the mapName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onMap(mapName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:map/${mapName}`); } /** * Adds a resource of type place-index to the statement * * https://docs.aws.amazon.com/location/previous/developerguide/places-concepts.html * * @param indexName - Identifier for the indexName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onPlaceIndex(indexName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:place-index/${indexName}`); } /** * Adds a resource of type route-calculator to the statement * * https://docs.aws.amazon.com/location/previous/developerguide/route-concepts.html * * @param calculatorName - Identifier for the calculatorName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onRouteCalculator(calculatorName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:route-calculator/${calculatorName}`); } /** * Adds a resource of type tracker to the statement * * https://docs.aws.amazon.com/location/latest/developerguide/tracking-components.html * * @param trackerName - Identifier for the trackerName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() * - .ifDeviceIds() */ onTracker(trackerName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:tracker/${trackerName}`); } /** * Adds a resource of type job to the statement * * https://docs.aws.amazon.com/location/latest/developerguide/jobs-concepts.html * * @param jobId - Identifier for the jobId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onJob(jobId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:geo:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:job/${jobId}`); } /** * Filters access by a tag's key and value in a request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateGeofenceCollection() * - .toCreateKey() * - .toCreateMap() * - .toCreatePlaceIndex() * - .toCreateRouteCalculator() * - .toCreateTracker() * - .toStartJob() * - .toTagResource() * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsRequestTag(tagKey, value, operator) { return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike'); } /** * Filters access by the presence of tag key-value pairs in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - api-key * - geofence-collection * - map * - place-index * - route-calculator * - tracker * - job * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsResourceTag(tagKey, value, operator) { return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike'); } /** * Filters access by the tag keys in a request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateGeofenceCollection() * - .toCreateKey() * - .toCreateMap() * - .toCreatePlaceIndex() * - .toCreateRouteCalculator() * - .toCreateTracker() * - .toStartJob() * - .toTagResource() * - .toUntagResource() * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsTagKeys(value, operator) { return this.if(`aws:TagKeys`, value, operator ?? 'StringLike'); } /** * Filters access by the presence of device ids in the request * * https://docs.aws.amazon.com/location/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys * * Applies to actions: * - .toBatchDeleteDevicePositionHistory() * - .toBatchGetDevicePosition() * - .toBatchUpdateDevicePosition() * - .toGetDevicePosition() * - .toGetDevicePositionHistory() * - .toVerifyDevicePosition() * * Applies to resource types: * - tracker * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifDeviceIds(value, operator) { return this.if(`DeviceIds`, value, operator ?? 'StringLike'); } /** * Filters access by the presence of geofence ids in the request * * https://docs.aws.amazon.com/location/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys * * Applies to actions: * - .toBatchDeleteGeofence() * - .toBatchPutGeofence() * - .toGetGeofence() * - .toPutGeofence() * * Applies to resource types: * - geofence-collection * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifGeofenceIds(value, operator) { return this.if(`GeofenceIds`, value, operator ?? 'StringLike'); } /** * Statement provider for service [geo](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonlocation.html). * */ constructor(props) { super(props); this.servicePrefix = 'geo'; this.accessLevelList = { Write: [ 'AssociateTrackerConsumer', 'BatchDeleteDevicePositionHistory', 'BatchDeleteGeofence', 'BatchEvaluateGeofences', 'BatchPutGeofence', 'BatchUpdateDevicePosition', 'CancelJob', 'CreateGeofenceCollection', 'CreateKey', 'CreateMap', 'CreatePlaceIndex', 'CreateRouteCalculator', 'CreateTracker', 'DeleteGeofenceCollection', 'DeleteKey', 'DeleteMap', 'DeletePlaceIndex', 'DeleteRouteCalculator', 'DeleteTracker', 'DisassociateTrackerConsumer', 'PutGeofence', 'StartJob', 'UpdateGeofenceCollection', 'UpdateKey', 'UpdateMap', 'UpdatePlaceIndex', 'UpdateRouteCalculator', 'UpdateTracker' ], Read: [ 'BatchGetDevicePosition', 'CalculateRoute', 'CalculateRouteMatrix', 'DescribeGeofenceCollection', 'DescribeKey', 'DescribeMap', 'DescribePlaceIndex', 'DescribeRouteCalculator', 'DescribeTracker', 'ForecastGeofenceEvents', 'GetDevicePosition', 'GetDevicePositionHistory', 'GetGeofence', 'GetJob', 'GetMapGlyphs', 'GetMapSprites', 'GetMapStyleDescriptor', 'GetMapTile', 'GetPlace', 'ListDevicePositions', 'ListGeofences', 'ListTagsForResource', 'ListTrackerConsumers', 'SearchPlaceIndexForPosition', 'SearchPlaceIndexForSuggestions', 'SearchPlaceIndexForText', 'VerifyDevicePosition' ], List: [ 'ListGeofenceCollections', 'ListJobs', 'ListKeys', 'ListMaps', 'ListPlaceIndexes', 'ListRouteCalculators', 'ListTrackers' ], Tagging: [ 'TagResource', 'UntagResource' ] }; } } exports.Geo = Geo; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYXRpb24uanMiLCJzb3VyY2VSb290IjoiI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