get_stream
¶
get_stream(
stream_arn: StreamArn,
*,
config_overrides: Optional[KeyspacesStreamsClientConfig] = None,
max_results: Optional[int] = None,
shard_filter: Optional[ShardFilter] = None,
next_token: Optional[ShardIdToken] = None,
) -> GetStreamOutput
Returns detailed information about a specific data capture stream for an Amazon Keyspaces table. The information includes the stream's Amazon Resource Name (ARN), creation time, current status, retention period, shard composition, and associated table details. This operation helps you monitor and manage the configuration of your Amazon Keyspaces data streams.
Parameters:
-
stream_arn(StreamArn) –The Amazon Resource Name (ARN) of the stream for which detailed information is requested. This uniquely identifies the specific stream you want to get information about.
-
max_results(Optional[int], default:None) –The maximum number of shard objects to return in a single
GetStreamrequest. The default value is 100. The minimum value is 1 and the maximum value is 100. -
shard_filter(Optional[ShardFilter], default:None) –Optional filter criteria to apply when retrieving shards. You can filter shards based on their parent
shardIDto get a list of children shards to narrow down the results returned by theGetStreamoperation. -
next_token(Optional[ShardIdToken], default:None) –An optional pagination token provided by a previous
GetStreamoperation. If this parameter is specified, the response includes only records beyond the token, up to the value specified byMaxResults.
Raises:
-
AccessDeniedException–You don't have sufficient access permissions to perform this operation.
This exception occurs when your IAM user or role lacks the required permissions to access the Amazon Keyspaces resource or perform the requested action. Check your IAM policies and ensure they grant the necessary permissions.
-
InternalServerException–The Amazon Keyspaces service encountered an unexpected error while processing the request.
This internal server error is not related to your request parameters. Retry your request after a brief delay. If the issue persists, contact Amazon Web Services Support with details of your request to help identify and resolve the problem.
-
ResourceNotFoundException–The requested resource doesn't exist or could not be found.
This exception occurs when you attempt to access a keyspace, table, stream, or other Amazon Keyspaces resource that doesn't exist or that has been deleted. Verify that the resource identifier is correct and that the resource exists in your account.
-
ThrottlingException–The request rate is too high and exceeds the service's throughput limits.
This exception occurs when you send too many requests in a short period of time. Implement exponential backoff in your retry strategy to handle this exception. Reducing your request frequency or distributing requests more evenly can help avoid throughput exceptions.
This exception can also occur when more than two processes are reading from the same stream shard at the same time. Ensure that only one process reads from a stream shard at the same time.
-
ValidationException–The request validation failed because one or more input parameters failed validation.
This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.
-
UnknownServiceError–The service returned an error code this client does not model.