

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

# AWS::Kinesis::Queue QueueStartingPosition

The position in a data stream from which a queue begins delivering records.

## Syntax
<a name="aws-properties-kinesis-queue-queuestartingposition-syntax"></a>

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

### JSON
<a name="aws-properties-kinesis-queue-queuestartingposition-syntax.json"></a>

```json
{
  "[Timestamp](#cfn-kinesis-queue-queuestartingposition-timestamp)" : {{String}},
  "[Type](#cfn-kinesis-queue-queuestartingposition-type)" : {{String}}
}
```

### YAML
<a name="aws-properties-kinesis-queue-queuestartingposition-syntax.yaml"></a>

```yaml
  [Timestamp](#cfn-kinesis-queue-queuestartingposition-timestamp): {{String}}
  [Type](#cfn-kinesis-queue-queuestartingposition-type): {{String}}
```

## Properties
<a name="aws-properties-kinesis-queue-queuestartingposition-properties"></a>

`Timestamp`  <a name="cfn-kinesis-queue-queuestartingposition-timestamp"></a>
The approximate time from which the queue begins delivering records. Records that arrive at approximately this time or later are delivered.  
In a request, specify this value only when `Type` is `AT_TIMESTAMP`. It is required in that case, and specifying it for any other type returns a `ValidationException`.  
In a response, this value is approximate and reflects the queue's effective starting position. While the queue is `CREATING`, the response echoes what you configured: for `AT_TIMESTAMP`, the timestamp you provided, and for `TRIM_HORIZON` and `LATEST`, this member is absent because the effective position is not yet determined. Once the queue is `ACTIVE`, the response always includes this member. For `AT_TIMESTAMP`, it is the timestamp you provided or the earliest time the stream can be read from, whichever is later.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Type`  <a name="cfn-kinesis-queue-queuestartingposition-type"></a>
You can set the starting position to one of the following values:  
`LATEST`: Delivers records that arrive after you create the queue. This is the default.  
`TRIM_HORIZON`: Start delivering at the last untrimmed record in the stream, which is the oldest record the stream still retains.  
`AT_TIMESTAMP`: Delivers records that arrive at or after a time stamp that you provide.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `TRIM_HORIZON | LATEST | AT_TIMESTAMP`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)