# Amazon Redshift code examples for the SDK for Java 2.x ## Overview Shows how to use the AWS SDK for Java 2.x to work with Amazon Redshift. *Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse service that makes it simple and cost-effective to efficiently analyze all your data using your existing business intelligence tools.* ## ⚠ Important * 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). ## Code examples ### Prerequisites For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav2` folder. ### Single actions Code excerpts that show you how to call individual service functions. * [Create a cluster](src/main/java/com/example/redshift/CreateAndModifyCluster.java#L69) (`CreateCluster`) * [Delete a cluster](src/main/java/com/example/redshift/DeleteCluster.java#L54) (`DeleteCluster`) * [Describe your clusters](src/main/java/com/example/redshift/DescribeClusters.java#L43) (`DescribeClusters`) * [Modify a cluster](src/main/java/com/example/redshift/CreateAndModifyCluster.java#L129) (`ModifyCluster`) ## Run the examples ### Instructions ### Tests ⚠ Running tests might result in charges to your AWS account. To find instructions for running these tests, see the [README](../../README.md#Tests) in the `javav2` folder. ## Additional resources * [Amazon Redshift Management Guide](https://docs.aws.amazon.com/redshift/latest/mgmt/welcome.html) * [Amazon Redshift API Reference](https://docs.aws.amazon.com/redshift/latest/APIReference/Welcome.html) * [SDK for Java 2.x Amazon Redshift reference](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/redshift/package-summary.html) --- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0