AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Redshift

import "github.com/aws/aws-sdk-go/service/redshift"

type Redshift struct { *client.Client }

Redshift provides the API operation methods for making requests to Amazon Redshift. See this package's package overview docs for details on the service.

Redshift methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

AcceptReservedNodeExchange

func (c *Redshift) AcceptReservedNodeExchange(input *AcceptReservedNodeExchangeInput) (*AcceptReservedNodeExchangeOutput, error)

AcceptReservedNodeExchange API operation for Amazon Redshift.

Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the configuration (term, payment type, or number of nodes) and no additional costs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation AcceptReservedNodeExchange for usage and error information.

Returned Error Codes:

  • ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound" The specified reserved compute node not found.

  • ErrCodeInvalidReservedNodeStateFault "InvalidReservedNodeState" Indicates that the Reserved Node being exchanged is not in an active state.

  • ErrCodeReservedNodeAlreadyMigratedFault "ReservedNodeAlreadyMigrated" Indicates that the reserved node has already been exchanged.

  • ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" Specified offering does not exist.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

  • ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault" Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.

  • ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists" User already has a reservation with the given identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AcceptReservedNodeExchange

AcceptReservedNodeExchangeRequest

func (c *Redshift) AcceptReservedNodeExchangeRequest(input *AcceptReservedNodeExchangeInput) (req *request.Request, output *AcceptReservedNodeExchangeOutput)

AcceptReservedNodeExchangeRequest generates a "aws/request.Request" representing the client's request for the AcceptReservedNodeExchange operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AcceptReservedNodeExchange for more information on using the AcceptReservedNodeExchange API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AcceptReservedNodeExchangeRequest method. req, resp := client.AcceptReservedNodeExchangeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AcceptReservedNodeExchange

AcceptReservedNodeExchangeWithContext

func (c *Redshift) AcceptReservedNodeExchangeWithContext(ctx aws.Context, input *AcceptReservedNodeExchangeInput, opts ...request.Option) (*AcceptReservedNodeExchangeOutput, error)

AcceptReservedNodeExchangeWithContext is the same as AcceptReservedNodeExchange with the addition of the ability to pass a context and additional request options.

See AcceptReservedNodeExchange for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AuthorizeClusterSecurityGroupIngress

func (c *Redshift) AuthorizeClusterSecurityGroupIngress(input *AuthorizeClusterSecurityGroupIngressInput) (*AuthorizeClusterSecurityGroupIngressOutput, error)

AuthorizeClusterSecurityGroupIngress API operation for Amazon Redshift.

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 Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift cluster must be in the same AWS Region.

If you authorize access to a CIDR/IP address range, specify CIDRIP. For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing (http://en.wikipedia.org/wiki/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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation AuthorizeClusterSecurityGroupIngress for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" The state of the cluster security group is not available.

  • ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" The specified CIDR block or EC2 security group is already authorized for the specified cluster security group.

  • ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" The authorization quota for the cluster security group has been reached.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress

AuthorizeClusterSecurityGroupIngressRequest

func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeClusterSecurityGroupIngressInput) (req *request.Request, output *AuthorizeClusterSecurityGroupIngressOutput)

AuthorizeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the client's request for the AuthorizeClusterSecurityGroupIngress operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AuthorizeClusterSecurityGroupIngress for more information on using the AuthorizeClusterSecurityGroupIngress API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AuthorizeClusterSecurityGroupIngressRequest method. req, resp := client.AuthorizeClusterSecurityGroupIngressRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress

AuthorizeClusterSecurityGroupIngressWithContext

func (c *Redshift) AuthorizeClusterSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeClusterSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeClusterSecurityGroupIngressOutput, error)

AuthorizeClusterSecurityGroupIngressWithContext is the same as AuthorizeClusterSecurityGroupIngress with the addition of the ability to pass a context and additional request options.

See AuthorizeClusterSecurityGroupIngress for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AuthorizeSnapshotAccess

func (c *Redshift) AuthorizeSnapshotAccess(input *AuthorizeSnapshotAccessInput) (*AuthorizeSnapshotAccessOutput, error)

AuthorizeSnapshotAccess API operation for Amazon Redshift.

Authorizes the specified AWS customer account to restore the specified snapshot.

For more information about working with snapshots, go to Amazon Redshift Snapshots (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation AuthorizeSnapshotAccess for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists" The specified CIDR block or EC2 security group is already authorized for the specified cluster security group.

  • ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded" The authorization quota for the cluster security group has been reached.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess

AuthorizeSnapshotAccessRequest

func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccessInput) (req *request.Request, output *AuthorizeSnapshotAccessOutput)

AuthorizeSnapshotAccessRequest generates a "aws/request.Request" representing the client's request for the AuthorizeSnapshotAccess operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AuthorizeSnapshotAccess for more information on using the AuthorizeSnapshotAccess API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AuthorizeSnapshotAccessRequest method. req, resp := client.AuthorizeSnapshotAccessRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess

AuthorizeSnapshotAccessWithContext

func (c *Redshift) AuthorizeSnapshotAccessWithContext(ctx aws.Context, input *AuthorizeSnapshotAccessInput, opts ...request.Option) (*AuthorizeSnapshotAccessOutput, error)

AuthorizeSnapshotAccessWithContext is the same as AuthorizeSnapshotAccess with the addition of the ability to pass a context and additional request options.

See AuthorizeSnapshotAccess for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

BatchDeleteClusterSnapshots

func (c *Redshift) BatchDeleteClusterSnapshots(input *BatchDeleteClusterSnapshotsInput) (*BatchDeleteClusterSnapshotsOutput, error)

BatchDeleteClusterSnapshots API operation for Amazon Redshift.

Deletes a set of cluster snapshots.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation BatchDeleteClusterSnapshots for usage and error information.

Returned Error Codes:

  • ErrCodeBatchDeleteRequestSizeExceededFault "BatchDeleteRequestSizeExceeded" The maximum number for a batch delete of snapshots has been reached. The limit is 100.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots

BatchDeleteClusterSnapshotsRequest

func (c *Redshift) BatchDeleteClusterSnapshotsRequest(input *BatchDeleteClusterSnapshotsInput) (req *request.Request, output *BatchDeleteClusterSnapshotsOutput)

BatchDeleteClusterSnapshotsRequest generates a "aws/request.Request" representing the client's request for the BatchDeleteClusterSnapshots operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See BatchDeleteClusterSnapshots for more information on using the BatchDeleteClusterSnapshots API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the BatchDeleteClusterSnapshotsRequest method. req, resp := client.BatchDeleteClusterSnapshotsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots

BatchDeleteClusterSnapshotsWithContext

func (c *Redshift) BatchDeleteClusterSnapshotsWithContext(ctx aws.Context, input *BatchDeleteClusterSnapshotsInput, opts ...request.Option) (*BatchDeleteClusterSnapshotsOutput, error)

BatchDeleteClusterSnapshotsWithContext is the same as BatchDeleteClusterSnapshots with the addition of the ability to pass a context and additional request options.

See BatchDeleteClusterSnapshots for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

BatchModifyClusterSnapshots

func (c *Redshift) BatchModifyClusterSnapshots(input *BatchModifyClusterSnapshotsInput) (*BatchModifyClusterSnapshotsOutput, error)

BatchModifyClusterSnapshots API operation for Amazon Redshift.

Modifies the settings for a list of snapshots.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation BatchModifyClusterSnapshots for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.
  • ErrCodeBatchModifyClusterSnapshotsLimitExceededFault "BatchModifyClusterSnapshotsLimitExceededFault" The maximum number for snapshot identifiers has been reached. The limit is 100.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots

BatchModifyClusterSnapshotsRequest

func (c *Redshift) BatchModifyClusterSnapshotsRequest(input *BatchModifyClusterSnapshotsInput) (req *request.Request, output *BatchModifyClusterSnapshotsOutput)

BatchModifyClusterSnapshotsRequest generates a "aws/request.Request" representing the client's request for the BatchModifyClusterSnapshots operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See BatchModifyClusterSnapshots for more information on using the BatchModifyClusterSnapshots API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the BatchModifyClusterSnapshotsRequest method. req, resp := client.BatchModifyClusterSnapshotsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots

BatchModifyClusterSnapshotsWithContext

func (c *Redshift) BatchModifyClusterSnapshotsWithContext(ctx aws.Context, input *BatchModifyClusterSnapshotsInput, opts ...request.Option) (*BatchModifyClusterSnapshotsOutput, error)

BatchModifyClusterSnapshotsWithContext is the same as BatchModifyClusterSnapshots with the addition of the ability to pass a context and additional request options.

See BatchModifyClusterSnapshots for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CancelResize

func (c *Redshift) CancelResize(input *CancelResizeInput) (*CancelResizeOutput, error)

CancelResize API operation for Amazon Redshift.

Cancels a resize operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CancelResize for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeResizeNotFoundFault "ResizeNotFound" A resize operation for the specified cluster is not found.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize

CancelResizeRequest

func (c *Redshift) CancelResizeRequest(input *CancelResizeInput) (req *request.Request, output *CancelResizeOutput)

CancelResizeRequest generates a "aws/request.Request" representing the client's request for the CancelResize operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelResize for more information on using the CancelResize API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelResizeRequest method. req, resp := client.CancelResizeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize

CancelResizeWithContext

func (c *Redshift) CancelResizeWithContext(ctx aws.Context, input *CancelResizeInput, opts ...request.Option) (*CancelResizeOutput, error)

CancelResizeWithContext is the same as CancelResize with the addition of the ability to pass a context and additional request options.

See CancelResize for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CopyClusterSnapshot

func (c *Redshift) CopyClusterSnapshot(input *CopyClusterSnapshotInput) (*CopyClusterSnapshotOutput, error)

CopyClusterSnapshot API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CopyClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" The value specified as a snapshot identifier is already used by an existing snapshot.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" The request would result in the user exceeding the allowed number of cluster snapshots.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot

CopyClusterSnapshotRequest

func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) (req *request.Request, output *CopyClusterSnapshotOutput)

CopyClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the CopyClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CopyClusterSnapshot for more information on using the CopyClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CopyClusterSnapshotRequest method. req, resp := client.CopyClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot

CopyClusterSnapshotWithContext

func (c *Redshift) CopyClusterSnapshotWithContext(ctx aws.Context, input *CopyClusterSnapshotInput, opts ...request.Option) (*CopyClusterSnapshotOutput, error)

CopyClusterSnapshotWithContext is the same as CopyClusterSnapshot with the addition of the ability to pass a context and additional request options.

See CopyClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateCluster

func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error)

CreateCluster API operation for Amazon Redshift.

Creates a new cluster.

To create a cluster in Virtual Private Cloud (VPC), you must provide a cluster subnet group name. The cluster subnet group identifies the subnets of your VPC that Amazon Redshift uses when creating the cluster. For more information about managing clusters, go to Amazon Redshift Clusters (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateCluster for usage and error information.

Returned Error Codes:

  • ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" The account already has a cluster with the given identifier.

  • ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" The number of nodes specified exceeds the allotted capacity of the cluster.

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to Limits in Amazon Redshift

(http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.
  • ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" The operation would exceed the number of nodes allowed for a cluster.

  • ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" The cluster subnet group name does not refer to an existing cluster subnet group.

  • ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" The cluster subnet group does not cover all Availability Zones.

  • ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" The cluster subnet group cannot be deleted because it is in use.

  • ErrCodeInvalidSubnet "InvalidSubnet" The requested subnet is not valid, or not all of the subnets are in the same VPC.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" There is no Amazon Redshift HSM client certificate with the specified identifier.

  • ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" There is no Amazon Redshift HSM configuration with the specified identifier.

  • ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" The Elastic IP (EIP) is invalid or cannot be found.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

  • ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" The provided cluster track name is not valid.

  • ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" We could not find the specified snapshot schedule.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster

CreateClusterParameterGroup

func (c *Redshift) CreateClusterParameterGroup(input *CreateClusterParameterGroupInput) (*CreateClusterParameterGroupOutput, error)

CreateClusterParameterGroup API operation for Amazon Redshift.

Creates an Amazon Redshift parameter group.

Creating parameter groups is independent of creating clusters. You can associate a cluster with a parameter group when you create the cluster. You can also associate an existing cluster with a parameter group after the cluster is created by using ModifyCluster.

Parameters in the parameter group define specific behavior that applies to the databases you create on the cluster. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateClusterParameterGroup for usage and error information.

Returned Error Codes:

  • ErrCodeClusterParameterGroupQuotaExceededFault "ClusterParameterGroupQuotaExceeded" The request would result in the user exceeding the allowed number of cluster parameter groups. For information about increasing your quota, go to Limits in Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.

  • ErrCodeClusterParameterGroupAlreadyExistsFault "ClusterParameterGroupAlreadyExists" A cluster parameter group with the same name already exists.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup

CreateClusterParameterGroupRequest

func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParameterGroupInput) (req *request.Request, output *CreateClusterParameterGroupOutput)

CreateClusterParameterGroupRequest generates a "aws/request.Request" representing the client's request for the CreateClusterParameterGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateClusterParameterGroup for more information on using the CreateClusterParameterGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateClusterParameterGroupRequest method. req, resp := client.CreateClusterParameterGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup

CreateClusterParameterGroupWithContext

func (c *Redshift) CreateClusterParameterGroupWithContext(ctx aws.Context, input *CreateClusterParameterGroupInput, opts ...request.Option) (*CreateClusterParameterGroupOutput, error)

CreateClusterParameterGroupWithContext is the same as CreateClusterParameterGroup with the addition of the ability to pass a context and additional request options.

See CreateClusterParameterGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateClusterRequest

func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput)

CreateClusterRequest generates a "aws/request.Request" representing the client's request for the CreateCluster operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCluster for more information on using the CreateCluster API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateClusterRequest method. req, resp := client.CreateClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster

CreateClusterSecurityGroup

func (c *Redshift) CreateClusterSecurityGroup(input *CreateClusterSecurityGroupInput) (*CreateClusterSecurityGroupOutput, error)

CreateClusterSecurityGroup API operation for Amazon Redshift.

Creates a new Amazon Redshift security group. You use security groups to control access to non-VPC clusters.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateClusterSecurityGroup for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSecurityGroupAlreadyExistsFault "ClusterSecurityGroupAlreadyExists" A cluster security group with the same name already exists.

  • ErrCodeClusterSecurityGroupQuotaExceededFault "QuotaExceeded.ClusterSecurityGroup" The request would result in the user exceeding the allowed number of cluster security groups. For information about increasing your quota, go to Limits in Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup

CreateClusterSecurityGroupRequest

func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurityGroupInput) (req *request.Request, output *CreateClusterSecurityGroupOutput)

CreateClusterSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the CreateClusterSecurityGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateClusterSecurityGroup for more information on using the CreateClusterSecurityGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateClusterSecurityGroupRequest method. req, resp := client.CreateClusterSecurityGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup

CreateClusterSecurityGroupWithContext

