The examples in this section show how to use the AWS SDK for .NET with Amazon Kinesis features such as streams and consumers.
Amazon Kinesis makes it easy to collect, process, and analyze video and data streams in real time.
- Running this code might result in charges to your AWS account.
- Running the tests might result in charges to your AWS account.
- We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see Grant least privilege.
- This code is not tested in every AWS Region. For more information, see AWS Regional Services.
Code excerpts that show you how to call individual service functions.
- Add tags (
AddTagsAsync
) - Create a stream (
CreateStreamAsync
) - Delete a stream (
DeleteStreamAsync
) - Deregister a consumer (
DeregisterConsumerAsync
) - List streams (
ListStreamsAsync
) - List tags (
ListTagsAsync
) - List the consumers of a stream (
ListConsumersAsync
) - Register a consumer (
RegisterConsumerAsync
)
- To find prerequisites for running these examples, see the README in the dotnetv3 folder.
The examples in this folder use the default user account. The call to initialize the client object does not specify the AWS Region. The following example shows how to supply the AWS Region to match your own as a parameter to the client constructor:
var client = new AmazonKinesisClient(Amazon.RegionEndpoint.USWest2);
After the example compiles, you can run it from the command line. To do so, navigate to the folder that contains the .csproj file and run the following command:
dotnet run
Alternatively, you can run the example from within your IDE.
- Amazon Kinesis Developer Guide
- Amazon Kinesis API Reference
- AWS SDK for .NET Kinesis
- AWS SDK for .NET Developer Guide
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0