Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Data Streams
  • Access management
  • Pricing policy
    • Overview
    • All methods
      • CreateStream
      • DecreaseStreamRetentionPeriod
      • DeleteStream
      • DescribeStream
      • IncreaseStreamRetentionPeriod
      • GetRecords
      • GetShardIterator
      • ListStreams
      • PutRecord
      • PutRecords
      • UpdateShardCount
    • Common errors
    • Examples
  • FAQ

In this article:

  • Request
  • Request parameters
  • Response
  • Errors
  1. Amazon Kinesis Data Streams compatible HTTP API
  2. Methods
  3. IncreaseStreamRetentionPeriod

IncreaseStreamRetentionPeriod

Written by
Yandex Cloud
Updated at January 14, 2022
  • Request
    • Request parameters
  • Response
  • Errors

Increases the message retention period in a stream.

Possible values: 4 hours, 12 hours, and 24 hours.

RequestRequest

The request contains data in JSON format.

{
  "RetentionPeriodHours": number,
  "StreamName": "string"
}

Request parametersRequest parameters

Parameter Description
RetentionPeriodHours Message retention period, hours.
Must be greater than the current time.

Type: Integer
Possible values 12, 24.
Required: Yes.
StreamName The name of a stream.

Type: String
Size: 1-128 characters.
Possible values: [a-zA-Z][a-zA-Z0-9-]+*(?<!-)$
Required: Yes

ResponseResponse

If successful, an HTTP 200 code and empty body are returned.

ErrorsErrors

Parameter Description HTTP code
InvalidArgumentException The argument is invalid. For more information, see the error message. 400
LimitExceededException The request limit is exceeded. 400
ResourceInUseException The resource is being used by another operation. 400
ResourceNotFoundException The requested resource was not found. 400

Errors that are common to all methods may occur.

Was the article helpful?

Previous
DescribeStream
Next
GetRecords
Yandex project
© 2025 Yandex.Cloud LLC