func (c *Redshift) CreateClusterSecurityGroupWithContext(ctx aws.Context, input *CreateClusterSecurityGroupInput, opts ...request.Option) (*CreateClusterSecurityGroupOutput, error)

CreateClusterSecurityGroupWithContext is the same as CreateClusterSecurityGroup with the addition of the ability to pass a context and additional request options.

See CreateClusterSecurityGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateClusterSnapshot

func (c *Redshift) CreateClusterSnapshot(input *CreateClusterSnapshotInput) (*CreateClusterSnapshotOutput, error)

CreateClusterSnapshot API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" The value specified as a snapshot identifier is already used by an existing snapshot.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" The request would result in the user exceeding the allowed number of cluster snapshots.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot

CreateClusterSnapshotRequest

func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInput) (req *request.Request, output *CreateClusterSnapshotOutput)

CreateClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the CreateClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateClusterSnapshot for more information on using the CreateClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateClusterSnapshotRequest method. req, resp := client.CreateClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot

CreateClusterSnapshotWithContext

func (c *Redshift) CreateClusterSnapshotWithContext(ctx aws.Context, input *CreateClusterSnapshotInput, opts ...request.Option) (*CreateClusterSnapshotOutput, error)

CreateClusterSnapshotWithContext is the same as CreateClusterSnapshot with the addition of the ability to pass a context and additional request options.

See CreateClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateClusterSubnetGroup

func (c *Redshift) CreateClusterSubnetGroup(input *CreateClusterSubnetGroupInput) (*CreateClusterSubnetGroupOutput, error)

CreateClusterSubnetGroup API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateClusterSubnetGroup for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSubnetGroupAlreadyExistsFault "ClusterSubnetGroupAlreadyExists" A ClusterSubnetGroupName is already used by an existing cluster subnet group.

  • ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault" The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.

  • ErrCodeInvalidSubnet "InvalidSubnet" The requested subnet is not valid, or not all of the subnets are in the same VPC.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup

CreateClusterSubnetGroupRequest

func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGroupInput) (req *request.Request, output *CreateClusterSubnetGroupOutput)

CreateClusterSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the CreateClusterSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateClusterSubnetGroup for more information on using the CreateClusterSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateClusterSubnetGroupRequest method. req, resp := client.CreateClusterSubnetGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup

CreateClusterSubnetGroupWithContext

func (c *Redshift) CreateClusterSubnetGroupWithContext(ctx aws.Context, input *CreateClusterSubnetGroupInput, opts ...request.Option) (*CreateClusterSubnetGroupOutput, error)

CreateClusterSubnetGroupWithContext is the same as CreateClusterSubnetGroup with the addition of the ability to pass a context and additional request options.

See CreateClusterSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateClusterWithContext

func (c *Redshift) CreateClusterWithContext(ctx aws.Context, input *CreateClusterInput, opts ...request.Option) (*CreateClusterOutput, error)

CreateClusterWithContext is the same as CreateCluster with the addition of the ability to pass a context and additional request options.

See CreateCluster for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateEventSubscription

func (c *Redshift) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error)

CreateEventSubscription API operation for Amazon Redshift.

Creates an Amazon Redshift event notification subscription. This action requires an ARN (Amazon Resource Name) of an Amazon SNS topic created by either the Amazon Redshift console, the Amazon SNS console, or the Amazon SNS API. To obtain an ARN with Amazon SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the source type, and lists of Amazon Redshift source IDs, event categories, and event severities. Notifications will be sent for all events you want that match those criteria. For example, you can specify source type = cluster, source ID = my-cluster-1 and mycluster2, event categories = Availability, Backup, and severity = ERROR. The subscription will only send notifications for those ERROR events in the Availability and Backup categories for the specified clusters.

If you specify both the source type and source IDs, such as source type = cluster and source identifier = my-cluster-1, notifications will be sent for all the cluster events for my-cluster-1. If you specify a source type but do not specify a source identifier, you will receive notice of the events for the objects of that type in your AWS account. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all Amazon Redshift sources belonging to your AWS account. You must specify a source type if you specify a source ID.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateEventSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist" There is already an existing event notification subscription with the specified name.

  • ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.

  • ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" You do not have permission to publish to the specified Amazon SNS topic.

  • ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist.

  • ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound" An Amazon Redshift event with the specified event ID does not exist.

  • ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security.

  • ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound" The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO.

  • ErrCodeSourceNotFoundFault "SourceNotFound" The specified Amazon Redshift event source could not be found.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription

CreateEventSubscriptionRequest

func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput)

CreateEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the CreateEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEventSubscription for more information on using the CreateEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEventSubscriptionRequest method. req, resp := client.CreateEventSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription

CreateEventSubscriptionWithContext

func (c *Redshift) CreateEventSubscriptionWithContext(ctx aws.Context, input *CreateEventSubscriptionInput, opts ...request.Option) (*CreateEventSubscriptionOutput, error)

CreateEventSubscriptionWithContext is the same as CreateEventSubscription with the addition of the ability to pass a context and additional request options.

See CreateEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateHsmClientCertificate

func (c *Redshift) CreateHsmClientCertificate(input *CreateHsmClientCertificateInput) (*CreateHsmClientCertificateOutput, error)

CreateHsmClientCertificate API operation for Amazon Redshift.

Creates an HSM client certificate that an Amazon Redshift cluster will use to connect to the client's HSM in order to store and retrieve the keys used to encrypt the cluster databases.

The command returns a public key, which you must store in the HSM. In addition to creating the HSM certificate, you must create an Amazon Redshift HSM configuration that provides a cluster the information needed to store and use encryption keys in the HSM. For more information, go to Hardware Security Modules (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateHsmClientCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeHsmClientCertificateAlreadyExistsFault "HsmClientCertificateAlreadyExistsFault" There is already an existing Amazon Redshift HSM client certificate with the specified identifier.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate

CreateHsmClientCertificateRequest

func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCertificateInput) (req *request.Request, output *CreateHsmClientCertificateOutput)

CreateHsmClientCertificateRequest generates a "aws/request.Request" representing the client's request for the CreateHsmClientCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateHsmClientCertificate for more information on using the CreateHsmClientCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateHsmClientCertificateRequest method. req, resp := client.CreateHsmClientCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate

CreateHsmClientCertificateWithContext

func (c *Redshift) CreateHsmClientCertificateWithContext(ctx aws.Context, input *CreateHsmClientCertificateInput, opts ...request.Option) (*CreateHsmClientCertificateOutput, error)

CreateHsmClientCertificateWithContext is the same as CreateHsmClientCertificate with the addition of the ability to pass a context and additional request options.

See CreateHsmClientCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateHsmConfiguration

func (c *Redshift) CreateHsmConfiguration(input *CreateHsmConfigurationInput) (*CreateHsmConfigurationOutput, error)

CreateHsmConfiguration API operation for Amazon Redshift.

Creates an HSM configuration that contains the information required by an Amazon Redshift cluster to store and use database encryption keys in a Hardware Security Module (HSM). After creating the HSM configuration, you can specify it as a parameter when creating a cluster. The cluster will then store its encryption keys in the HSM.

In addition to creating an HSM configuration, you must also create an HSM client certificate. For more information, go to Hardware Security Modules (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateHsmConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeHsmConfigurationAlreadyExistsFault "HsmConfigurationAlreadyExistsFault" There is already an existing Amazon Redshift HSM configuration with the specified identifier.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration

CreateHsmConfigurationRequest

func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationInput) (req *request.Request, output *CreateHsmConfigurationOutput)

CreateHsmConfigurationRequest generates a "aws/request.Request" representing the client's request for the CreateHsmConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateHsmConfiguration for more information on using the CreateHsmConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateHsmConfigurationRequest method. req, resp := client.CreateHsmConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration

CreateHsmConfigurationWithContext

func (c *Redshift) CreateHsmConfigurationWithContext(ctx aws.Context, input *CreateHsmConfigurationInput, opts ...request.Option) (*CreateHsmConfigurationOutput, error)

CreateHsmConfigurationWithContext is the same as CreateHsmConfiguration with the addition of the ability to pass a context and additional request options.

See CreateHsmConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateSnapshotCopyGrant

func (c *Redshift) CreateSnapshotCopyGrant(input *CreateSnapshotCopyGrantInput) (*CreateSnapshotCopyGrantOutput, error)

CreateSnapshotCopyGrant API operation for Amazon Redshift.

Creates a snapshot copy grant that permits Amazon Redshift to use a customer master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied snapshots in a destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateSnapshotCopyGrant for usage and error information.

Returned Error Codes:

  • ErrCodeSnapshotCopyGrantAlreadyExistsFault "SnapshotCopyGrantAlreadyExistsFault" The snapshot copy grant can't be created because a grant with the same name already exists.

  • ErrCodeSnapshotCopyGrantQuotaExceededFault "SnapshotCopyGrantQuotaExceededFault" The AWS account has exceeded the maximum number of snapshot copy grants in this region.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant

CreateSnapshotCopyGrantRequest

func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrantInput) (req *request.Request, output *CreateSnapshotCopyGrantOutput)

CreateSnapshotCopyGrantRequest generates a "aws/request.Request" representing the client's request for the CreateSnapshotCopyGrant operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSnapshotCopyGrant for more information on using the CreateSnapshotCopyGrant API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSnapshotCopyGrantRequest method. req, resp := client.CreateSnapshotCopyGrantRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant

CreateSnapshotCopyGrantWithContext

func (c *Redshift) CreateSnapshotCopyGrantWithContext(ctx aws.Context, input *CreateSnapshotCopyGrantInput, opts ...request.Option) (*CreateSnapshotCopyGrantOutput, error)

CreateSnapshotCopyGrantWithContext is the same as CreateSnapshotCopyGrant with the addition of the ability to pass a context and additional request options.

See CreateSnapshotCopyGrant for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateSnapshotSchedule

func (c *Redshift) CreateSnapshotSchedule(input *CreateSnapshotScheduleInput) (*CreateSnapshotScheduleOutput, error)

CreateSnapshotSchedule API operation for Amazon Redshift.

Creates a new snapshot schedule.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateSnapshotSchedule for usage and error information.

Returned Error Codes:

  • ErrCodeSnapshotScheduleAlreadyExistsFault "SnapshotScheduleAlreadyExists" The specified snapshot schedule already exists.

  • ErrCodeInvalidScheduleFault "InvalidSchedule" The schedule you submitted isn't valid.

  • ErrCodeSnapshotScheduleQuotaExceededFault "SnapshotScheduleQuotaExceeded" You have exceeded the quota of snapshot schedules.

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeScheduleDefinitionTypeUnsupportedFault "ScheduleDefinitionTypeUnsupported" The definition you submitted is not supported.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule

CreateSnapshotScheduleRequest

func (c *Redshift) CreateSnapshotScheduleRequest(input *CreateSnapshotScheduleInput) (req *request.Request, output *CreateSnapshotScheduleOutput)

CreateSnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the CreateSnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSnapshotSchedule for more information on using the CreateSnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSnapshotScheduleRequest method. req, resp := client.CreateSnapshotScheduleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule

CreateSnapshotScheduleWithContext

func (c *Redshift) CreateSnapshotScheduleWithContext(ctx aws.Context, input *CreateSnapshotScheduleInput, opts ...request.Option) (*CreateSnapshotScheduleOutput, error)

CreateSnapshotScheduleWithContext is the same as CreateSnapshotSchedule with the addition of the ability to pass a context and additional request options.

See CreateSnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateTags

func (c *Redshift) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error)

CreateTags API operation for Amazon Redshift.

Adds one or more tags to a specified resource.

A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, you will receive an error and the attempt will fail.

If you specify a key that already exists for the resource, the value for that key will be updated with the new value.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation CreateTags for usage and error information.

Returned Error Codes:

  • ErrCodeTagLimitExceededFault "TagLimitExceededFault" You have exceeded the number of tags allowed.

  • ErrCodeResourceNotFoundFault "ResourceNotFoundFault" The resource could not be found.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags

CreateTagsRequest

func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput)

CreateTagsRequest generates a "aws/request.Request" representing the client's request for the CreateTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTags for more information on using the CreateTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateTagsRequest method. req, resp := client.CreateTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags

CreateTagsWithContext

func (c *Redshift) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error)

CreateTagsWithContext is the same as CreateTags with the addition of the ability to pass a context and additional request options.

See CreateTags for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteCluster

func (c *Redshift) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error)

DeleteCluster API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) 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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteCluster for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" The value specified as a snapshot identifier is already used by an existing snapshot.

  • ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded" The request would result in the user exceeding the allowed number of cluster snapshots.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster

DeleteClusterParameterGroup

func (c *Redshift) DeleteClusterParameterGroup(input *DeleteClusterParameterGroupInput) (*DeleteClusterParameterGroupOutput, error)

DeleteClusterParameterGroup API operation for Amazon Redshift.

Deletes a specified Amazon Redshift parameter group.

You cannot delete a parameter group if it is associated with a cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteClusterParameterGroup for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" The cluster parameter group action can not be completed because another task is in progress that involves the parameter group. Wait a few moments and try the operation again.

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup

DeleteClusterParameterGroupRequest

func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParameterGroupInput) (req *request.Request, output *DeleteClusterParameterGroupOutput)

DeleteClusterParameterGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteClusterParameterGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteClusterParameterGroup for more information on using the DeleteClusterParameterGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteClusterParameterGroupRequest method. req, resp := client.DeleteClusterParameterGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup

DeleteClusterParameterGroupWithContext

func (c *Redshift) DeleteClusterParameterGroupWithContext(ctx aws.Context, input *DeleteClusterParameterGroupInput, opts ...request.Option) (*DeleteClusterParameterGroupOutput, error)

DeleteClusterParameterGroupWithContext is the same as DeleteClusterParameterGroup with the addition of the ability to pass a context and additional request options.

See DeleteClusterParameterGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteClusterRequest

func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput)

DeleteClusterRequest generates a "aws/request.Request" representing the client's request for the DeleteCluster operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCluster for more information on using the DeleteCluster API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteClusterRequest method. req, resp := client.DeleteClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster

DeleteClusterSecurityGroup

func (c *Redshift) DeleteClusterSecurityGroup(input *DeleteClusterSecurityGroupInput) (*DeleteClusterSecurityGroupOutput, error)

DeleteClusterSecurityGroup API operation for Amazon Redshift.

Deletes an Amazon Redshift security group.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteClusterSecurityGroup for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" The state of the cluster security group is not available.

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup

DeleteClusterSecurityGroupRequest

func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurityGroupInput) (req *request.Request, output *DeleteClusterSecurityGroupOutput)

DeleteClusterSecurityGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteClusterSecurityGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteClusterSecurityGroup for more information on using the DeleteClusterSecurityGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteClusterSecurityGroupRequest method. req, resp := client.DeleteClusterSecurityGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup

DeleteClusterSecurityGroupWithContext

