- AWS Code Sample

This version of the AWS Code Sample Catalog has been replaced by the AWS Code Library, which contains new and updated code examples.


To run this Java (SDK V2) code example, ensure that you have set up your development environment, including your credentials. For more information, see AWS SDK for Java 2.x Developer Guide.

bucketARN = <enter bucket ARN> roleARN = <enter IAM Role ARN> newStream = <enter stream name> existingStream = <enter new stream name> textValue = <enter text value>