Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.redshift;
  
  import org.w3c.dom.*;
  
  import java.net.*;
  import java.util.*;
  
  import com.amazonaws.*;
  
Client for accessing AmazonRedshift. 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.

  
  public class AmazonRedshiftClient extends AmazonWebServiceClient implements AmazonRedshift {

    
Provider for AWS credentials.
  
      private AWSCredentialsProvider awsCredentialsProvider;

    
List of exception unmarshallers for all AmazonRedshift exceptions.
  
              = new ArrayList<Unmarshaller<AmazonServiceExceptionNode>>();

    
Constructs a new client to invoke service methods on AmazonRedshift. 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.

 
     public AmazonRedshiftClient() {
         this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonRedshift. 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 AmazonRedshift (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonRedshiftClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
     }

    
Constructs a new client to invoke service methods on AmazonRedshift 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.
 
     public AmazonRedshiftClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonRedshift 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 AmazonRedshift (ex: proxy settings, retry counts, etc.).
 
     public AmazonRedshiftClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(clientConfiguration);
         this. = new StaticCredentialsProvider(awsCredentials);
         init();
     }

    
Constructs a new client to invoke service methods on AmazonRedshift 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.
 
     public AmazonRedshiftClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonRedshift 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 AmazonRedshift (ex: proxy settings, retry counts, etc.).
 
     public AmazonRedshiftClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

    
Constructs a new client to invoke service methods on AmazonRedshift 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 AmazonRedshift (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonRedshiftClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(clientConfigurationrequestMetricCollector);
         this. = awsCredentialsProvider;
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("redshift.us-east-1.amazonaws.com");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/redshift/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/redshift/request.handler2s"));
     }

    

Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
revokeSnapshotAccessRequest Container for the necessary parameters to execute the RevokeSnapshotAccess service method on AmazonRedshift.
Returns:
The response from the RevokeSnapshotAccess service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.AccessToSnapshotDeniedException
com.amazonaws.services.redshift.model.ClusterSnapshotNotFoundException
com.amazonaws.services.redshift.model.AuthorizationNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Snapshot revokeSnapshotAccess(RevokeSnapshotAccessRequest revokeSnapshotAccessRequest) {
         ExecutionContext executionContext = createExecutionContext(revokeSnapshotAccessRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<RevokeSnapshotAccessRequestrequest = null;
         Response<Snapshotresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new RevokeSnapshotAccessRequestMarshaller().marshall(super.beforeMarshalling(revokeSnapshotAccessRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew SnapshotStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.

Parameters:
modifySnapshotCopyRetentionPeriodRequest Container for the necessary parameters to execute the ModifySnapshotCopyRetentionPeriod service method on AmazonRedshift.
Returns:
The response from the ModifySnapshotCopyRetentionPeriod service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.SnapshotCopyDisabledException
com.amazonaws.services.redshift.model.UnauthorizedOperationException
com.amazonaws.services.redshift.model.InvalidClusterStateException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Cluster modifySnapshotCopyRetentionPeriod(ModifySnapshotCopyRetentionPeriodRequest modifySnapshotCopyRetentionPeriodRequest) {
         ExecutionContext executionContext = createExecutionContext(modifySnapshotCopyRetentionPeriodRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ModifySnapshotCopyRetentionPeriodRequestrequest = null;
         Response<Clusterresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ModifySnapshotCopyRetentionPeriodRequestMarshaller().marshall(super.beforeMarshalling(modifySnapshotCopyRetentionPeriodRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

Parameters:
modifyClusterSubnetGroupRequest Container for the necessary parameters to execute the ModifyClusterSubnetGroup service method on AmazonRedshift.
Returns:
The response from the ModifyClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.SubnetAlreadyInUseException
com.amazonaws.services.redshift.model.InvalidSubnetException
com.amazonaws.services.redshift.model.UnauthorizedOperationException
com.amazonaws.services.redshift.model.ClusterSubnetQuotaExceededException
com.amazonaws.services.redshift.model.ClusterSubnetGroupNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public ClusterSubnetGroup modifyClusterSubnetGroup(ModifyClusterSubnetGroupRequest modifyClusterSubnetGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(modifyClusterSubnetGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ModifyClusterSubnetGroupRequestrequest = null;
         Response<ClusterSubnetGroupresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ModifyClusterSubnetGroupRequestMarshaller().marshall(super.beforeMarshalling(modifyClusterSubnetGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ClusterSubnetGroupStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings. You can call this API by providing a specific reserved node offering and the number of nodes you want to reserve.

For more information about managing parameter groups, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide .

Parameters:
purchaseReservedNodeOfferingRequest Container for the necessary parameters to execute the PurchaseReservedNodeOffering service method on AmazonRedshift.
Returns:
The response from the PurchaseReservedNodeOffering service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ReservedNodeAlreadyExistsException
com.amazonaws.services.redshift.model.ReservedNodeOfferingNotFoundException
com.amazonaws.services.redshift.model.ReservedNodeQuotaExceededException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public ReservedNode purchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest purchaseReservedNodeOfferingRequest) {
         ExecutionContext executionContext = createExecutionContext(purchaseReservedNodeOfferingRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<PurchaseReservedNodeOfferingRequestrequest = null;
         Response<ReservedNoderesponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new PurchaseReservedNodeOfferingRequestMarshaller().marshall(super.beforeMarshalling(purchaseReservedNodeOfferingRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ReservedNodeStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Deletes the specified Amazon Redshift HSM configuration.

Parameters:
deleteHsmConfigurationRequest Container for the necessary parameters to execute the DeleteHsmConfiguration service method on AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.HsmConfigurationNotFoundException
com.amazonaws.services.redshift.model.InvalidHsmConfigurationStateException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public void deleteHsmConfiguration(DeleteHsmConfigurationRequest deleteHsmConfigurationRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteHsmConfigurationRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteHsmConfigurationRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteHsmConfigurationRequestMarshaller().marshall(super.beforeMarshalling(deleteHsmConfigurationRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
disableLoggingRequest Container for the necessary parameters to execute the DisableLogging service method on AmazonRedshift.
Returns:
The response from the DisableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public DisableLoggingResult disableLogging(DisableLoggingRequest disableLoggingRequest) {
         ExecutionContext executionContext = createExecutionContext(disableLoggingRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DisableLoggingRequestrequest = null;
         Response<DisableLoggingResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DisableLoggingRequestMarshaller().marshall(super.beforeMarshalling(disableLoggingRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DisableLoggingResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.

 
     public Cluster modifyCluster(ModifyClusterRequest modifyClusterRequest) {
         ExecutionContext executionContext = createExecutionContext(modifyClusterRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ModifyClusterRequestrequest = null;
         Response<Clusterresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ModifyClusterRequestMarshaller().marshall(super.beforeMarshalling(modifyClusterRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Deletes a tag or tags from a resource. You must provide the ARN of the resource from which you want to delete the tag or tags.

Parameters:
deleteTagsRequest Container for the necessary parameters to execute the DeleteTags service method on AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ResourceNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public void deleteTags(DeleteTagsRequest deleteTagsRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteTagsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteTagsRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteTagsRequestMarshaller().marshall(super.beforeMarshalling(deleteTagsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
copyClusterSnapshotRequest Container for the necessary parameters to execute the CopyClusterSnapshot service method on AmazonRedshift.
Returns:
The response from the CopyClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ClusterSnapshotAlreadyExistsException
com.amazonaws.services.redshift.model.ClusterSnapshotNotFoundException
com.amazonaws.services.redshift.model.ClusterSnapshotQuotaExceededException
com.amazonaws.services.redshift.model.InvalidClusterSnapshotStateException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public Snapshot copyClusterSnapshot(CopyClusterSnapshotRequest copyClusterSnapshotRequest) {
         ExecutionContext executionContext = createExecutionContext(copyClusterSnapshotRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CopyClusterSnapshotRequestrequest = null;
         Response<Snapshotresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CopyClusterSnapshotRequestMarshaller().marshall(super.beforeMarshalling(copyClusterSnapshotRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew SnapshotStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
describeOrderableClusterOptionsRequest Container for the necessary parameters to execute the DescribeOrderableClusterOptions service method on AmazonRedshift.
Returns:
The response from the DescribeOrderableClusterOptions service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(describeOrderableClusterOptionsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeOrderableClusterOptionsRequestrequest = null;
         Response<DescribeOrderableClusterOptionsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeOrderableClusterOptionsRequestMarshaller().marshall(super.beforeMarshalling(describeOrderableClusterOptionsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DescribeOrderableClusterOptionsResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Parameters:
enableLoggingRequest Container for the necessary parameters to execute the EnableLogging service method on AmazonRedshift.
Returns:
The response from the EnableLogging service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidS3KeyPrefixException
com.amazonaws.services.redshift.model.InvalidS3BucketNameException
com.amazonaws.services.redshift.model.BucketNotFoundException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.services.redshift.model.InsufficientS3BucketPolicyException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public EnableLoggingResult enableLogging(EnableLoggingRequest enableLoggingRequest) {
         ExecutionContext executionContext = createExecutionContext(enableLoggingRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<EnableLoggingRequestrequest = null;
         Response<EnableLoggingResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new EnableLoggingRequestMarshaller().marshall(super.beforeMarshalling(enableLoggingRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew EnableLoggingResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSubnetGroupRequest Container for the necessary parameters to execute the CreateClusterSubnetGroup service method on AmazonRedshift.
Returns:
The response from the CreateClusterSubnetGroup service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.TagLimitExceededException
com.amazonaws.services.redshift.model.InvalidSubnetException
com.amazonaws.services.redshift.model.InvalidTagException
com.amazonaws.services.redshift.model.UnauthorizedOperationException
com.amazonaws.services.redshift.model.ClusterSubnetQuotaExceededException
com.amazonaws.services.redshift.model.ClusterSubnetGroupAlreadyExistsException
com.amazonaws.services.redshift.model.ClusterSubnetGroupQuotaExceededException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
 
     public ClusterSubnetGroup createClusterSubnetGroup(CreateClusterSubnetGroupRequest createClusterSubnetGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(createClusterSubnetGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateClusterSubnetGroupRequestrequest = null;
         Response<ClusterSubnetGroupresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateClusterSubnetGroupRequestMarshaller().marshall(super.beforeMarshalling(createClusterSubnetGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ClusterSubnetGroupStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Deletes the specified HSM client certificate.

Parameters:
deleteHsmClientCertificateRequest Container for the necessary parameters to execute the DeleteHsmClientCertificate service method on AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidHsmClientCertificateStateException
com.amazonaws.services.redshift.model.HsmClientCertificateNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public void deleteHsmClientCertificate(DeleteHsmClientCertificateRequest deleteHsmClientCertificateRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteHsmClientCertificateRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<DeleteHsmClientCertificateRequestrequest = null;
        awsRequestMetrics.startEvent(.);
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteHsmClientCertificateRequestMarshaller().marshall(super.beforeMarshalling(deleteHsmClientCertificateRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            invoke(requestnullexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting . A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide

Parameters:
rebootClusterRequest Container for the necessary parameters to execute the RebootCluster service method on AmazonRedshift.
Returns:
The response from the RebootCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidClusterStateException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Cluster rebootCluster(RebootClusterRequest rebootClusterRequest) {
        ExecutionContext executionContext = createExecutionContext(rebootClusterRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RebootClusterRequestrequest = null;
        Response<Clusterresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RebootClusterRequestMarshaller().marshall(super.beforeMarshalling(rebootClusterRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Deletes the specified cluster subnet group.

Parameters:
deleteClusterSubnetGroupRequest Container for the necessary parameters to execute the DeleteClusterSubnetGroup service method on AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidClusterSubnetStateException
com.amazonaws.services.redshift.model.ClusterSubnetGroupNotFoundException
com.amazonaws.services.redshift.model.InvalidClusterSubnetGroupStateException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public void deleteClusterSubnetGroup(DeleteClusterSubnetGroupRequest deleteClusterSubnetGroupRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteClusterSubnetGroupRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<DeleteClusterSubnetGroupRequestrequest = null;
        awsRequestMetrics.startEvent(.);
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteClusterSubnetGroupRequestMarshaller().marshall(super.beforeMarshalling(deleteClusterSubnetGroupRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            invoke(requestnullexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

Deletes a previously provisioned cluster. A successful response from the web service indicates that the request was received correctly. Use DescribeClusters to monitor the status of the deletion. The delete operation cannot be canceled or reverted once submitted. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot to false and specify a name for FinalClusterSnapshotIdentifier . You can later restore this snapshot to resume using the cluster. If a final cluster snapshot is requested, the status of the cluster will be "final-snapshot" while the snapshot is being taken, then it's "deleting" once Amazon Redshift begins deleting the cluster.

For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterRequest Container for the necessary parameters to execute the DeleteCluster service method on AmazonRedshift.
Returns:
The response from the DeleteCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ClusterSnapshotAlreadyExistsException
com.amazonaws.services.redshift.model.InvalidClusterStateException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.services.redshift.model.ClusterSnapshotQuotaExceededException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Cluster deleteCluster(DeleteClusterRequest deleteClusterRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteClusterRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DeleteClusterRequestrequest = null;
        Response<Clusterresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteClusterRequestMarshaller().marshall(super.beforeMarshalling(deleteClusterRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Creates a manual snapshot of the specified cluster. The cluster must be in the available state.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterSnapshotRequest Container for the necessary parameters to execute the CreateClusterSnapshot service method on AmazonRedshift.
Returns:
The response from the CreateClusterSnapshot service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.TagLimitExceededException
com.amazonaws.services.redshift.model.ClusterSnapshotAlreadyExistsException
com.amazonaws.services.redshift.model.InvalidTagException
com.amazonaws.services.redshift.model.InvalidClusterStateException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.services.redshift.model.ClusterSnapshotQuotaExceededException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Snapshot createClusterSnapshot(CreateClusterSnapshotRequest createClusterSnapshotRequest) {
        ExecutionContext executionContext = createExecutionContext(createClusterSnapshotRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateClusterSnapshotRequestrequest = null;
        Response<Snapshotresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateClusterSnapshotRequestMarshaller().marshall(super.beforeMarshalling(createClusterSnapshotRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew SnapshotStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Creates a new cluster. To create the cluster in virtual private cloud (VPC), you must provide cluster subnet group name. If you don't provide a cluster subnet group name or the cluster security group parameter, Amazon Redshift creates a non-VPC cluster, it associates the default cluster security group with the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide .

Parameters:
createClusterRequest Container for the necessary parameters to execute the CreateCluster service method on AmazonRedshift.
Returns:
The response from the CreateCluster service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidElasticIpException
com.amazonaws.services.redshift.model.InvalidSubnetException
com.amazonaws.services.redshift.model.HsmConfigurationNotFoundException
com.amazonaws.services.redshift.model.InvalidTagException
com.amazonaws.services.redshift.model.ClusterSubnetGroupNotFoundException
com.amazonaws.services.redshift.model.InvalidClusterSubnetGroupStateException
com.amazonaws.services.redshift.model.ClusterAlreadyExistsException
com.amazonaws.services.redshift.model.InvalidVPCNetworkStateException
com.amazonaws.services.redshift.model.ClusterParameterGroupNotFoundException
com.amazonaws.services.redshift.model.TagLimitExceededException
com.amazonaws.services.redshift.model.InsufficientClusterCapacityException
com.amazonaws.services.redshift.model.UnauthorizedOperationException
com.amazonaws.services.redshift.model.NumberOfNodesQuotaExceededException
com.amazonaws.services.redshift.model.NumberOfNodesPerClusterLimitExceededException
com.amazonaws.services.redshift.model.HsmClientCertificateNotFoundException
com.amazonaws.services.redshift.model.ClusterQuotaExceededException
com.amazonaws.services.redshift.model.ClusterSecurityGroupNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Cluster createCluster(CreateClusterRequest createClusterRequest) {
        ExecutionContext executionContext = createExecutionContext(createClusterRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateClusterRequestrequest = null;
        Response<Clusterresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateClusterRequestMarshaller().marshall(super.beforeMarshalling(createClusterRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Returns events related to clusters, security groups, snapshots, and parameter groups for the past 14 days. Events specific to a particular cluster, security group, snapshot or parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

Parameters:
describeEventsRequest Container for the necessary parameters to execute the DescribeEvents service method on AmazonRedshift.
Returns:
The response from the DescribeEvents service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest) {
        ExecutionContext executionContext = createExecutionContext(describeEventsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeEventsRequestrequest = null;
        Response<DescribeEventsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeEventsRequestMarshaller().marshall(super.beforeMarshalling(describeEventsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeEventsResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR) IP address range or an EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

NOTE: The EC2 security group must be defined in the AWS region where the cluster resides.

For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing .

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
authorizeClusterSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeClusterSecurityGroupIngress service method on AmazonRedshift.
Returns:
The response from the AuthorizeClusterSecurityGroupIngress service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidClusterSecurityGroupStateException
com.amazonaws.services.redshift.model.AuthorizationAlreadyExistsException
com.amazonaws.services.redshift.model.AuthorizationQuotaExceededException
com.amazonaws.services.redshift.model.ClusterSecurityGroupNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(authorizeClusterSecurityGroupIngressRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<AuthorizeClusterSecurityGroupIngressRequestrequest = null;
        Response<ClusterSecurityGroupresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new AuthorizeClusterSecurityGroupIngressRequestMarshaller().marshall(super.beforeMarshalling(authorizeClusterSecurityGroupIngressRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ClusterSecurityGroupStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Rotates the encryption keys for a cluster.

Parameters:
rotateEncryptionKeyRequest Container for the necessary parameters to execute the RotateEncryptionKey service method on AmazonRedshift.
Returns:
The response from the RotateEncryptionKey service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidClusterStateException
com.amazonaws.services.redshift.model.ClusterNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public Cluster rotateEncryptionKey(RotateEncryptionKeyRequest rotateEncryptionKeyRequest) {
        ExecutionContext executionContext = createExecutionContext(rotateEncryptionKeyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RotateEncryptionKeyRequestrequest = null;
        Response<Clusterresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RotateEncryptionKeyRequestMarshaller().marshall(super.beforeMarshalling(rotateEncryptionKeyRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ClusterStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Deletes an Amazon Redshift security group.

NOTE:You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
deleteClusterSecurityGroupRequest Container for the necessary parameters to execute the DeleteClusterSecurityGroup service method on AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.InvalidClusterSecurityGroupStateException
com.amazonaws.services.redshift.model.ClusterSecurityGroupNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public void deleteClusterSecurityGroup(DeleteClusterSecurityGroupRequest deleteClusterSecurityGroupRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteClusterSecurityGroupRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<DeleteClusterSecurityGroupRequestrequest = null;
        awsRequestMetrics.startEvent(.);
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteClusterSecurityGroupRequestMarshaller().marshall(super.beforeMarshalling(deleteClusterSecurityGroupRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            invoke(requestnullexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

Returns the descriptions of the reserved nodes.

Parameters:
describeReservedNodesRequest Container for the necessary parameters to execute the DescribeReservedNodes service method on AmazonRedshift.
Returns:
The response from the DescribeReservedNodes service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.ReservedNodeNotFoundException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(describeReservedNodesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeReservedNodesRequestrequest = null;
        Response<DescribeReservedNodesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeReservedNodesRequestMarshaller().marshall(super.beforeMarshalling(describeReservedNodesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeReservedNodesResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Returns a list of parameter settings for the specified parameter group family.

For more information about managing parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide .

Parameters:
describeDefaultClusterParametersRequest Container for the necessary parameters to execute the DescribeDefaultClusterParameters service method on AmazonRedshift.
Returns:
The response from the DescribeDefaultClusterParameters service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(describeDefaultClusterParametersRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeDefaultClusterParametersRequestrequest = null;
        Response<DefaultClusterParametersresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeDefaultClusterParametersRequestMarshaller().marshall(super.beforeMarshalling(describeDefaultClusterParametersRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DefaultClusterParametersStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Modifies an existing Amazon Redshift event notification subscription.

Parameters:
modifyEventSubscriptionRequest Container for the necessary parameters to execute the ModifyEventSubscription service method on AmazonRedshift.
Returns:
The response from the ModifyEventSubscription service method, as returned by AmazonRedshift.
Throws:
com.amazonaws.services.redshift.model.SubscriptionCategoryNotFoundException
com.amazonaws.services.redshift.model.InvalidSubscriptionStateException
com.amazonaws.services.redshift.model.SubscriptionEventIdNotFoundException
com.amazonaws.services.redshift.model.SubscriptionSeverityNotFoundException
com.amazonaws.services.redshift.model.SourceNotFoundException
com.amazonaws.services.redshift.model.SNSNoAuthorizationException
com.amazonaws.services.redshift.model.SNSTopicArnNotFoundException
com.amazonaws.services.redshift.model.SubscriptionNotFoundException
com.amazonaws.services.redshift.model.SNSInvalidTopicException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRedshift indicating either a problem with the data in the request, or a server side issue.
    public EventSubscription modifyEventSubscription(ModifyEventSubscriptionRequest modifyEventSubscriptionRequest) {
        ExecutionContext executionContext = createExecutionContext(modifyEventSubscriptionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ModifyEventSubscriptionRequestrequest = null;
        Response<EventSubscriptionresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.