func (c *Redshift) DeleteClusterSecurityGroupWithContext(ctx aws.Context, input *DeleteClusterSecurityGroupInput, opts ...request.Option) (*DeleteClusterSecurityGroupOutput, error)

DeleteClusterSecurityGroupWithContext is the same as DeleteClusterSecurityGroup with the addition of the ability to pass a context and additional request options.

See DeleteClusterSecurityGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteClusterSnapshot

func (c *Redshift) DeleteClusterSnapshot(input *DeleteClusterSnapshotInput) (*DeleteClusterSnapshotOutput, error)

DeleteClusterSnapshot API operation for Amazon Redshift.

Deletes the specified manual snapshot. The snapshot must be in the available state, with no other users authorized to access the snapshot.

Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to access the snapshot, you must revoke all of the authorizations before you can delete the snapshot.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot

DeleteClusterSnapshotRequest

func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInput) (req *request.Request, output *DeleteClusterSnapshotOutput)

DeleteClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the DeleteClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteClusterSnapshot for more information on using the DeleteClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteClusterSnapshotRequest method. req, resp := client.DeleteClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot

DeleteClusterSnapshotWithContext

func (c *Redshift) DeleteClusterSnapshotWithContext(ctx aws.Context, input *DeleteClusterSnapshotInput, opts ...request.Option) (*DeleteClusterSnapshotOutput, error)

DeleteClusterSnapshotWithContext is the same as DeleteClusterSnapshot with the addition of the ability to pass a context and additional request options.

See DeleteClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteClusterSubnetGroup

func (c *Redshift) DeleteClusterSubnetGroup(input *DeleteClusterSubnetGroupInput) (*DeleteClusterSubnetGroupOutput, error)

DeleteClusterSubnetGroup API operation for Amazon Redshift.

Deletes the specified cluster subnet group.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteClusterSubnetGroup for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" The cluster subnet group cannot be deleted because it is in use.

  • ErrCodeInvalidClusterSubnetStateFault "InvalidClusterSubnetStateFault" The state of the subnet is invalid.

  • ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" The cluster subnet group name does not refer to an existing cluster subnet group.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup

DeleteClusterSubnetGroupRequest

func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGroupInput) (req *request.Request, output *DeleteClusterSubnetGroupOutput)

DeleteClusterSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteClusterSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteClusterSubnetGroup for more information on using the DeleteClusterSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteClusterSubnetGroupRequest method. req, resp := client.DeleteClusterSubnetGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup

DeleteClusterSubnetGroupWithContext

func (c *Redshift) DeleteClusterSubnetGroupWithContext(ctx aws.Context, input *DeleteClusterSubnetGroupInput, opts ...request.Option) (*DeleteClusterSubnetGroupOutput, error)

DeleteClusterSubnetGroupWithContext is the same as DeleteClusterSubnetGroup with the addition of the ability to pass a context and additional request options.

See DeleteClusterSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteClusterWithContext

func (c *Redshift) DeleteClusterWithContext(ctx aws.Context, input *DeleteClusterInput, opts ...request.Option) (*DeleteClusterOutput, error)

DeleteClusterWithContext is the same as DeleteCluster with the addition of the ability to pass a context and additional request options.

See DeleteCluster for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteEventSubscription

func (c *Redshift) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error)

DeleteEventSubscription API operation for Amazon Redshift.

Deletes an Amazon Redshift event notification subscription.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteEventSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" An Amazon Redshift event notification subscription with the specified name does not exist.

  • ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault" The subscription request is invalid because it is a duplicate request. This subscription request is already in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription

DeleteEventSubscriptionRequest

func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput)

DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DeleteEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEventSubscription for more information on using the DeleteEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEventSubscriptionRequest method. req, resp := client.DeleteEventSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription

DeleteEventSubscriptionWithContext

func (c *Redshift) DeleteEventSubscriptionWithContext(ctx aws.Context, input *DeleteEventSubscriptionInput, opts ...request.Option) (*DeleteEventSubscriptionOutput, error)

DeleteEventSubscriptionWithContext is the same as DeleteEventSubscription with the addition of the ability to pass a context and additional request options.

See DeleteEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteHsmClientCertificate

func (c *Redshift) DeleteHsmClientCertificate(input *DeleteHsmClientCertificateInput) (*DeleteHsmClientCertificateOutput, error)

DeleteHsmClientCertificate API operation for Amazon Redshift.

Deletes the specified HSM client certificate.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteHsmClientCertificate for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidHsmClientCertificateStateFault "InvalidHsmClientCertificateStateFault" The specified HSM client certificate is not in the available state, or it is still in use by one or more Amazon Redshift clusters.

  • ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" There is no Amazon Redshift HSM client certificate with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate

DeleteHsmClientCertificateRequest

func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCertificateInput) (req *request.Request, output *DeleteHsmClientCertificateOutput)

DeleteHsmClientCertificateRequest generates a "aws/request.Request" representing the client's request for the DeleteHsmClientCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteHsmClientCertificate for more information on using the DeleteHsmClientCertificate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteHsmClientCertificateRequest method. req, resp := client.DeleteHsmClientCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate

DeleteHsmClientCertificateWithContext

func (c *Redshift) DeleteHsmClientCertificateWithContext(ctx aws.Context, input *DeleteHsmClientCertificateInput, opts ...request.Option) (*DeleteHsmClientCertificateOutput, error)

DeleteHsmClientCertificateWithContext is the same as DeleteHsmClientCertificate with the addition of the ability to pass a context and additional request options.

See DeleteHsmClientCertificate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteHsmConfiguration

func (c *Redshift) DeleteHsmConfiguration(input *DeleteHsmConfigurationInput) (*DeleteHsmConfigurationOutput, error)

DeleteHsmConfiguration API operation for Amazon Redshift.

Deletes the specified Amazon Redshift HSM configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteHsmConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidHsmConfigurationStateFault "InvalidHsmConfigurationStateFault" The specified HSM configuration is not in the available state, or it is still in use by one or more Amazon Redshift clusters.

  • ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" There is no Amazon Redshift HSM configuration with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration

DeleteHsmConfigurationRequest

func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationInput) (req *request.Request, output *DeleteHsmConfigurationOutput)

DeleteHsmConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteHsmConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteHsmConfiguration for more information on using the DeleteHsmConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteHsmConfigurationRequest method. req, resp := client.DeleteHsmConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration

DeleteHsmConfigurationWithContext

func (c *Redshift) DeleteHsmConfigurationWithContext(ctx aws.Context, input *DeleteHsmConfigurationInput, opts ...request.Option) (*DeleteHsmConfigurationOutput, error)

DeleteHsmConfigurationWithContext is the same as DeleteHsmConfiguration with the addition of the ability to pass a context and additional request options.

See DeleteHsmConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteSnapshotCopyGrant

func (c *Redshift) DeleteSnapshotCopyGrant(input *DeleteSnapshotCopyGrantInput) (*DeleteSnapshotCopyGrantOutput, error)

DeleteSnapshotCopyGrant API operation for Amazon Redshift.

Deletes the specified snapshot copy grant.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteSnapshotCopyGrant for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidSnapshotCopyGrantStateFault "InvalidSnapshotCopyGrantStateFault" The snapshot copy grant can't be deleted because it is used by one or more clusters.

  • ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" The specified snapshot copy grant can't be found. Make sure that the name is typed correctly and that the grant exists in the destination region.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant

DeleteSnapshotCopyGrantRequest

func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrantInput) (req *request.Request, output *DeleteSnapshotCopyGrantOutput)

DeleteSnapshotCopyGrantRequest generates a "aws/request.Request" representing the client's request for the DeleteSnapshotCopyGrant operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSnapshotCopyGrant for more information on using the DeleteSnapshotCopyGrant API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSnapshotCopyGrantRequest method. req, resp := client.DeleteSnapshotCopyGrantRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant

DeleteSnapshotCopyGrantWithContext

func (c *Redshift) DeleteSnapshotCopyGrantWithContext(ctx aws.Context, input *DeleteSnapshotCopyGrantInput, opts ...request.Option) (*DeleteSnapshotCopyGrantOutput, error)

DeleteSnapshotCopyGrantWithContext is the same as DeleteSnapshotCopyGrant with the addition of the ability to pass a context and additional request options.

See DeleteSnapshotCopyGrant for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteSnapshotSchedule

func (c *Redshift) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error)

DeleteSnapshotSchedule API operation for Amazon Redshift.

Deletes a snapshot schedule.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteSnapshotSchedule for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState" The cluster snapshot schedule state is not valid.

  • ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" We could not find the specified snapshot schedule.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule

DeleteSnapshotScheduleRequest

func (c *Redshift) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput)

DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the DeleteSnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSnapshotSchedule for more information on using the DeleteSnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSnapshotScheduleRequest method. req, resp := client.DeleteSnapshotScheduleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule

DeleteSnapshotScheduleWithContext

func (c *Redshift) DeleteSnapshotScheduleWithContext(ctx aws.Context, input *DeleteSnapshotScheduleInput, opts ...request.Option) (*DeleteSnapshotScheduleOutput, error)

DeleteSnapshotScheduleWithContext is the same as DeleteSnapshotSchedule with the addition of the ability to pass a context and additional request options.

See DeleteSnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteTags

func (c *Redshift) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error)

DeleteTags API operation for Amazon Redshift.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DeleteTags for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundFault "ResourceNotFoundFault" The resource could not be found.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags

DeleteTagsRequest

func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput)

DeleteTagsRequest generates a "aws/request.Request" representing the client's request for the DeleteTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTags for more information on using the DeleteTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteTagsRequest method. req, resp := client.DeleteTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags

DeleteTagsWithContext

func (c *Redshift) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error)

DeleteTagsWithContext is the same as DeleteTags with the addition of the ability to pass a context and additional request options.

See DeleteTags for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeAccountAttributes

func (c *Redshift) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributes API operation for Amazon Redshift.

Returns a list of attributes attached to an account

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeAccountAttributes for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes

DescribeAccountAttributesRequest

func (c *Redshift) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput)

DescribeAccountAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeAccountAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeAccountAttributes for more information on using the DescribeAccountAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeAccountAttributesRequest method. req, resp := client.DescribeAccountAttributesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes

DescribeAccountAttributesWithContext

func (c *Redshift) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of the ability to pass a context and additional request options.

See DescribeAccountAttributes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterDbRevisions

func (c *Redshift) DescribeClusterDbRevisions(input *DescribeClusterDbRevisionsInput) (*DescribeClusterDbRevisionsOutput, error)

DescribeClusterDbRevisions API operation for Amazon Redshift.

Returns an array of ClusterDbRevision objects.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterDbRevisions for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterDbRevisions

DescribeClusterDbRevisionsRequest

func (c *Redshift) DescribeClusterDbRevisionsRequest(input *DescribeClusterDbRevisionsInput) (req *request.Request, output *DescribeClusterDbRevisionsOutput)

DescribeClusterDbRevisionsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterDbRevisions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterDbRevisions for more information on using the DescribeClusterDbRevisions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterDbRevisionsRequest method. req, resp := client.DescribeClusterDbRevisionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterDbRevisions

DescribeClusterDbRevisionsWithContext

func (c *Redshift) DescribeClusterDbRevisionsWithContext(ctx aws.Context, input *DescribeClusterDbRevisionsInput, opts ...request.Option) (*DescribeClusterDbRevisionsOutput, error)

DescribeClusterDbRevisionsWithContext is the same as DescribeClusterDbRevisions with the addition of the ability to pass a context and additional request options.

See DescribeClusterDbRevisions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParameterGroups

func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParameterGroupsInput) (*DescribeClusterParameterGroupsOutput, error)

DescribeClusterParameterGroups API operation for Amazon Redshift.

Returns a list of Amazon Redshift parameter groups, including parameter groups you created and the default parameter group. For each parameter group, the response includes the parameter group name, description, and parameter group family name. You can optionally specify a name to retrieve the description of a specific parameter group.

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the Amazon Redshift Cluster Management Guide.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all parameter groups that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all parameter groups that have any combination of those values are returned.

If both tag keys and values are omitted from the request, parameter groups are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterParameterGroups for usage and error information.

Returned Error Codes:

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups

DescribeClusterParameterGroupsPages

func (c *Redshift) DescribeClusterParameterGroupsPages(input *DescribeClusterParameterGroupsInput, fn func(*DescribeClusterParameterGroupsOutput, bool) bool) error

DescribeClusterParameterGroupsPages iterates over the pages of a DescribeClusterParameterGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterParameterGroups method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterParameterGroups operation. pageNum := 0 err := client.DescribeClusterParameterGroupsPages(params, func(page *DescribeClusterParameterGroupsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParameterGroupsPagesWithContext

func (c *Redshift) DescribeClusterParameterGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterParameterGroupsInput, fn func(*DescribeClusterParameterGroupsOutput, bool) bool, opts ...request.Option) error

DescribeClusterParameterGroupsPagesWithContext same as DescribeClusterParameterGroupsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParameterGroupsRequest

func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterParameterGroupsInput) (req *request.Request, output *DescribeClusterParameterGroupsOutput)

DescribeClusterParameterGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterParameterGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterParameterGroups for more information on using the DescribeClusterParameterGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterParameterGroupsRequest method. req, resp := client.DescribeClusterParameterGroupsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups

DescribeClusterParameterGroupsWithContext

func (c *Redshift) DescribeClusterParameterGroupsWithContext(ctx aws.Context, input *DescribeClusterParameterGroupsInput, opts ...request.Option) (*DescribeClusterParameterGroupsOutput, error)

DescribeClusterParameterGroupsWithContext is the same as DescribeClusterParameterGroups with the addition of the ability to pass a context and additional request options.

See DescribeClusterParameterGroups for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParameters

func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInput) (*DescribeClusterParametersOutput, error)

DescribeClusterParameters API operation for Amazon Redshift.

Returns a detailed list of parameters contained within the specified Amazon Redshift parameter group. For each parameter the response includes information such as parameter name, description, data type, value, whether the parameter value is modifiable, and so on.

You can specify source filter to retrieve parameters of only specific type. For example, to retrieve parameters that were modified by a user action such as from ModifyClusterParameterGroup, you can specify source equal to user.

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterParameters for usage and error information.

Returned Error Codes:

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters

DescribeClusterParametersPages

func (c *Redshift) DescribeClusterParametersPages(input *DescribeClusterParametersInput, fn func(*DescribeClusterParametersOutput, bool) bool) error

