

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Pinpoint::Segment Location
<a name="aws-properties-pinpoint-segment-location"></a>

Specifies location-based criteria, such as region or GPS coordinates, for the segment.

## Syntax
<a name="aws-properties-pinpoint-segment-location-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pinpoint-segment-location-syntax.json"></a>

```
{
  "[Country](#cfn-pinpoint-segment-location-country)" : SetDimension,
  "[GPSPoint](#cfn-pinpoint-segment-location-gpspoint)" : GPSPoint
}
```

### YAML
<a name="aws-properties-pinpoint-segment-location-syntax.yaml"></a>

```
  [Country](#cfn-pinpoint-segment-location-country): 
    SetDimension
  [GPSPoint](#cfn-pinpoint-segment-location-gpspoint): 
    GPSPoint
```

## Properties
<a name="aws-properties-pinpoint-segment-location-properties"></a>

`Country`  <a name="cfn-pinpoint-segment-location-country"></a>
The country or region code, in ISO 3166-1 alpha-2 format, for the segment.  
*Required*: No  
*Type*: [SetDimension](aws-properties-pinpoint-segment-setdimension.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`GPSPoint`  <a name="cfn-pinpoint-segment-location-gpspoint"></a>
The GPS point dimension for the segment.  
*Required*: No  
*Type*: [GPSPoint](aws-properties-pinpoint-segment-gpspoint.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)