Class AmazonRedshiftClient

  • All Implemented Interfaces:
    AmazonRedshift
    Direct Known Subclasses:
    AmazonRedshiftAsyncClient

    @ThreadSafe
    public class AmazonRedshiftClient
    extends AmazonWebServiceClient
    implements AmazonRedshift
    Client for accessing Amazon Redshift. All service calls made using this client are blocking, and will not return until the service call completes.

    Amazon Redshift Overview

    This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to Using the Amazon Redshift Management Interfaces .

    Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.

    If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the The Amazon Redshift Getting Started Guide

    If you are a database developer, the Amazon Redshift Database Developer Guide explains how to design, build, query, and maintain the databases that make up your data warehouse.

    • Field Detail

      • configFactory

        protected static final ClientConfigurationFactory configFactory
        Client configuration factory providing ClientConfigurations tailored to this client
      • exceptionUnmarshallers

        protected final List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,​Node>> exceptionUnmarshallers
        List of exception unmarshallers for all modeled exceptions
    • Constructor Detail

      • AmazonRedshiftClient

        public AmazonRedshiftClient()
        Constructs a new client to invoke service methods on Amazon Redshift. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        See Also:
        DefaultAWSCredentialsProviderChain
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Redshift. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        clientConfiguration - The client configuration options controlling how this client connects to Amazon Redshift (ex: proxy settings, retry counts, etc.).
        See Also:
        DefaultAWSCredentialsProviderChain
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(AWSCredentials awsCredentials)
        Constructs a new client to invoke service methods on Amazon Redshift using the specified AWS account credentials.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(AWSCredentials awsCredentials,
                                    ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Redshift using the specified AWS account credentials and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to Amazon Redshift (ex: proxy settings, retry counts, etc.).
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(AWSCredentialsProvider awsCredentialsProvider)
        Constructs a new client to invoke service methods on Amazon Redshift using the specified AWS account credentials provider.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(AWSCredentialsProvider awsCredentialsProvider,
                                    ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Redshift using the specified AWS account credentials provider and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to Amazon Redshift (ex: proxy settings, retry counts, etc.).
      • AmazonRedshiftClient

        public AmazonRedshiftClient​(AWSCredentialsProvider awsCredentialsProvider,
                                    ClientConfiguration clientConfiguration,
                                    RequestMetricCollector requestMetricCollector)
        Constructs a new client to invoke service methods on Amazon Redshift using the specified AWS account credentials provider, client configuration options, and request metric collector.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
        clientConfiguration - The client configuration options controlling how this client connects to Amazon Redshift (ex: proxy settings, retry counts, etc.).
        requestMetricCollector - optional request metric collector