DescribeClusterParametersPages iterates over the pages of a DescribeClusterParameters operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterParameters method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterParameters operation. pageNum := 0 err := client.DescribeClusterParametersPages(params, func(page *DescribeClusterParametersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParametersPagesWithContext

func (c *Redshift) DescribeClusterParametersPagesWithContext(ctx aws.Context, input *DescribeClusterParametersInput, fn func(*DescribeClusterParametersOutput, bool) bool, opts ...request.Option) error

DescribeClusterParametersPagesWithContext same as DescribeClusterParametersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterParametersRequest

func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParametersInput) (req *request.Request, output *DescribeClusterParametersOutput)

DescribeClusterParametersRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterParameters operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterParameters for more information on using the DescribeClusterParameters API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterParametersRequest method. req, resp := client.DescribeClusterParametersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters

DescribeClusterParametersWithContext

func (c *Redshift) DescribeClusterParametersWithContext(ctx aws.Context, input *DescribeClusterParametersInput, opts ...request.Option) (*DescribeClusterParametersOutput, error)

DescribeClusterParametersWithContext is the same as DescribeClusterParameters with the addition of the ability to pass a context and additional request options.

See DescribeClusterParameters for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSecurityGroups

func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityGroupsInput) (*DescribeClusterSecurityGroupsOutput, error)

DescribeClusterSecurityGroups API operation for Amazon Redshift.

Returns information about Amazon Redshift security groups. If the name of a security group is specified, the response will contain only information about only that security group.

For information about managing security groups, go to Amazon Redshift Cluster Security Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) in the Amazon Redshift Cluster Management Guide.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all security groups that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all security groups that have any combination of those values are returned.

If both tag keys and values are omitted from the request, security groups are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterSecurityGroups for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups

DescribeClusterSecurityGroupsPages

func (c *Redshift) DescribeClusterSecurityGroupsPages(input *DescribeClusterSecurityGroupsInput, fn func(*DescribeClusterSecurityGroupsOutput, bool) bool) error

DescribeClusterSecurityGroupsPages iterates over the pages of a DescribeClusterSecurityGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterSecurityGroups method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterSecurityGroups operation. pageNum := 0 err := client.DescribeClusterSecurityGroupsPages(params, func(page *DescribeClusterSecurityGroupsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSecurityGroupsPagesWithContext

func (c *Redshift) DescribeClusterSecurityGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterSecurityGroupsInput, fn func(*DescribeClusterSecurityGroupsOutput, bool) bool, opts ...request.Option) error

DescribeClusterSecurityGroupsPagesWithContext same as DescribeClusterSecurityGroupsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSecurityGroupsRequest

func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSecurityGroupsInput) (req *request.Request, output *DescribeClusterSecurityGroupsOutput)

DescribeClusterSecurityGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterSecurityGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterSecurityGroups for more information on using the DescribeClusterSecurityGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterSecurityGroupsRequest method. req, resp := client.DescribeClusterSecurityGroupsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups

DescribeClusterSecurityGroupsWithContext

func (c *Redshift) DescribeClusterSecurityGroupsWithContext(ctx aws.Context, input *DescribeClusterSecurityGroupsInput, opts ...request.Option) (*DescribeClusterSecurityGroupsOutput, error)

DescribeClusterSecurityGroupsWithContext is the same as DescribeClusterSecurityGroups with the addition of the ability to pass a context and additional request options.

See DescribeClusterSecurityGroups for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSnapshots

func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput) (*DescribeClusterSnapshotsOutput, error)

DescribeClusterSnapshots API operation for Amazon Redshift.

Returns one or more snapshot objects, which contain metadata about your cluster snapshots. By default, this operation returns information about all snapshots of all clusters that are owned by you AWS customer account. No information is returned for snapshots owned by inactive AWS customer accounts.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all snapshots that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all snapshots that have any combination of those values are returned. Only snapshots that you own are returned in the response; shared snapshots are not returned with the tag key and tag value request parameters.

If both tag keys and values are omitted from the request, snapshots are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterSnapshots for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots

DescribeClusterSnapshotsPages

func (c *Redshift) DescribeClusterSnapshotsPages(input *DescribeClusterSnapshotsInput, fn func(*DescribeClusterSnapshotsOutput, bool) bool) error

DescribeClusterSnapshotsPages iterates over the pages of a DescribeClusterSnapshots operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterSnapshots method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterSnapshots operation. pageNum := 0 err := client.DescribeClusterSnapshotsPages(params, func(page *DescribeClusterSnapshotsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSnapshotsPagesWithContext

func (c *Redshift) DescribeClusterSnapshotsPagesWithContext(ctx aws.Context, input *DescribeClusterSnapshotsInput, fn func(*DescribeClusterSnapshotsOutput, bool) bool, opts ...request.Option) error

DescribeClusterSnapshotsPagesWithContext same as DescribeClusterSnapshotsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSnapshotsRequest

func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapshotsInput) (req *request.Request, output *DescribeClusterSnapshotsOutput)

DescribeClusterSnapshotsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterSnapshots operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterSnapshots for more information on using the DescribeClusterSnapshots API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterSnapshotsRequest method. req, resp := client.DescribeClusterSnapshotsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots

DescribeClusterSnapshotsWithContext

func (c *Redshift) DescribeClusterSnapshotsWithContext(ctx aws.Context, input *DescribeClusterSnapshotsInput, opts ...request.Option) (*DescribeClusterSnapshotsOutput, error)

DescribeClusterSnapshotsWithContext is the same as DescribeClusterSnapshots with the addition of the ability to pass a context and additional request options.

See DescribeClusterSnapshots for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSubnetGroups

func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroupsInput) (*DescribeClusterSubnetGroupsOutput, error)

DescribeClusterSubnetGroups API operation for Amazon Redshift.

Returns one or more cluster subnet group objects, which contain metadata about your cluster subnet groups. By default, this operation returns information about all cluster subnet groups that are defined in you AWS account.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all subnet groups that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all subnet groups that have any combination of those values are returned.

If both tag keys and values are omitted from the request, subnet groups are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterSubnetGroups for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" The cluster subnet group name does not refer to an existing cluster subnet group.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups

DescribeClusterSubnetGroupsPages

func (c *Redshift) DescribeClusterSubnetGroupsPages(input *DescribeClusterSubnetGroupsInput, fn func(*DescribeClusterSubnetGroupsOutput, bool) bool) error

DescribeClusterSubnetGroupsPages iterates over the pages of a DescribeClusterSubnetGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterSubnetGroups method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterSubnetGroups operation. pageNum := 0 err := client.DescribeClusterSubnetGroupsPages(params, func(page *DescribeClusterSubnetGroupsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSubnetGroupsPagesWithContext

func (c *Redshift) DescribeClusterSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterSubnetGroupsInput, fn func(*DescribeClusterSubnetGroupsOutput, bool) bool, opts ...request.Option) error

DescribeClusterSubnetGroupsPagesWithContext same as DescribeClusterSubnetGroupsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterSubnetGroupsRequest

func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubnetGroupsInput) (req *request.Request, output *DescribeClusterSubnetGroupsOutput)

DescribeClusterSubnetGroupsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterSubnetGroups operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterSubnetGroups for more information on using the DescribeClusterSubnetGroups API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterSubnetGroupsRequest method. req, resp := client.DescribeClusterSubnetGroupsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups

DescribeClusterSubnetGroupsWithContext

func (c *Redshift) DescribeClusterSubnetGroupsWithContext(ctx aws.Context, input *DescribeClusterSubnetGroupsInput, opts ...request.Option) (*DescribeClusterSubnetGroupsOutput, error)

DescribeClusterSubnetGroupsWithContext is the same as DescribeClusterSubnetGroups with the addition of the ability to pass a context and additional request options.

See DescribeClusterSubnetGroups for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterTracks

func (c *Redshift) DescribeClusterTracks(input *DescribeClusterTracksInput) (*DescribeClusterTracksOutput, error)

DescribeClusterTracks API operation for Amazon Redshift.

Returns a list of all the available maintenance tracks.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterTracks for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" The provided cluster track name is not valid.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterTracks

DescribeClusterTracksRequest

func (c *Redshift) DescribeClusterTracksRequest(input *DescribeClusterTracksInput) (req *request.Request, output *DescribeClusterTracksOutput)

DescribeClusterTracksRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterTracks operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterTracks for more information on using the DescribeClusterTracks API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterTracksRequest method. req, resp := client.DescribeClusterTracksRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterTracks

DescribeClusterTracksWithContext

func (c *Redshift) DescribeClusterTracksWithContext(ctx aws.Context, input *DescribeClusterTracksInput, opts ...request.Option) (*DescribeClusterTracksOutput, error)

DescribeClusterTracksWithContext is the same as DescribeClusterTracks with the addition of the ability to pass a context and additional request options.

See DescribeClusterTracks for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterVersions

func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) (*DescribeClusterVersionsOutput, error)

DescribeClusterVersions API operation for Amazon Redshift.

Returns descriptions of the available Amazon Redshift cluster versions. You can call this operation even before creating any clusters to learn more about the Amazon Redshift versions. For more information about managing clusters, go to Amazon Redshift Clusters (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusterVersions for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions

DescribeClusterVersionsPages

func (c *Redshift) DescribeClusterVersionsPages(input *DescribeClusterVersionsInput, fn func(*DescribeClusterVersionsOutput, bool) bool) error

DescribeClusterVersionsPages iterates over the pages of a DescribeClusterVersions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusterVersions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusterVersions operation. pageNum := 0 err := client.DescribeClusterVersionsPages(params, func(page *DescribeClusterVersionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterVersionsPagesWithContext

func (c *Redshift) DescribeClusterVersionsPagesWithContext(ctx aws.Context, input *DescribeClusterVersionsInput, fn func(*DescribeClusterVersionsOutput, bool) bool, opts ...request.Option) error

DescribeClusterVersionsPagesWithContext same as DescribeClusterVersionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusterVersionsRequest

func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersionsInput) (req *request.Request, output *DescribeClusterVersionsOutput)

DescribeClusterVersionsRequest generates a "aws/request.Request" representing the client's request for the DescribeClusterVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusterVersions for more information on using the DescribeClusterVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClusterVersionsRequest method. req, resp := client.DescribeClusterVersionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions

DescribeClusterVersionsWithContext

func (c *Redshift) DescribeClusterVersionsWithContext(ctx aws.Context, input *DescribeClusterVersionsInput, opts ...request.Option) (*DescribeClusterVersionsOutput, error)

DescribeClusterVersionsWithContext is the same as DescribeClusterVersions with the addition of the ability to pass a context and additional request options.

See DescribeClusterVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClusters

func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error)

DescribeClusters API operation for Amazon Redshift.

Returns properties of provisioned clusters including general cluster properties, cluster database properties, maintenance and backup properties, and security and access properties. This operation supports pagination. For more information about managing clusters, go to Amazon Redshift Clusters (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all clusters that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all clusters that have any combination of those values are returned.

If both tag keys and values are omitted from the request, clusters are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeClusters for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters

DescribeClustersPages

func (c *Redshift) DescribeClustersPages(input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool) error

DescribeClustersPages iterates over the pages of a DescribeClusters operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeClusters method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeClusters operation. pageNum := 0 err := client.DescribeClustersPages(params, func(page *DescribeClustersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeClustersPagesWithContext

func (c *Redshift) DescribeClustersPagesWithContext(ctx aws.Context, input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool, opts ...request.Option) error

DescribeClustersPagesWithContext same as DescribeClustersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeClustersRequest

func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *request.Request, output *DescribeClustersOutput)

DescribeClustersRequest generates a "aws/request.Request" representing the client's request for the DescribeClusters operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeClusters for more information on using the DescribeClusters API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeClustersRequest method. req, resp := client.DescribeClustersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters

DescribeClustersWithContext

func (c *Redshift) DescribeClustersWithContext(ctx aws.Context, input *DescribeClustersInput, opts ...request.Option) (*DescribeClustersOutput, error)

DescribeClustersWithContext is the same as DescribeClusters with the addition of the ability to pass a context and additional request options.

See DescribeClusters for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDefaultClusterParameters

func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultClusterParametersInput) (*DescribeDefaultClusterParametersOutput, error)

DescribeDefaultClusterParameters API operation for Amazon Redshift.

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

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeDefaultClusterParameters for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters

DescribeDefaultClusterParametersPages

func (c *Redshift) DescribeDefaultClusterParametersPages(input *DescribeDefaultClusterParametersInput, fn func(*DescribeDefaultClusterParametersOutput, bool) bool) error

DescribeDefaultClusterParametersPages iterates over the pages of a DescribeDefaultClusterParameters operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeDefaultClusterParameters method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeDefaultClusterParameters operation. pageNum := 0 err := client.DescribeDefaultClusterParametersPages(params, func(page *DescribeDefaultClusterParametersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeDefaultClusterParametersPagesWithContext

func (c *Redshift) DescribeDefaultClusterParametersPagesWithContext(ctx aws.Context, input *DescribeDefaultClusterParametersInput, fn func(*DescribeDefaultClusterParametersOutput, bool) bool, opts ...request.Option) error

DescribeDefaultClusterParametersPagesWithContext same as DescribeDefaultClusterParametersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeDefaultClusterParametersRequest

func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaultClusterParametersInput) (req *request.Request, output *DescribeDefaultClusterParametersOutput)

DescribeDefaultClusterParametersRequest generates a "aws/request.Request" representing the client's request for the DescribeDefaultClusterParameters operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeDefaultClusterParameters for more information on using the DescribeDefaultClusterParameters API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeDefaultClusterParametersRequest method. req, resp := client.DescribeDefaultClusterParametersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters

DescribeDefaultClusterParametersWithContext

func (c *Redshift) DescribeDefaultClusterParametersWithContext(ctx aws.Context, input *DescribeDefaultClusterParametersInput, opts ...request.Option) (*DescribeDefaultClusterParametersOutput, error)

DescribeDefaultClusterParametersWithContext is the same as DescribeDefaultClusterParameters with the addition of the ability to pass a context and additional request options.

See DescribeDefaultClusterParameters for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventCategories

func (c *Redshift) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error)

DescribeEventCategories API operation for Amazon Redshift.

Displays a list of event categories for all event source types, or for a specified source type. For a list of the event categories and source types, go to Amazon Redshift Event Notifications (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeEventCategories for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories

DescribeEventCategoriesRequest

func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput)

DescribeEventCategoriesRequest generates a "aws/request.Request" representing the client's request for the DescribeEventCategories operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventCategories for more information on using the DescribeEventCategories API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventCategoriesRequest method. req, resp := client.DescribeEventCategoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories

DescribeEventCategoriesWithContext

func (c *Redshift) DescribeEventCategoriesWithContext(ctx aws.Context, input *DescribeEventCategoriesInput, opts ...request.Option) (*DescribeEventCategoriesOutput, error)

DescribeEventCategoriesWithContext is the same as DescribeEventCategories with the addition of the ability to pass a context and additional request options.

See DescribeEventCategories for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventSubscriptions

func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error)

DescribeEventSubscriptions API operation for Amazon Redshift.

Lists descriptions of all the Amazon Redshift event notification subscriptions for a customer account. If you specify a subscription name, lists the description for that subscription.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all event notification subscriptions that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all subscriptions that have any combination of those values are returned.

If both tag keys and values are omitted from the request, subscriptions are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeEventSubscriptions for usage and error information.

Returned Error Codes:

  • ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" An Amazon Redshift event notification subscription with the specified name does not exist.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions

DescribeEventSubscriptionsPages

func (c *Redshift) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool) error

DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEventSubscriptions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEventSubscriptions operation. pageNum := 0 err := client.DescribeEventSubscriptionsPages(params, func(page *DescribeEventSubscriptionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventSubscriptionsPagesWithContext

func (c *Redshift) DescribeEventSubscriptionsPagesWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool, opts ...request.Option) error

DescribeEventSubscriptionsPagesWithContext same as DescribeEventSubscriptionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventSubscriptionsRequest

func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput)

DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the client's request for the DescribeEventSubscriptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEventSubscriptions for more information on using the DescribeEventSubscriptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventSubscriptionsRequest method. req, resp := client.DescribeEventSubscriptionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions

DescribeEventSubscriptionsWithContext

func (c *Redshift) DescribeEventSubscriptionsWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, opts ...request.Option) (*DescribeEventSubscriptionsOutput, error)

DescribeEventSubscriptionsWithContext is the same as DescribeEventSubscriptions with the addition of the ability to pass a context and additional request options.

See DescribeEventSubscriptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEvents

func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error)

DescribeEvents API operation for Amazon Redshift.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeEvents for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents

DescribeEventsPages

func (c *Redshift) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error

DescribeEventsPages iterates over the pages of a DescribeEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEvents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEvents operation. pageNum := 0 err := client.DescribeEventsPages(params, func(page *DescribeEventsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventsPagesWithContext

func (c *Redshift) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error

DescribeEventsPagesWithContext same as DescribeEventsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventsRequest

func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput)

DescribeEventsRequest generates a "aws/request.Request" representing the client's request for the DescribeEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEvents for more information on using the DescribeEvents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventsRequest method. req, resp := client.DescribeEventsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents

DescribeEventsWithContext

func (c *Redshift) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error)

DescribeEventsWithContext is the same as DescribeEvents with the addition of the ability to pass a context and additional request options.

See DescribeEvents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmClientCertificates

func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertificatesInput) (*DescribeHsmClientCertificatesOutput, error)

DescribeHsmClientCertificates API operation for Amazon Redshift.

Returns information about the specified HSM client certificate. If no certificate ID is specified, returns information about all the HSM certificates owned by your AWS customer account.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all HSM client certificates that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all HSM client certificates that have any combination of those values are returned.

If both tag keys and values are omitted from the request, HSM client certificates are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeHsmClientCertificates for usage and error information.

Returned Error Codes:

  • ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" There is no Amazon Redshift HSM client certificate with the specified identifier.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates

DescribeHsmClientCertificatesPages

func (c *Redshift) DescribeHsmClientCertificatesPages(input *DescribeHsmClientCertificatesInput, fn func(*DescribeHsmClientCertificatesOutput, bool) bool) error

DescribeHsmClientCertificatesPages iterates over the pages of a DescribeHsmClientCertificates operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeHsmClientCertificates method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeHsmClientCertificates operation. pageNum := 0 err := client.DescribeHsmClientCertificatesPages(params, func(page *DescribeHsmClientCertificatesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmClientCertificatesPagesWithContext

func (c *Redshift) DescribeHsmClientCertificatesPagesWithContext(ctx aws.Context, input *DescribeHsmClientCertificatesInput, fn func(*DescribeHsmClientCertificatesOutput, bool) bool, opts ...request.Option) error

DescribeHsmClientCertificatesPagesWithContext same as DescribeHsmClientCertificatesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmClientCertificatesRequest

func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClientCertificatesInput) (req *request.Request, output *DescribeHsmClientCertificatesOutput)

DescribeHsmClientCertificatesRequest generates a "aws/request.Request" representing the client's request for the DescribeHsmClientCertificates operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeHsmClientCertificates for more information on using the DescribeHsmClientCertificates API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeHsmClientCertificatesRequest method. req, resp := client.DescribeHsmClientCertificatesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates

DescribeHsmClientCertificatesWithContext

func (c *Redshift) DescribeHsmClientCertificatesWithContext(ctx aws.Context, input *DescribeHsmClientCertificatesInput, opts ...request.Option) (*DescribeHsmClientCertificatesOutput, error)

DescribeHsmClientCertificatesWithContext is the same as DescribeHsmClientCertificates with the addition of the ability to pass a context and additional request options.

See DescribeHsmClientCertificates for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmConfigurations

func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInput) (*DescribeHsmConfigurationsOutput, error)

DescribeHsmConfigurations API operation for Amazon Redshift.

Returns information about the specified Amazon Redshift HSM configuration. If no configuration ID is specified, returns information about all the HSM configurations owned by your AWS customer account.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all HSM connections that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all HSM connections that have any combination of those values are returned.

If both tag keys and values are omitted from the request, HSM connections are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeHsmConfigurations for usage and error information.

Returned Error Codes:

  • ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" There is no Amazon Redshift HSM configuration with the specified identifier.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations

DescribeHsmConfigurationsPages

func (c *Redshift) DescribeHsmConfigurationsPages(input *DescribeHsmConfigurationsInput, fn func(*DescribeHsmConfigurationsOutput, bool) bool) error

DescribeHsmConfigurationsPages iterates over the pages of a DescribeHsmConfigurations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeHsmConfigurations method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeHsmConfigurations operation. pageNum := 0 err := client.DescribeHsmConfigurationsPages(params, func(page *DescribeHsmConfigurationsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmConfigurationsPagesWithContext

func (c *Redshift) DescribeHsmConfigurationsPagesWithContext(ctx aws.Context, input *DescribeHsmConfigurationsInput, fn func(*DescribeHsmConfigurationsOutput, bool) bool, opts ...request.Option) error

DescribeHsmConfigurationsPagesWithContext same as DescribeHsmConfigurationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeHsmConfigurationsRequest

func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurationsInput) (req *request.Request, output *DescribeHsmConfigurationsOutput)

DescribeHsmConfigurationsRequest generates a "aws/request.Request" representing the client's request for the DescribeHsmConfigurations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeHsmConfigurations for more information on using the DescribeHsmConfigurations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeHsmConfigurationsRequest method. req, resp := client.DescribeHsmConfigurationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations

DescribeHsmConfigurationsWithContext

func (c *Redshift) DescribeHsmConfigurationsWithContext(ctx aws.Context, input *DescribeHsmConfigurationsInput, opts ...request.Option) (*DescribeHsmConfigurationsOutput, error)

DescribeHsmConfigurationsWithContext is the same as DescribeHsmConfigurations with the addition of the ability to pass a context and additional request options.

See DescribeHsmConfigurations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeLoggingStatus

func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error)

DescribeLoggingStatus API operation for Amazon Redshift.

Describes whether information, such as queries and connection attempts, is being logged for the specified Amazon Redshift cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeLoggingStatus for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus

DescribeLoggingStatusRequest

func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInput) (req *request.Request, output *LoggingStatus)

DescribeLoggingStatusRequest generates a "aws/request.Request" representing the client's request for the DescribeLoggingStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeLoggingStatus for more information on using the DescribeLoggingStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeLoggingStatusRequest method. req, resp := client.DescribeLoggingStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus

DescribeLoggingStatusWithContext

func (c *Redshift) DescribeLoggingStatusWithContext(ctx aws.Context, input *DescribeLoggingStatusInput, opts ...request.Option) (*LoggingStatus, error)

DescribeLoggingStatusWithContext is the same as DescribeLoggingStatus with the addition of the ability to pass a context and additional request options.

See DescribeLoggingStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeOrderableClusterOptions

func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClusterOptionsInput) (*DescribeOrderableClusterOptionsOutput, error)

DescribeOrderableClusterOptions API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeOrderableClusterOptions for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions

DescribeOrderableClusterOptionsPages

func (c *Redshift) DescribeOrderableClusterOptionsPages(input *DescribeOrderableClusterOptionsInput, fn func(*DescribeOrderableClusterOptionsOutput, bool) bool) error

DescribeOrderableClusterOptionsPages iterates over the pages of a DescribeOrderableClusterOptions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeOrderableClusterOptions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeOrderableClusterOptions operation. pageNum := 0 err := client.DescribeOrderableClusterOptionsPages(params, func(page *DescribeOrderableClusterOptionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeOrderableClusterOptionsPagesWithContext

func (c *Redshift) DescribeOrderableClusterOptionsPagesWithContext(ctx aws.Context, input *DescribeOrderableClusterOptionsInput, fn func(*DescribeOrderableClusterOptionsOutput, bool) bool, opts ...request.Option) error

DescribeOrderableClusterOptionsPagesWithContext same as DescribeOrderableClusterOptionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeOrderableClusterOptionsRequest

func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderableClusterOptionsInput) (req *request.Request, output *DescribeOrderableClusterOptionsOutput)

DescribeOrderableClusterOptionsRequest generates a "aws/request.Request" representing the client's request for the DescribeOrderableClusterOptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeOrderableClusterOptions for more information on using the DescribeOrderableClusterOptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeOrderableClusterOptionsRequest method. req, resp := client.DescribeOrderableClusterOptionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions

DescribeOrderableClusterOptionsWithContext

func (c *Redshift) DescribeOrderableClusterOptionsWithContext(ctx aws.Context, input *DescribeOrderableClusterOptionsInput, opts ...request.Option) (*DescribeOrderableClusterOptionsOutput, error)

DescribeOrderableClusterOptionsWithContext is the same as DescribeOrderableClusterOptions with the addition of the ability to pass a context and additional request options.

See DescribeOrderableClusterOptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodeOfferings

func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOfferingsInput) (*DescribeReservedNodeOfferingsOutput, error)

DescribeReservedNodeOfferings API operation for Amazon Redshift.

Returns a list of the available reserved node offerings by Amazon Redshift with their descriptions including the node type, the fixed and recurring costs of reserving the node and duration the node will be reserved for you. These descriptions help you determine which reserve node offering you want to purchase. You then use the unique offering ID in you call to PurchaseReservedNodeOffering to reserve one or more nodes for your Amazon Redshift cluster.

For more information about reserved node offerings, go to Purchasing Reserved Nodes (https://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeReservedNodeOfferings for usage and error information.

Returned Error Codes:

  • ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" Specified offering does not exist.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

  • ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault" Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings

DescribeReservedNodeOfferingsPages

func (c *Redshift) DescribeReservedNodeOfferingsPages(input *DescribeReservedNodeOfferingsInput, fn func(*DescribeReservedNodeOfferingsOutput, bool) bool) error

DescribeReservedNodeOfferingsPages iterates over the pages of a DescribeReservedNodeOfferings operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReservedNodeOfferings method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReservedNodeOfferings operation. pageNum := 0 err := client.DescribeReservedNodeOfferingsPages(params, func(page *DescribeReservedNodeOfferingsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodeOfferingsPagesWithContext

func (c *Redshift) DescribeReservedNodeOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedNodeOfferingsInput, fn func(*DescribeReservedNodeOfferingsOutput, bool) bool, opts ...request.Option) error

DescribeReservedNodeOfferingsPagesWithContext same as DescribeReservedNodeOfferingsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodeOfferingsRequest

func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedNodeOfferingsInput) (req *request.Request, output *DescribeReservedNodeOfferingsOutput)

DescribeReservedNodeOfferingsRequest generates a "aws/request.Request" representing the client's request for the DescribeReservedNodeOfferings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReservedNodeOfferings for more information on using the DescribeReservedNodeOfferings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReservedNodeOfferingsRequest method. req, resp := client.DescribeReservedNodeOfferingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings

DescribeReservedNodeOfferingsWithContext

func (c *Redshift) DescribeReservedNodeOfferingsWithContext(ctx aws.Context, input *DescribeReservedNodeOfferingsInput, opts ...request.Option) (*DescribeReservedNodeOfferingsOutput, error)

DescribeReservedNodeOfferingsWithContext is the same as DescribeReservedNodeOfferings with the addition of the ability to pass a context and additional request options.

See DescribeReservedNodeOfferings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodes

func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error)

DescribeReservedNodes API operation for Amazon Redshift.

Returns the descriptions of the reserved nodes.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeReservedNodes for usage and error information.

Returned Error Codes:

  • ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound" The specified reserved compute node not found.

  • ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault" Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes

DescribeReservedNodesPages

func (c *Redshift) DescribeReservedNodesPages(input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool) error

DescribeReservedNodesPages iterates over the pages of a DescribeReservedNodes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeReservedNodes method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeReservedNodes operation. pageNum := 0 err := client.DescribeReservedNodesPages(params, func(page *DescribeReservedNodesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodesPagesWithContext

func (c *Redshift) DescribeReservedNodesPagesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool, opts ...request.Option) error

DescribeReservedNodesPagesWithContext same as DescribeReservedNodesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeReservedNodesRequest

func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInput) (req *request.Request, output *DescribeReservedNodesOutput)

DescribeReservedNodesRequest generates a "aws/request.Request" representing the client's request for the DescribeReservedNodes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeReservedNodes for more information on using the DescribeReservedNodes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeReservedNodesRequest method. req, resp := client.DescribeReservedNodesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes

DescribeReservedNodesWithContext

func (c *Redshift) DescribeReservedNodesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, opts ...request.Option) (*DescribeReservedNodesOutput, error)

DescribeReservedNodesWithContext is the same as DescribeReservedNodes with the addition of the ability to pass a context and additional request options.

See DescribeReservedNodes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeResize

func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error)

DescribeResize API operation for Amazon Redshift.

Returns information about the last resize operation for the specified cluster. If no resize operation has ever been initiated for the specified cluster, a HTTP 404 error is returned. If a resize operation was initiated and completed, the status of the resize remains as SUCCEEDED until the next resize.

A resize operation can be requested using ModifyCluster and specifying a different number or type of nodes for the cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeResize for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeResizeNotFoundFault "ResizeNotFound" A resize operation for the specified cluster is not found.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize

DescribeResizeRequest

func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *request.Request, output *DescribeResizeOutput)

DescribeResizeRequest generates a "aws/request.Request" representing the client's request for the DescribeResize operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeResize for more information on using the DescribeResize API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeResizeRequest method. req, resp := client.DescribeResizeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize

DescribeResizeWithContext

func (c *Redshift) DescribeResizeWithContext(ctx aws.Context, input *DescribeResizeInput, opts ...request.Option) (*DescribeResizeOutput, error)

DescribeResizeWithContext is the same as DescribeResize with the addition of the ability to pass a context and additional request options.

See DescribeResize for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeSnapshotCopyGrants

func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsInput) (*DescribeSnapshotCopyGrantsOutput, error)

DescribeSnapshotCopyGrants API operation for Amazon Redshift.

Returns a list of snapshot copy grants owned by the AWS account in the destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeSnapshotCopyGrants for usage and error information.

Returned Error Codes:

  • ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" The specified snapshot copy grant can't be found. Make sure that the name is typed correctly and that the grant exists in the destination region.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants

DescribeSnapshotCopyGrantsRequest

func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopyGrantsInput) (req *request.Request, output *DescribeSnapshotCopyGrantsOutput)

DescribeSnapshotCopyGrantsRequest generates a "aws/request.Request" representing the client's request for the DescribeSnapshotCopyGrants operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSnapshotCopyGrants for more information on using the DescribeSnapshotCopyGrants API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSnapshotCopyGrantsRequest method. req, resp := client.DescribeSnapshotCopyGrantsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants

