// Returns a shard iterator. A shard iterator provides information about how to
// retrieve the stream records from within a shard. Use the shard iterator in a
// subsequent GetRecords request to read the stream records from the shard. A shard
// iterator expires 15 minutes after it is returned to the requester.
Returns a shard iterator. A shard iterator provides information about how to
retrieve the stream records from within a shard. Use the shard iterator in a
subsequent GetRecords request to read the stream records from the shard. A shard
iterator expires 15 minutes after it is returned to the requester.
// Returns a shard iterator . A shard iterator provides information about how to // retrieve the stream records from within a shard . Use the shard iterator in a // subsequent GetRecords request to read the stream records from the shard . A shard // iterator expires 15 minutes after it is returned to the requester .
func (c *Client) GetShardIterator(ctx context.Context, params *GetShardIteratorInput, optFns ...func(*Options)) (*GetShardIteratorOutput, error) {
	if params == nil {
		params = &GetShardIteratorInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetShardIterator", params, optFns, addOperationGetShardIteratorMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetShardIteratorOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetShardIterator ( ctx context . Context , params * GetShardIteratorInput , optFns ... func ( * Options ) ) ( * GetShardIteratorOutput , error ) { if params == nil { params = & GetShardIteratorInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetShardIteratorMiddlewares ) if err != nil { return nil , err } out := result . ( * GetShardIteratorOutput ) out . ResultMetadata = metadata return out , nil }
Returns a shard iterator.
Returns a shard iterator .