DescribeSnapshotCopyGrantsWithContext

func (c *Redshift) DescribeSnapshotCopyGrantsWithContext(ctx aws.Context, input *DescribeSnapshotCopyGrantsInput, opts ...request.Option) (*DescribeSnapshotCopyGrantsOutput, error)

DescribeSnapshotCopyGrantsWithContext is the same as DescribeSnapshotCopyGrants with the addition of the ability to pass a context and additional request options.

See DescribeSnapshotCopyGrants for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeSnapshotSchedules

func (c *Redshift) DescribeSnapshotSchedules(input *DescribeSnapshotSchedulesInput) (*DescribeSnapshotSchedulesOutput, error)

DescribeSnapshotSchedules API operation for Amazon Redshift.

Returns a list of snapshot schedules.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeSnapshotSchedules for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules

DescribeSnapshotSchedulesRequest

func (c *Redshift) DescribeSnapshotSchedulesRequest(input *DescribeSnapshotSchedulesInput) (req *request.Request, output *DescribeSnapshotSchedulesOutput)

DescribeSnapshotSchedulesRequest generates a "aws/request.Request" representing the client's request for the DescribeSnapshotSchedules operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSnapshotSchedules for more information on using the DescribeSnapshotSchedules API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSnapshotSchedulesRequest method. req, resp := client.DescribeSnapshotSchedulesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules

DescribeSnapshotSchedulesWithContext

func (c *Redshift) DescribeSnapshotSchedulesWithContext(ctx aws.Context, input *DescribeSnapshotSchedulesInput, opts ...request.Option) (*DescribeSnapshotSchedulesOutput, error)

DescribeSnapshotSchedulesWithContext is the same as DescribeSnapshotSchedules with the addition of the ability to pass a context and additional request options.

See DescribeSnapshotSchedules for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeStorage

func (c *Redshift) DescribeStorage(input *DescribeStorageInput) (*DescribeStorageOutput, error)

DescribeStorage API operation for Amazon Redshift.

Returns the total amount of snapshot usage and provisioned storage for a user in megabytes.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeStorage for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage

DescribeStorageRequest

func (c *Redshift) DescribeStorageRequest(input *DescribeStorageInput) (req *request.Request, output *DescribeStorageOutput)

DescribeStorageRequest generates a "aws/request.Request" representing the client's request for the DescribeStorage operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeStorage for more information on using the DescribeStorage API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeStorageRequest method. req, resp := client.DescribeStorageRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage

DescribeStorageWithContext

func (c *Redshift) DescribeStorageWithContext(ctx aws.Context, input *DescribeStorageInput, opts ...request.Option) (*DescribeStorageOutput, error)

DescribeStorageWithContext is the same as DescribeStorage with the addition of the ability to pass a context and additional request options.

See DescribeStorage for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeTableRestoreStatus

func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error)

DescribeTableRestoreStatus API operation for Amazon Redshift.

Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot API action. If you don't specify a value for the TableRestoreRequestId parameter, then DescribeTableRestoreStatus returns the status of all table restore requests ordered by the date and time of the request in ascending order. Otherwise DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeTableRestoreStatus for usage and error information.

Returned Error Codes:

  • ErrCodeTableRestoreNotFoundFault "TableRestoreNotFoundFault" The specified TableRestoreRequestId value was not found.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus

DescribeTableRestoreStatusRequest

func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestoreStatusInput) (req *request.Request, output *DescribeTableRestoreStatusOutput)

DescribeTableRestoreStatusRequest generates a "aws/request.Request" representing the client's request for the DescribeTableRestoreStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTableRestoreStatus for more information on using the DescribeTableRestoreStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTableRestoreStatusRequest method. req, resp := client.DescribeTableRestoreStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus

DescribeTableRestoreStatusWithContext

func (c *Redshift) DescribeTableRestoreStatusWithContext(ctx aws.Context, input *DescribeTableRestoreStatusInput, opts ...request.Option) (*DescribeTableRestoreStatusOutput, error)

DescribeTableRestoreStatusWithContext is the same as DescribeTableRestoreStatus with the addition of the ability to pass a context and additional request options.

See DescribeTableRestoreStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeTags

func (c *Redshift) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error)

DescribeTags API operation for Amazon Redshift.

Returns a list of tags. You can return tags from a specific resource by specifying an ARN, or you can return all tags for a given type of resource, such as clusters, snapshots, and so on.

The following are limitations for DescribeTags:

  • You cannot specify an ARN and a resource-type value together in the same request.

  • You cannot use the MaxRecords and Marker parameters together with the ARN parameter.

  • The MaxRecords parameter can be a range from 10 to 50 results to return in a request.

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all resources that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all resources that have any combination of those values are returned.

If both tag keys and values are omitted from the request, resources are returned regardless of whether they have tag keys or values associated with them.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DescribeTags for usage and error information.

Returned Error Codes:

  • ErrCodeResourceNotFoundFault "ResourceNotFoundFault" The resource could not be found.

  • ErrCodeInvalidTagFault "InvalidTagFault" The tag is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags

DescribeTagsRequest

func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput)

DescribeTagsRequest generates a "aws/request.Request" representing the client's request for the DescribeTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTags for more information on using the DescribeTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTagsRequest method. req, resp := client.DescribeTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags

DescribeTagsWithContext

func (c *Redshift) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error)

DescribeTagsWithContext is the same as DescribeTags with the addition of the ability to pass a context and additional request options.

See DescribeTags for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisableLogging

func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error)

DisableLogging API operation for Amazon Redshift.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DisableLogging for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging

DisableLoggingRequest

func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *request.Request, output *LoggingStatus)

DisableLoggingRequest generates a "aws/request.Request" representing the client's request for the DisableLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableLogging for more information on using the DisableLogging API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableLoggingRequest method. req, resp := client.DisableLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging

DisableLoggingWithContext

func (c *Redshift) DisableLoggingWithContext(ctx aws.Context, input *DisableLoggingInput, opts ...request.Option) (*LoggingStatus, error)

DisableLoggingWithContext is the same as DisableLogging with the addition of the ability to pass a context and additional request options.

See DisableLogging for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisableSnapshotCopy

func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error)

DisableSnapshotCopy API operation for Amazon Redshift.

Disables the automatic copying of snapshots from one region to another region for a specified cluster.

If your cluster and its snapshots are encrypted using a customer master key (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that grants Amazon Redshift permission to the CMK in the destination region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation DisableSnapshotCopy for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeSnapshotCopyAlreadyDisabledFault "SnapshotCopyAlreadyDisabledFault" The cluster already has cross-region snapshot copy disabled.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy

DisableSnapshotCopyRequest

func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) (req *request.Request, output *DisableSnapshotCopyOutput)

DisableSnapshotCopyRequest generates a "aws/request.Request" representing the client's request for the DisableSnapshotCopy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableSnapshotCopy for more information on using the DisableSnapshotCopy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableSnapshotCopyRequest method. req, resp := client.DisableSnapshotCopyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy

DisableSnapshotCopyWithContext

func (c *Redshift) DisableSnapshotCopyWithContext(ctx aws.Context, input *DisableSnapshotCopyInput, opts ...request.Option) (*DisableSnapshotCopyOutput, error)

DisableSnapshotCopyWithContext is the same as DisableSnapshotCopy with the addition of the ability to pass a context and additional request options.

See DisableSnapshotCopy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

EnableLogging

func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error)

EnableLogging API operation for Amazon Redshift.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation EnableLogging for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeBucketNotFoundFault "BucketNotFoundFault" Could not find the specified S3 bucket.

  • ErrCodeInsufficientS3BucketPolicyFault "InsufficientS3BucketPolicyFault" The cluster does not have read bucket or put object permissions on the S3 bucket specified when enabling logging.

  • ErrCodeInvalidS3KeyPrefixFault "InvalidS3KeyPrefixFault" The string specified for the logging S3 key prefix does not comply with the documented constraints.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging

EnableLoggingRequest

func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request.Request, output *LoggingStatus)

EnableLoggingRequest generates a "aws/request.Request" representing the client's request for the EnableLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableLogging for more information on using the EnableLogging API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableLoggingRequest method. req, resp := client.EnableLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging

EnableLoggingWithContext

func (c *Redshift) EnableLoggingWithContext(ctx aws.Context, input *EnableLoggingInput, opts ...request.Option) (*LoggingStatus, error)

EnableLoggingWithContext is the same as EnableLogging with the addition of the ability to pass a context and additional request options.

See EnableLogging for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

EnableSnapshotCopy

func (c *Redshift) EnableSnapshotCopy(input *EnableSnapshotCopyInput) (*EnableSnapshotCopyOutput, error)

EnableSnapshotCopy API operation for Amazon Redshift.

Enables the automatic copy of snapshots from one region to another region for a specified cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation EnableSnapshotCopy for usage and error information.

Returned Error Codes:

  • ErrCodeIncompatibleOrderableOptions "IncompatibleOrderableOptions" The specified options are incompatible.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeCopyToRegionDisabledFault "CopyToRegionDisabledFault" Cross-region snapshot copy was temporarily disabled. Try your request again.

  • ErrCodeSnapshotCopyAlreadyEnabledFault "SnapshotCopyAlreadyEnabledFault" The cluster already has cross-region snapshot copy enabled.

  • ErrCodeUnknownSnapshotCopyRegionFault "UnknownSnapshotCopyRegionFault" The specified region is incorrect or does not exist.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault" The specified snapshot copy grant can't be found. Make sure that the name is typed correctly and that the grant exists in the destination region.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy

EnableSnapshotCopyRequest

func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (req *request.Request, output *EnableSnapshotCopyOutput)

EnableSnapshotCopyRequest generates a "aws/request.Request" representing the client's request for the EnableSnapshotCopy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See EnableSnapshotCopy for more information on using the EnableSnapshotCopy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the EnableSnapshotCopyRequest method. req, resp := client.EnableSnapshotCopyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy

EnableSnapshotCopyWithContext

func (c *Redshift) EnableSnapshotCopyWithContext(ctx aws.Context, input *EnableSnapshotCopyInput, opts ...request.Option) (*EnableSnapshotCopyOutput, error)

EnableSnapshotCopyWithContext is the same as EnableSnapshotCopy with the addition of the ability to pass a context and additional request options.

See EnableSnapshotCopy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetClusterCredentials

func (c *Redshift) GetClusterCredentials(input *GetClusterCredentialsInput) (*GetClusterCredentialsOutput, error)

GetClusterCredentials API operation for Amazon Redshift.

Returns a database user name and temporary password with temporary authorization to log on to an Amazon Redshift database. The action returns the database user name prefixed with IAM: if AutoCreate is False or IAMA: if AutoCreate is True. You can optionally specify one or more database user groups that the user will join at log on. By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). For more information, see Using IAM Authentication to Generate Database User Credentials (https://docs.aws.amazon.com/redshift/latest/mgmt/generating-user-credentials.html) in the Amazon Redshift Cluster Management Guide.

The AWS Identity and Access Management (IAM)user or role that executes GetClusterCredentials must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Resource Policies for GetClusterCredentials (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html#redshift-policy-resources.getclustercredentials-resources) in the Amazon Redshift Cluster Management Guide.

If the DbGroups parameter is specified, the IAM policy must allow the redshift:JoinGroup action with access to the listed dbgroups.

In addition, if the AutoCreate parameter is set to True, then the policy must include the redshift:CreateClusterUser privilege.

If the DbName parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation GetClusterCredentials for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentials

GetClusterCredentialsRequest

func (c *Redshift) GetClusterCredentialsRequest(input *GetClusterCredentialsInput) (req *request.Request, output *GetClusterCredentialsOutput)

GetClusterCredentialsRequest generates a "aws/request.Request" representing the client's request for the GetClusterCredentials operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetClusterCredentials for more information on using the GetClusterCredentials API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetClusterCredentialsRequest method. req, resp := client.GetClusterCredentialsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentials

GetClusterCredentialsWithContext

func (c *Redshift) GetClusterCredentialsWithContext(ctx aws.Context, input *GetClusterCredentialsInput, opts ...request.Option) (*GetClusterCredentialsOutput, error)

GetClusterCredentialsWithContext is the same as GetClusterCredentials with the addition of the ability to pass a context and additional request options.

See GetClusterCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetReservedNodeExchangeOfferings

func (c *Redshift) GetReservedNodeExchangeOfferings(input *GetReservedNodeExchangeOfferingsInput) (*GetReservedNodeExchangeOfferingsOutput, error)

GetReservedNodeExchangeOfferings API operation for Amazon Redshift.

Returns an array of DC2 ReservedNodeOfferings that matches the payment type, term, and usage price of the given DC1 reserved node.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation GetReservedNodeExchangeOfferings for usage and error information.

Returned Error Codes:

  • ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound" The specified reserved compute node not found.

  • ErrCodeInvalidReservedNodeStateFault "InvalidReservedNodeState" Indicates that the Reserved Node being exchanged is not in an active state.

  • ErrCodeReservedNodeAlreadyMigratedFault "ReservedNodeAlreadyMigrated" Indicates that the reserved node has already been exchanged.

  • ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" Specified offering does not exist.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

  • ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault" Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetReservedNodeExchangeOfferings

GetReservedNodeExchangeOfferingsRequest

func (c *Redshift) GetReservedNodeExchangeOfferingsRequest(input *GetReservedNodeExchangeOfferingsInput) (req *request.Request, output *GetReservedNodeExchangeOfferingsOutput)

GetReservedNodeExchangeOfferingsRequest generates a "aws/request.Request" representing the client's request for the GetReservedNodeExchangeOfferings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetReservedNodeExchangeOfferings for more information on using the GetReservedNodeExchangeOfferings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetReservedNodeExchangeOfferingsRequest method. req, resp := client.GetReservedNodeExchangeOfferingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetReservedNodeExchangeOfferings

GetReservedNodeExchangeOfferingsWithContext

func (c *Redshift) GetReservedNodeExchangeOfferingsWithContext(ctx aws.Context, input *GetReservedNodeExchangeOfferingsInput, opts ...request.Option) (*GetReservedNodeExchangeOfferingsOutput, error)

GetReservedNodeExchangeOfferingsWithContext is the same as GetReservedNodeExchangeOfferings with the addition of the ability to pass a context and additional request options.

See GetReservedNodeExchangeOfferings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyCluster

func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error)

ModifyCluster API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyCluster for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" The state of the cluster security group is not available.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to Limits in Amazon Redshift

(http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.
  • ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" The operation would exceed the number of nodes allowed for a cluster.

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

  • ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" The number of nodes specified exceeds the allotted capacity of the cluster.

  • ErrCodeUnsupportedOptionFault "UnsupportedOptionFault" A request option was specified that is not supported.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" There is no Amazon Redshift HSM client certificate with the specified identifier.

  • ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" There is no Amazon Redshift HSM configuration with the specified identifier.

  • ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" The account already has a cluster with the given identifier.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

  • ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" The Elastic IP (EIP) is invalid or cannot be found.

  • ErrCodeTableLimitExceededFault "TableLimitExceeded" The number of tables in the cluster exceeds the limit for the requested new cluster node type.

  • ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" The provided cluster track name is not valid.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster

ModifyClusterDbRevision

func (c *Redshift) ModifyClusterDbRevision(input *ModifyClusterDbRevisionInput) (*ModifyClusterDbRevisionOutput, error)

ModifyClusterDbRevision API operation for Amazon Redshift.

Modifies the database revision of a cluster. The database revision is a unique revision of the database running in a cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterDbRevision for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeClusterOnLatestRevisionFault "ClusterOnLatestRevision" Cluster is already on the latest database revision.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterDbRevision

ModifyClusterDbRevisionRequest

func (c *Redshift) ModifyClusterDbRevisionRequest(input *ModifyClusterDbRevisionInput) (req *request.Request, output *ModifyClusterDbRevisionOutput)

ModifyClusterDbRevisionRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterDbRevision operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterDbRevision for more information on using the ModifyClusterDbRevision API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterDbRevisionRequest method. req, resp := client.ModifyClusterDbRevisionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterDbRevision

ModifyClusterDbRevisionWithContext

func (c *Redshift) ModifyClusterDbRevisionWithContext(ctx aws.Context, input *ModifyClusterDbRevisionInput, opts ...request.Option) (*ModifyClusterDbRevisionOutput, error)

ModifyClusterDbRevisionWithContext is the same as ModifyClusterDbRevision with the addition of the ability to pass a context and additional request options.

See ModifyClusterDbRevision for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterIamRoles

func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error)

ModifyClusterIamRoles API operation for Amazon Redshift.

Modifies the list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.

A cluster can have up to 10 IAM roles associated at any time.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterIamRoles for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles

ModifyClusterIamRolesRequest

func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInput) (req *request.Request, output *ModifyClusterIamRolesOutput)

ModifyClusterIamRolesRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterIamRoles operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterIamRoles for more information on using the ModifyClusterIamRoles API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterIamRolesRequest method. req, resp := client.ModifyClusterIamRolesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles

ModifyClusterIamRolesWithContext

func (c *Redshift) ModifyClusterIamRolesWithContext(ctx aws.Context, input *ModifyClusterIamRolesInput, opts ...request.Option) (*ModifyClusterIamRolesOutput, error)

ModifyClusterIamRolesWithContext is the same as ModifyClusterIamRoles with the addition of the ability to pass a context and additional request options.

See ModifyClusterIamRoles for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterMaintenance

func (c *Redshift) ModifyClusterMaintenance(input *ModifyClusterMaintenanceInput) (*ModifyClusterMaintenanceOutput, error)

ModifyClusterMaintenance API operation for Amazon Redshift.

Modifies the maintenance settings of a cluster. For example, you can defer a maintenance window. You can also update or cancel a deferment.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterMaintenance for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance

ModifyClusterMaintenanceRequest

func (c *Redshift) ModifyClusterMaintenanceRequest(input *ModifyClusterMaintenanceInput) (req *request.Request, output *ModifyClusterMaintenanceOutput)

ModifyClusterMaintenanceRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterMaintenance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterMaintenance for more information on using the ModifyClusterMaintenance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterMaintenanceRequest method. req, resp := client.ModifyClusterMaintenanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance

ModifyClusterMaintenanceWithContext

func (c *Redshift) ModifyClusterMaintenanceWithContext(ctx aws.Context, input *ModifyClusterMaintenanceInput, opts ...request.Option) (*ModifyClusterMaintenanceOutput, error)

ModifyClusterMaintenanceWithContext is the same as ModifyClusterMaintenance with the addition of the ability to pass a context and additional request options.

See ModifyClusterMaintenance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterParameterGroup

func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error)

ModifyClusterParameterGroup API operation for Amazon Redshift.

Modifies the parameters of a parameter group.

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterParameterGroup for usage and error information.

Returned Error Codes:

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

  • ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" The cluster parameter group action can not be completed because another task is in progress that involves the parameter group. Wait a few moments and try the operation again.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup

ModifyClusterParameterGroupRequest

func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage)

ModifyClusterParameterGroupRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterParameterGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterParameterGroup for more information on using the ModifyClusterParameterGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterParameterGroupRequest method. req, resp := client.ModifyClusterParameterGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup

ModifyClusterParameterGroupWithContext

func (c *Redshift) ModifyClusterParameterGroupWithContext(ctx aws.Context, input *ModifyClusterParameterGroupInput, opts ...request.Option) (*ClusterParameterGroupNameMessage, error)

ModifyClusterParameterGroupWithContext is the same as ModifyClusterParameterGroup with the addition of the ability to pass a context and additional request options.

See ModifyClusterParameterGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterRequest

func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request.Request, output *ModifyClusterOutput)

ModifyClusterRequest generates a "aws/request.Request" representing the client's request for the ModifyCluster operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyCluster for more information on using the ModifyCluster API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterRequest method. req, resp := client.ModifyClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster

ModifyClusterSnapshot

func (c *Redshift) ModifyClusterSnapshot(input *ModifyClusterSnapshotInput) (*ModifyClusterSnapshotOutput, error)

ModifyClusterSnapshot API operation for Amazon Redshift.

Modifies the settings for a snapshot.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot

ModifyClusterSnapshotRequest

func (c *Redshift) ModifyClusterSnapshotRequest(input *ModifyClusterSnapshotInput) (req *request.Request, output *ModifyClusterSnapshotOutput)

ModifyClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterSnapshot for more information on using the ModifyClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterSnapshotRequest method. req, resp := client.ModifyClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot

ModifyClusterSnapshotSchedule

func (c *Redshift) ModifyClusterSnapshotSchedule(input *ModifyClusterSnapshotScheduleInput) (*ModifyClusterSnapshotScheduleOutput, error)

ModifyClusterSnapshotSchedule API operation for Amazon Redshift.

Modifies a snapshot schedule for a cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterSnapshotSchedule for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" We could not find the specified snapshot schedule.

  • ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState" The cluster snapshot schedule state is not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule

ModifyClusterSnapshotScheduleRequest

func (c *Redshift) ModifyClusterSnapshotScheduleRequest(input *ModifyClusterSnapshotScheduleInput) (req *request.Request, output *ModifyClusterSnapshotScheduleOutput)

ModifyClusterSnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterSnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterSnapshotSchedule for more information on using the ModifyClusterSnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterSnapshotScheduleRequest method. req, resp := client.ModifyClusterSnapshotScheduleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule

ModifyClusterSnapshotScheduleWithContext

func (c *Redshift) ModifyClusterSnapshotScheduleWithContext(ctx aws.Context, input *ModifyClusterSnapshotScheduleInput, opts ...request.Option) (*ModifyClusterSnapshotScheduleOutput, error)

ModifyClusterSnapshotScheduleWithContext is the same as ModifyClusterSnapshotSchedule with the addition of the ability to pass a context and additional request options.

See ModifyClusterSnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterSnapshotWithContext

func (c *Redshift) ModifyClusterSnapshotWithContext(ctx aws.Context, input *ModifyClusterSnapshotInput, opts ...request.Option) (*ModifyClusterSnapshotOutput, error)

ModifyClusterSnapshotWithContext is the same as ModifyClusterSnapshot with the addition of the ability to pass a context and additional request options.

See ModifyClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterSubnetGroup

func (c *Redshift) ModifyClusterSubnetGroup(input *ModifyClusterSubnetGroupInput) (*ModifyClusterSubnetGroupOutput, error)

ModifyClusterSubnetGroup API operation for Amazon Redshift.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyClusterSubnetGroup for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" The cluster subnet group name does not refer to an existing cluster subnet group.

  • ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault" The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.

  • ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" A specified subnet is already in use by another cluster.

  • ErrCodeInvalidSubnet "InvalidSubnet" The requested subnet is not valid, or not all of the subnets are in the same VPC.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup

ModifyClusterSubnetGroupRequest

func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGroupInput) (req *request.Request, output *ModifyClusterSubnetGroupOutput)

ModifyClusterSubnetGroupRequest generates a "aws/request.Request" representing the client's request for the ModifyClusterSubnetGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyClusterSubnetGroup for more information on using the ModifyClusterSubnetGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyClusterSubnetGroupRequest method. req, resp := client.ModifyClusterSubnetGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup

ModifyClusterSubnetGroupWithContext

func (c *Redshift) ModifyClusterSubnetGroupWithContext(ctx aws.Context, input *ModifyClusterSubnetGroupInput, opts ...request.Option) (*ModifyClusterSubnetGroupOutput, error)

ModifyClusterSubnetGroupWithContext is the same as ModifyClusterSubnetGroup with the addition of the ability to pass a context and additional request options.

See ModifyClusterSubnetGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyClusterWithContext

func (c *Redshift) ModifyClusterWithContext(ctx aws.Context, input *ModifyClusterInput, opts ...request.Option) (*ModifyClusterOutput, error)

ModifyClusterWithContext is the same as ModifyCluster with the addition of the ability to pass a context and additional request options.

See ModifyCluster for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifyEventSubscription

func (c *Redshift) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error)

ModifyEventSubscription API operation for Amazon Redshift.

Modifies an existing Amazon Redshift event notification subscription.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifyEventSubscription for usage and error information.

Returned Error Codes:

  • ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound" An Amazon Redshift event notification subscription with the specified name does not exist.

  • ErrCodeSNSInvalidTopicFault "SNSInvalidTopic" Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.

  • ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization" You do not have permission to publish to the specified Amazon SNS topic.

  • ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound" An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist.

  • ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound" An Amazon Redshift event with the specified event ID does not exist.

  • ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound" The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security.

  • ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound" The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO.

  • ErrCodeSourceNotFoundFault "SourceNotFound" The specified Amazon Redshift event source could not be found.

  • ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault" The subscription request is invalid because it is a duplicate request. This subscription request is already in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription

ModifyEventSubscriptionRequest

func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput)

ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the client's request for the ModifyEventSubscription operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifyEventSubscription for more information on using the ModifyEventSubscription API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifyEventSubscriptionRequest method. req, resp := client.ModifyEventSubscriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription

ModifyEventSubscriptionWithContext

func (c *Redshift) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error)

ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of the ability to pass a context and additional request options.

See ModifyEventSubscription for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifySnapshotCopyRetentionPeriod

func (c *Redshift) ModifySnapshotCopyRetentionPeriod(input *ModifySnapshotCopyRetentionPeriodInput) (*ModifySnapshotCopyRetentionPeriodOutput, error)

ModifySnapshotCopyRetentionPeriod API operation for Amazon Redshift.

Modifies the number of days to retain snapshots in the destination AWS Region after they are copied from the source AWS Region. By default, this operation only changes the retention period of copied automated snapshots. The retention periods for both new and existing copied automated snapshots are updated with the new retention period. You can set the manual option to change only the retention periods of copied manual snapshots. If you set this option, only newly copied manual snapshots have the new retention period.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifySnapshotCopyRetentionPeriod for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeSnapshotCopyDisabledFault "SnapshotCopyDisabledFault" Cross-region snapshot copy was temporarily disabled. Try your request again.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod

ModifySnapshotCopyRetentionPeriodRequest

func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapshotCopyRetentionPeriodInput) (req *request.Request, output *ModifySnapshotCopyRetentionPeriodOutput)

ModifySnapshotCopyRetentionPeriodRequest generates a "aws/request.Request" representing the client's request for the ModifySnapshotCopyRetentionPeriod operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifySnapshotCopyRetentionPeriod for more information on using the ModifySnapshotCopyRetentionPeriod API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifySnapshotCopyRetentionPeriodRequest method. req, resp := client.ModifySnapshotCopyRetentionPeriodRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod

ModifySnapshotCopyRetentionPeriodWithContext

func (c *Redshift) ModifySnapshotCopyRetentionPeriodWithContext(ctx aws.Context, input *ModifySnapshotCopyRetentionPeriodInput, opts ...request.Option) (*ModifySnapshotCopyRetentionPeriodOutput, error)

ModifySnapshotCopyRetentionPeriodWithContext is the same as ModifySnapshotCopyRetentionPeriod with the addition of the ability to pass a context and additional request options.

See ModifySnapshotCopyRetentionPeriod for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ModifySnapshotSchedule

func (c *Redshift) ModifySnapshotSchedule(input *ModifySnapshotScheduleInput) (*ModifySnapshotScheduleOutput, error)

ModifySnapshotSchedule API operation for Amazon Redshift.

Modifies a snapshot schedule. Any schedule associated with a cluster is modified asynchronously.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ModifySnapshotSchedule for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidScheduleFault "InvalidSchedule" The schedule you submitted isn't valid.

  • ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" We could not find the specified snapshot schedule.

  • ErrCodeSnapshotScheduleUpdateInProgressFault "SnapshotScheduleUpdateInProgress" The specified snapshot schedule is already being updated.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule

ModifySnapshotScheduleRequest

func (c *Redshift) ModifySnapshotScheduleRequest(input *ModifySnapshotScheduleInput) (req *request.Request, output *ModifySnapshotScheduleOutput)

ModifySnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the ModifySnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ModifySnapshotSchedule for more information on using the ModifySnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ModifySnapshotScheduleRequest method. req, resp := client.ModifySnapshotScheduleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule

ModifySnapshotScheduleWithContext

func (c *Redshift) ModifySnapshotScheduleWithContext(ctx aws.Context, input *ModifySnapshotScheduleInput, opts ...request.Option) (*ModifySnapshotScheduleOutput, error)

ModifySnapshotScheduleWithContext is the same as ModifySnapshotSchedule with the addition of the ability to pass a context and additional request options.

See ModifySnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PurchaseReservedNodeOffering

func (c *Redshift) PurchaseReservedNodeOffering(input *PurchaseReservedNodeOfferingInput) (*PurchaseReservedNodeOfferingOutput, error)

PurchaseReservedNodeOffering API operation for Amazon Redshift.

Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one or more 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 reserved node offerings, go to Purchasing Reserved Nodes (https://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation PurchaseReservedNodeOffering for usage and error information.

Returned Error Codes:

  • ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" Specified offering does not exist.

  • ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists" User already has a reservation with the given identifier.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering

PurchaseReservedNodeOfferingRequest

func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNodeOfferingInput) (req *request.Request, output *PurchaseReservedNodeOfferingOutput)

PurchaseReservedNodeOfferingRequest generates a "aws/request.Request" representing the client's request for the PurchaseReservedNodeOffering operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PurchaseReservedNodeOffering for more information on using the PurchaseReservedNodeOffering API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PurchaseReservedNodeOfferingRequest method. req, resp := client.PurchaseReservedNodeOfferingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering

PurchaseReservedNodeOfferingWithContext

func (c *Redshift) PurchaseReservedNodeOfferingWithContext(ctx aws.Context, input *PurchaseReservedNodeOfferingInput, opts ...request.Option) (*PurchaseReservedNodeOfferingOutput, error)

PurchaseReservedNodeOfferingWithContext is the same as PurchaseReservedNodeOffering with the addition of the ability to pass a context and additional request options.

See PurchaseReservedNodeOffering for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RebootCluster

func (c *Redshift) RebootCluster(input *RebootClusterInput) (*RebootClusterOutput, error)

RebootCluster API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RebootCluster for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster

RebootClusterRequest

func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request.Request, output *RebootClusterOutput)

RebootClusterRequest generates a "aws/request.Request" representing the client's request for the RebootCluster operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RebootCluster for more information on using the RebootCluster API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RebootClusterRequest method. req, resp := client.RebootClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster

RebootClusterWithContext

func (c *Redshift) RebootClusterWithContext(ctx aws.Context, input *RebootClusterInput, opts ...request.Option) (*RebootClusterOutput, error)

RebootClusterWithContext is the same as RebootCluster with the addition of the ability to pass a context and additional request options.

See RebootCluster for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ResetClusterParameterGroup

func (c *Redshift) ResetClusterParameterGroup(input *ResetClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error)

ResetClusterParameterGroup API operation for Amazon Redshift.

Sets one or more parameters of the specified parameter group to their default values and sets the source values of the parameters to "engine-default". To reset the entire parameter group specify the ResetAllParameters parameter. For parameter changes to take effect you must reboot any associated clusters.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ResetClusterParameterGroup for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState" The cluster parameter group action can not be completed because another task is in progress that involves the parameter group. Wait a few moments and try the operation again.

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup

ResetClusterParameterGroupRequest

func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage)

ResetClusterParameterGroupRequest generates a "aws/request.Request" representing the client's request for the ResetClusterParameterGroup operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ResetClusterParameterGroup for more information on using the ResetClusterParameterGroup API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ResetClusterParameterGroupRequest method. req, resp := client.ResetClusterParameterGroupRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup

ResetClusterParameterGroupWithContext

func (c *Redshift) ResetClusterParameterGroupWithContext(ctx aws.Context, input *ResetClusterParameterGroupInput, opts ...request.Option) (*ClusterParameterGroupNameMessage, error)

ResetClusterParameterGroupWithContext is the same as ResetClusterParameterGroup with the addition of the ability to pass a context and additional request options.

See ResetClusterParameterGroup for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ResizeCluster

func (c *Redshift) ResizeCluster(input *ResizeClusterInput) (*ResizeClusterOutput, error)

ResizeCluster API operation for Amazon Redshift.

Changes the size of the cluster. You can change the cluster's type, or change the number or type of nodes. The default behavior is to use the elastic resize method. With an elastic resize, your cluster is available for read and write operations more quickly than with the classic resize method.

Elastic resize operations have the following restrictions:

  • You can only resize clusters of the following types:

dc2.large

dc2.8xlarge

ds2.xlarge

ds2.8xlarge

  • The type of nodes that you add must match the node type for the cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation ResizeCluster for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to Limits in Amazon Redshift

(http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.
  • ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" The operation would exceed the number of nodes allowed for a cluster.

  • ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" The number of nodes specified exceeds the allotted capacity of the cluster.

  • ErrCodeUnsupportedOptionFault "UnsupportedOptionFault" A request option was specified that is not supported.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResizeCluster

ResizeClusterRequest

func (c *Redshift) ResizeClusterRequest(input *ResizeClusterInput) (req *request.Request, output *ResizeClusterOutput)

ResizeClusterRequest generates a "aws/request.Request" representing the client's request for the ResizeCluster operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ResizeCluster for more information on using the ResizeCluster API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ResizeClusterRequest method. req, resp := client.ResizeClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResizeCluster

ResizeClusterWithContext

func (c *Redshift) ResizeClusterWithContext(ctx aws.Context, input *ResizeClusterInput, opts ...request.Option) (*ResizeClusterOutput, error)

ResizeClusterWithContext is the same as ResizeCluster with the addition of the ability to pass a context and additional request options.

See ResizeCluster for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RestoreFromClusterSnapshot

func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotInput) (*RestoreFromClusterSnapshotOutput, error)

RestoreFromClusterSnapshot API operation for Amazon Redshift.

Creates a new cluster from a snapshot. By default, Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter groups. After Amazon Redshift creates the cluster, you can use the ModifyCluster API to associate a different security group and different parameter group with the restored cluster. If you are using a DS node type, you can also choose to change to another DS node type of the same size during restore.

If you restore a cluster into a VPC, you must provide a cluster subnet group where you want the cluster restored.

For more information about working with snapshots, go to Amazon Redshift Snapshots (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RestoreFromClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied" The owner of the specified snapshot has not authorized your account to access the snapshot.

  • ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists" The account already has a cluster with the given identifier.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" The number of nodes specified exceeds the allotted capacity of the cluster.

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeInvalidRestoreFault "InvalidRestore" The restore is invalid.

  • ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded" The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to Limits in Amazon Redshift

(http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) in the Amazon Redshift Cluster Management Guide.
  • ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded" The operation would exceed the number of nodes allowed for a cluster.

  • ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" The cluster subnet group does not cover all Availability Zones.

  • ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault" The cluster subnet group cannot be deleted because it is in use.

  • ErrCodeInvalidSubnet "InvalidSubnet" The requested subnet is not valid, or not all of the subnets are in the same VPC.

  • ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault" The cluster subnet group name does not refer to an existing cluster subnet group.

  • ErrCodeUnauthorizedOperation "UnauthorizedOperation" Your account is not authorized to perform the requested operation.

  • ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault" There is no Amazon Redshift HSM client certificate with the specified identifier.

  • ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault" There is no Amazon Redshift HSM configuration with the specified identifier.

  • ErrCodeInvalidElasticIpFault "InvalidElasticIpFault" The Elastic IP (EIP) is invalid or cannot be found.

  • ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" The parameter group name does not refer to an existing parameter group.

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeLimitExceededFault "LimitExceededFault" The encryption key has exceeded its grant limit in AWS KMS.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

  • ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" The provided cluster track name is not valid.

  • ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" We could not find the specified snapshot schedule.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot

RestoreFromClusterSnapshotRequest

func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSnapshotInput) (req *request.Request, output *RestoreFromClusterSnapshotOutput)

RestoreFromClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the RestoreFromClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RestoreFromClusterSnapshot for more information on using the RestoreFromClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RestoreFromClusterSnapshotRequest method. req, resp := client.RestoreFromClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot

RestoreFromClusterSnapshotWithContext

func (c *Redshift) RestoreFromClusterSnapshotWithContext(ctx aws.Context, input *RestoreFromClusterSnapshotInput, opts ...request.Option) (*RestoreFromClusterSnapshotOutput, error)

RestoreFromClusterSnapshotWithContext is the same as RestoreFromClusterSnapshot with the addition of the ability to pass a context and additional request options.

See RestoreFromClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RestoreTableFromClusterSnapshot

func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error)

RestoreTableFromClusterSnapshot API operation for Amazon Redshift.

Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.

You cannot use RestoreTableFromClusterSnapshot to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot. When you have renamed your original table, then you can pass the original name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. This way, you can replace the original table with the table created from the snapshot.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RestoreTableFromClusterSnapshot for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

  • ErrCodeInProgressTableRestoreQuotaExceededFault "InProgressTableRestoreQuotaExceededFault" You have exceeded the allowed number of table restore requests. Wait for your current table restore requests to complete before making a new request.

  • ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

  • ErrCodeInvalidTableRestoreArgumentFault "InvalidTableRestoreArgument" The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName parameter, or a combination of these, doesn't exist in the snapshot.

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeUnsupportedOperationFault "UnsupportedOperation" The requested operation isn't supported.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot

RestoreTableFromClusterSnapshotRequest

func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFromClusterSnapshotInput) (req *request.Request, output *RestoreTableFromClusterSnapshotOutput)

RestoreTableFromClusterSnapshotRequest generates a "aws/request.Request" representing the client's request for the RestoreTableFromClusterSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RestoreTableFromClusterSnapshot for more information on using the RestoreTableFromClusterSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RestoreTableFromClusterSnapshotRequest method. req, resp := client.RestoreTableFromClusterSnapshotRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot

RestoreTableFromClusterSnapshotWithContext

func (c *Redshift) RestoreTableFromClusterSnapshotWithContext(ctx aws.Context, input *RestoreTableFromClusterSnapshotInput, opts ...request.Option) (*RestoreTableFromClusterSnapshotOutput, error)

RestoreTableFromClusterSnapshotWithContext is the same as RestoreTableFromClusterSnapshot with the addition of the ability to pass a context and additional request options.

See RestoreTableFromClusterSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RevokeClusterSecurityGroupIngress

func (c *Redshift) RevokeClusterSecurityGroupIngress(input *RevokeClusterSecurityGroupIngressInput) (*RevokeClusterSecurityGroupIngressOutput, error)

RevokeClusterSecurityGroupIngress API operation for Amazon Redshift.

Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group. To add an ingress rule, see AuthorizeClusterSecurityGroupIngress. For information about managing security groups, go to Amazon Redshift Cluster Security Groups (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RevokeClusterSecurityGroupIngress for usage and error information.

Returned Error Codes:

  • ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound" The cluster security group name does not refer to an existing cluster security group.

  • ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group.

  • ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState" The state of the cluster security group is not available.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress

RevokeClusterSecurityGroupIngressRequest

func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeClusterSecurityGroupIngressInput) (req *request.Request, output *RevokeClusterSecurityGroupIngressOutput)

RevokeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the client's request for the RevokeClusterSecurityGroupIngress operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RevokeClusterSecurityGroupIngress for more information on using the RevokeClusterSecurityGroupIngress API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RevokeClusterSecurityGroupIngressRequest method. req, resp := client.RevokeClusterSecurityGroupIngressRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress

RevokeClusterSecurityGroupIngressWithContext

func (c *Redshift) RevokeClusterSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeClusterSecurityGroupIngressInput, opts ...request.Option) (*RevokeClusterSecurityGroupIngressOutput, error)

RevokeClusterSecurityGroupIngressWithContext is the same as RevokeClusterSecurityGroupIngress with the addition of the ability to pass a context and additional request options.

See RevokeClusterSecurityGroupIngress for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RevokeSnapshotAccess

func (c *Redshift) RevokeSnapshotAccess(input *RevokeSnapshotAccessInput) (*RevokeSnapshotAccessOutput, error)

RevokeSnapshotAccess API operation for Amazon Redshift.

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 (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) in the Amazon Redshift Cluster Management Guide.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RevokeSnapshotAccess for usage and error information.

Returned Error Codes:

  • ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied" The owner of the specified snapshot has not authorized your account to access the snapshot.

  • ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound" The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group.

  • ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" The snapshot identifier does not refer to an existing cluster snapshot.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess

RevokeSnapshotAccessRequest

func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) (req *request.Request, output *RevokeSnapshotAccessOutput)

RevokeSnapshotAccessRequest generates a "aws/request.Request" representing the client's request for the RevokeSnapshotAccess operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RevokeSnapshotAccess for more information on using the RevokeSnapshotAccess API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RevokeSnapshotAccessRequest method. req, resp := client.RevokeSnapshotAccessRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess

RevokeSnapshotAccessWithContext

func (c *Redshift) RevokeSnapshotAccessWithContext(ctx aws.Context, input *RevokeSnapshotAccessInput, opts ...request.Option) (*RevokeSnapshotAccessOutput, error)

RevokeSnapshotAccessWithContext is the same as RevokeSnapshotAccess with the addition of the ability to pass a context and additional request options.

See RevokeSnapshotAccess for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RotateEncryptionKey

func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*RotateEncryptionKeyOutput, error)

RotateEncryptionKey API operation for Amazon Redshift.

Rotates the encryption keys for a cluster.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Redshift's API operation RotateEncryptionKey for usage and error information.

Returned Error Codes:

  • ErrCodeClusterNotFoundFault "ClusterNotFound" The ClusterIdentifier parameter does not refer to an existing cluster.

  • ErrCodeInvalidClusterStateFault "InvalidClusterState" The specified cluster is not in the available state.

  • ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault" The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey

RotateEncryptionKeyRequest

func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) (req *request.Request, output *RotateEncryptionKeyOutput)

RotateEncryptionKeyRequest generates a "aws/request.Request" representing the client's request for the RotateEncryptionKey operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RotateEncryptionKey for more information on using the RotateEncryptionKey API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RotateEncryptionKeyRequest method. req, resp := client.RotateEncryptionKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey

RotateEncryptionKeyWithContext

func (c *Redshift) RotateEncryptionKeyWithContext(ctx aws.Context, input *RotateEncryptionKeyInput, opts ...request.Option) (*RotateEncryptionKeyOutput, error)

RotateEncryptionKeyWithContext is the same as RotateEncryptionKey with the addition of the ability to pass a context and additional request options.

See RotateEncryptionKey for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

WaitUntilClusterAvailable

func (c *Redshift) WaitUntilClusterAvailable(input *DescribeClustersInput) error

WaitUntilClusterAvailable uses the Amazon Redshift API operation DescribeClusters to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

WaitUntilClusterAvailableWithContext

func (c *Redshift) WaitUntilClusterAvailableWithContext(ctx aws.Context, input *DescribeClustersInput, opts ...request.WaiterOption) error

WaitUntilClusterAvailableWithContext is an extended version of WaitUntilClusterAvailable. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

WaitUntilClusterDeleted

func (c *Redshift) WaitUntilClusterDeleted(input *DescribeClustersInput) error

WaitUntilClusterDeleted uses the Amazon Redshift API operation DescribeClusters to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

WaitUntilClusterDeletedWithContext

func (c *Redshift) WaitUntilClusterDeletedWithContext(ctx aws.Context, input *DescribeClustersInput, opts ...request.WaiterOption) error

WaitUntilClusterDeletedWithContext is an extended version of WaitUntilClusterDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

WaitUntilClusterRestored

func (c *Redshift) WaitUntilClusterRestored(input *DescribeClustersInput) error

WaitUntilClusterRestored uses the Amazon Redshift API operation DescribeClusters to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

WaitUntilClusterRestoredWithContext

func (c *Redshift) WaitUntilClusterRestoredWithContext(ctx aws.Context, input *DescribeClustersInput, opts ...request.WaiterOption) error

WaitUntilClusterRestoredWithContext is an extended version of WaitUntilClusterRestored. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

WaitUntilSnapshotAvailable

func (c *Redshift) WaitUntilSnapshotAvailable(input *DescribeClusterSnapshotsInput) error

WaitUntilSnapshotAvailable uses the Amazon Redshift API operation DescribeClusterSnapshots to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

WaitUntilSnapshotAvailableWithContext

func (c *Redshift) WaitUntilSnapshotAvailableWithContext(ctx aws.Context, input *DescribeClusterSnapshotsInput, opts ...request.WaiterOption) error

WaitUntilSnapshotAvailableWithContext is an extended version of WaitUntilSnapshotAvailable. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

On this page: