Class: Aws::Redshift::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Redshift::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-redshift/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#authorize_cluster_security_group_ingress(params = {}) ⇒ Types::AuthorizeClusterSecurityGroupIngressResult
Adds an inbound (ingress) rule to an Amazon Redshift security group.
-
#authorize_snapshot_access(params = {}) ⇒ Types::AuthorizeSnapshotAccessResult
Authorizes the specified AWS customer account to restore the specified snapshot.
-
#copy_cluster_snapshot(params = {}) ⇒ Types::CopyClusterSnapshotResult
Copies the specified automated cluster snapshot to a new manual cluster snapshot.
-
#create_cluster(params = {}) ⇒ Types::CreateClusterResult
Creates a new cluster.
-
#create_cluster_parameter_group(params = {}) ⇒ Types::CreateClusterParameterGroupResult
Creates an Amazon Redshift parameter group.
-
#create_cluster_security_group(params = {}) ⇒ Types::CreateClusterSecurityGroupResult
Creates a new Amazon Redshift security group.
-
#create_cluster_snapshot(params = {}) ⇒ Types::CreateClusterSnapshotResult
Creates a manual snapshot of the specified cluster.
-
#create_cluster_subnet_group(params = {}) ⇒ Types::CreateClusterSubnetGroupResult
Creates a new Amazon Redshift subnet group.
-
#create_event_subscription(params = {}) ⇒ Types::CreateEventSubscriptionResult
Creates an Amazon Redshift event notification subscription.
-
#create_hsm_client_certificate(params = {}) ⇒ Types::CreateHsmClientCertificateResult
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.
-
#create_hsm_configuration(params = {}) ⇒ Types::CreateHsmConfigurationResult
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).
-
#create_snapshot_copy_grant(params = {}) ⇒ Types::CreateSnapshotCopyGrantResult
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.
-
#create_tags(params = {}) ⇒ Struct
Adds one or more tags to a specified resource.
-
#delete_cluster(params = {}) ⇒ Types::DeleteClusterResult
Deletes a previously provisioned cluster.
-
#delete_cluster_parameter_group(params = {}) ⇒ Struct
Deletes a specified Amazon Redshift parameter group.
-
#delete_cluster_security_group(params = {}) ⇒ Struct
Deletes an Amazon Redshift security group.
-
#delete_cluster_snapshot(params = {}) ⇒ Types::DeleteClusterSnapshotResult
Deletes the specified manual snapshot.
-
#delete_cluster_subnet_group(params = {}) ⇒ Struct
Deletes the specified cluster subnet group.
-
#delete_event_subscription(params = {}) ⇒ Struct
Deletes an Amazon Redshift event notification subscription.
-
#delete_hsm_client_certificate(params = {}) ⇒ Struct
Deletes the specified HSM client certificate.
-
#delete_hsm_configuration(params = {}) ⇒ Struct
Deletes the specified Amazon Redshift HSM configuration.
-
#delete_snapshot_copy_grant(params = {}) ⇒ Struct
Deletes the specified snapshot copy grant.
-
#delete_tags(params = {}) ⇒ Struct
Deletes a tag or tags from a resource.
-
#describe_cluster_parameter_groups(params = {}) ⇒ Types::ClusterParameterGroupsMessage
Returns a list of Amazon Redshift parameter groups, including parameter groups you created and the default parameter group.
-
#describe_cluster_parameters(params = {}) ⇒ Types::ClusterParameterGroupDetails
Returns a detailed list of parameters contained within the specified Amazon Redshift parameter group.
-
#describe_cluster_security_groups(params = {}) ⇒ Types::ClusterSecurityGroupMessage
Returns information about Amazon Redshift security groups.
-
#describe_cluster_snapshots(params = {}) ⇒ Types::SnapshotMessage
Returns one or more snapshot objects, which contain metadata about your cluster snapshots.
-
#describe_cluster_subnet_groups(params = {}) ⇒ Types::ClusterSubnetGroupMessage
Returns one or more cluster subnet group objects, which contain metadata about your cluster subnet groups.
-
#describe_cluster_versions(params = {}) ⇒ Types::ClusterVersionsMessage
Returns descriptions of the available Amazon Redshift cluster versions.
-
#describe_clusters(params = {}) ⇒ Types::ClustersMessage
Returns properties of provisioned clusters including general cluster properties, cluster database properties, maintenance and backup properties, and security and access properties.
-
#describe_default_cluster_parameters(params = {}) ⇒ Types::DescribeDefaultClusterParametersResult
Returns a list of parameter settings for the specified parameter group family.
-
#describe_event_categories(params = {}) ⇒ Types::EventCategoriesMessage
Displays a list of event categories for all event source types, or for a specified source type.
-
#describe_event_subscriptions(params = {}) ⇒ Types::EventSubscriptionsMessage
Lists descriptions of all the Amazon Redshift event notifications subscription for a customer account.
-
#describe_events(params = {}) ⇒ Types::EventsMessage
Returns events related to clusters, security groups, snapshots, and parameter groups for the past 14 days.
-
#describe_hsm_client_certificates(params = {}) ⇒ Types::HsmClientCertificateMessage
Returns information about the specified HSM client certificate.
-
#describe_hsm_configurations(params = {}) ⇒ Types::HsmConfigurationMessage
Returns information about the specified Amazon Redshift HSM configuration.
-
#describe_logging_status(params = {}) ⇒ Types::LoggingStatus
Describes whether information, such as queries and connection attempts, is being logged for the specified Amazon Redshift cluster.
-
#describe_orderable_cluster_options(params = {}) ⇒ Types::OrderableClusterOptionsMessage
Returns a list of orderable cluster options.
-
#describe_reserved_node_offerings(params = {}) ⇒ Types::ReservedNodeOfferingsMessage
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.
-
#describe_reserved_nodes(params = {}) ⇒ Types::ReservedNodesMessage
Returns the descriptions of the reserved nodes.
-
#describe_resize(params = {}) ⇒ Types::ResizeProgressMessage
Returns information about the last resize operation for the specified cluster.
-
#describe_snapshot_copy_grants(params = {}) ⇒ Types::SnapshotCopyGrantMessage
Returns a list of snapshot copy grants owned by the AWS account in the destination region.
-
#describe_table_restore_status(params = {}) ⇒ Types::TableRestoreStatusMessage
Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot API action.
-
#describe_tags(params = {}) ⇒ Types::TaggedResourceListMessage
Returns a list of tags.
-
#disable_logging(params = {}) ⇒ Types::LoggingStatus
Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
-
#disable_snapshot_copy(params = {}) ⇒ Types::DisableSnapshotCopyResult
Disables the automatic copying of snapshots from one region to another region for a specified cluster.
-
#enable_logging(params = {}) ⇒ Types::LoggingStatus
Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
-
#enable_snapshot_copy(params = {}) ⇒ Types::EnableSnapshotCopyResult
Enables the automatic copy of snapshots from one region to another region for a specified cluster.
-
#get_cluster_credentials(params = {}) ⇒ Types::ClusterCredentials
Returns a database user name and temporary password with temporary authorization to log in to an Amazon Redshift database.
-
#modify_cluster(params = {}) ⇒ Types::ModifyClusterResult
Modifies the settings for a cluster.
-
#modify_cluster_iam_roles(params = {}) ⇒ Types::ModifyClusterIamRolesResult
Modifies the list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.
-
#modify_cluster_parameter_group(params = {}) ⇒ Types::ClusterParameterGroupNameMessage
Modifies the parameters of a parameter group.
-
#modify_cluster_subnet_group(params = {}) ⇒ Types::ModifyClusterSubnetGroupResult
Modifies a cluster subnet group to include the specified list of VPC subnets.
-
#modify_event_subscription(params = {}) ⇒ Types::ModifyEventSubscriptionResult
Modifies an existing Amazon Redshift event notification subscription.
-
#modify_snapshot_copy_retention_period(params = {}) ⇒ Types::ModifySnapshotCopyRetentionPeriodResult
Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.
-
#purchase_reserved_node_offering(params = {}) ⇒ Types::PurchaseReservedNodeOfferingResult
Allows you to purchase reserved nodes.
-
#reboot_cluster(params = {}) ⇒ Types::RebootClusterResult
Reboots a cluster.
-
#reset_cluster_parameter_group(params = {}) ⇒ Types::ClusterParameterGroupNameMessage
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”.
-
#restore_from_cluster_snapshot(params = {}) ⇒ Types::RestoreFromClusterSnapshotResult
Creates a new cluster from a snapshot.
-
#restore_table_from_cluster_snapshot(params = {}) ⇒ Types::RestoreTableFromClusterSnapshotResult
Creates a new table from a table in an Amazon Redshift cluster snapshot.
-
#revoke_cluster_security_group_ingress(params = {}) ⇒ Types::RevokeClusterSecurityGroupIngressResult
Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group.
-
#revoke_snapshot_access(params = {}) ⇒ Types::RevokeSnapshotAccessResult
Removes the ability of the specified AWS customer account to restore the specified snapshot.
-
#rotate_encryption_key(params = {}) ⇒ Types::RotateEncryptionKeyResult
Rotates the encryption keys for a cluster.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
142 143 144 |
# File 'lib/aws-sdk-redshift/client.rb', line 142 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6251 6252 6253 |
# File 'lib/aws-sdk-redshift/client.rb', line 6251 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6254 6255 6256 |
# File 'lib/aws-sdk-redshift/client.rb', line 6254 def errors_module Errors end |
Instance Method Details
#authorize_cluster_security_group_ingress(params = {}) ⇒ Types::AuthorizeClusterSecurityGroupIngressResult
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].
You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to [Working with Security Groups] in the *Amazon Redshift Cluster Management Guide*.
[1]: en.wikipedia.org/wiki/Classless_Inter-Domain_Routing [2]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html
229 230 231 232 |
# File 'lib/aws-sdk-redshift/client.rb', line 229 def (params = {}, = {}) req = build_request(:authorize_cluster_security_group_ingress, params) req.send_request() end |
#authorize_snapshot_access(params = {}) ⇒ Types::AuthorizeSnapshotAccessResult
Authorizes the specified AWS customer account to restore the specified snapshot.
For more information about working with snapshots, go to [Amazon Redshift Snapshots] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
313 314 315 316 |
# File 'lib/aws-sdk-redshift/client.rb', line 313 def (params = {}, = {}) req = build_request(:authorize_snapshot_access, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 |
# File 'lib/aws-sdk-redshift/client.rb', line 6110 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-redshift' context[:gem_version] = '1.0.0' Seahorse::Client::Request.new(handlers, context) end |
#copy_cluster_snapshot(params = {}) ⇒ Types::CopyClusterSnapshotResult
Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.
When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.
For more information about working with snapshots, go to [Amazon Redshift Snapshots] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
427 428 429 430 |
# File 'lib/aws-sdk-redshift/client.rb', line 427 def copy_cluster_snapshot(params = {}, = {}) req = build_request(:copy_cluster_snapshot, params) req.send_request() end |
#create_cluster(params = {}) ⇒ Types::CreateClusterResult
Creates a new cluster.
To create the 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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
862 863 864 865 |
# File 'lib/aws-sdk-redshift/client.rb', line 862 def create_cluster(params = {}, = {}) req = build_request(:create_cluster, params) req.send_request() end |
#create_cluster_parameter_group(params = {}) ⇒ Types::CreateClusterParameterGroupResult
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
951 952 953 954 |
# File 'lib/aws-sdk-redshift/client.rb', line 951 def create_cluster_parameter_group(params = {}, = {}) req = build_request(:create_cluster_parameter_group, params) req.send_request() end |
#create_cluster_security_group(params = {}) ⇒ Types::CreateClusterSecurityGroupResult
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html
1030 1031 1032 1033 |
# File 'lib/aws-sdk-redshift/client.rb', line 1030 def create_cluster_security_group(params = {}, = {}) req = build_request(:create_cluster_security_group, params) req.send_request() end |
#create_cluster_snapshot(params = {}) ⇒ Types::CreateClusterSnapshotResult
Creates a manual snapshot of the specified cluster. The cluster must be in the available state.
For more information about working with snapshots, go to [Amazon Redshift Snapshots] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
1126 1127 1128 1129 |
# File 'lib/aws-sdk-redshift/client.rb', line 1126 def create_cluster_snapshot(params = {}, = {}) req = build_request(:create_cluster_snapshot, params) req.send_request() end |
#create_cluster_subnet_group(params = {}) ⇒ Types::CreateClusterSubnetGroupResult
Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.
For information about subnet groups, go to [Amazon Redshift Cluster Subnet Groups] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html
1203 1204 1205 1206 |
# File 'lib/aws-sdk-redshift/client.rb', line 1203 def create_cluster_subnet_group(params = {}, = {}) req = build_request(:create_cluster_subnet_group, params) req.send_request() end |
#create_event_subscription(params = {}) ⇒ Types::CreateEventSubscriptionResult
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.
1336 1337 1338 1339 |
# File 'lib/aws-sdk-redshift/client.rb', line 1336 def create_event_subscription(params = {}, = {}) req = build_request(:create_event_subscription, params) req.send_request() end |
#create_hsm_client_certificate(params = {}) ⇒ Types::CreateHsmClientCertificateResult
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] in the Amazon Redshift Cluster Management Guide.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html
1392 1393 1394 1395 |
# File 'lib/aws-sdk-redshift/client.rb', line 1392 def create_hsm_client_certificate(params = {}, = {}) req = build_request(:create_hsm_client_certificate, params) req.send_request() end |
#create_hsm_configuration(params = {}) ⇒ Types::CreateHsmConfigurationResult
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] in the Amazon Redshift Cluster Management Guide.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html
1471 1472 1473 1474 |
# File 'lib/aws-sdk-redshift/client.rb', line 1471 def create_hsm_configuration(params = {}, = {}) req = build_request(:create_hsm_configuration, params) req.send_request() end |
#create_snapshot_copy_grant(params = {}) ⇒ Types::CreateSnapshotCopyGrantResult
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][1
-
in the *Amazon Redshift
Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html
1541 1542 1543 1544 |
# File 'lib/aws-sdk-redshift/client.rb', line 1541 def create_snapshot_copy_grant(params = {}, = {}) req = build_request(:create_snapshot_copy_grant, params) req.send_request() end |
#create_tags(params = {}) ⇒ Struct
Adds one or more tags to a specified resource.
A resource can have up to 10 tags. If you try to create more than 10 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.
1585 1586 1587 1588 |
# File 'lib/aws-sdk-redshift/client.rb', line 1585 def (params = {}, = {}) req = build_request(:create_tags, params) req.send_request() end |
#delete_cluster(params = {}) ⇒ Types::DeleteClusterResult
Deletes a previously provisioned cluster. A successful response from the web service indicates that the request was received correctly. Use DescribeClusters to monitor the status of the deletion. The delete operation cannot be canceled or reverted once submitted. For more information about managing clusters, go to [Amazon Redshift Clusters] in the *Amazon Redshift Cluster Management Guide*.
If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot to false and specify a name for FinalClusterSnapshotIdentifier. You can later restore this snapshot to resume using the cluster. If a final cluster snapshot is requested, the status of the cluster will be “final-snapshot” while the snapshot is being taken, then it’s “deleting” once Amazon Redshift begins deleting the cluster.
For more information about managing clusters, go to [Amazon Redshift Clusters] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
1739 1740 1741 1742 |
# File 'lib/aws-sdk-redshift/client.rb', line 1739 def delete_cluster(params = {}, = {}) req = build_request(:delete_cluster, params) req.send_request() end |
#delete_cluster_parameter_group(params = {}) ⇒ Struct
Deletes a specified Amazon Redshift parameter group.
<note markdown=“1”> You cannot delete a parameter group if it is associated with a cluster.
</note>
1772 1773 1774 1775 |
# File 'lib/aws-sdk-redshift/client.rb', line 1772 def delete_cluster_parameter_group(params = {}, = {}) req = build_request(:delete_cluster_parameter_group, params) req.send_request() end |
#delete_cluster_security_group(params = {}) ⇒ Struct
Deletes an Amazon Redshift security group.
<note markdown=“1”> You cannot delete a security group that is associated with any clusters. You cannot delete the default security group.
</note>
For information about managing security groups, go to [Amazon Redshift Cluster Security Groups] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html
1807 1808 1809 1810 |
# File 'lib/aws-sdk-redshift/client.rb', line 1807 def delete_cluster_security_group(params = {}, = {}) req = build_request(:delete_cluster_security_group, params) req.send_request() end |
#delete_cluster_snapshot(params = {}) ⇒ Types::DeleteClusterSnapshotResult
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.
1889 1890 1891 1892 |
# File 'lib/aws-sdk-redshift/client.rb', line 1889 def delete_cluster_snapshot(params = {}, = {}) req = build_request(:delete_cluster_snapshot, params) req.send_request() end |
#delete_cluster_subnet_group(params = {}) ⇒ Struct
Deletes the specified cluster subnet group.
1911 1912 1913 1914 |
# File 'lib/aws-sdk-redshift/client.rb', line 1911 def delete_cluster_subnet_group(params = {}, = {}) req = build_request(:delete_cluster_subnet_group, params) req.send_request() end |
#delete_event_subscription(params = {}) ⇒ Struct
Deletes an Amazon Redshift event notification subscription.
1934 1935 1936 1937 |
# File 'lib/aws-sdk-redshift/client.rb', line 1934 def delete_event_subscription(params = {}, = {}) req = build_request(:delete_event_subscription, params) req.send_request() end |
#delete_hsm_client_certificate(params = {}) ⇒ Struct
Deletes the specified HSM client certificate.
1956 1957 1958 1959 |
# File 'lib/aws-sdk-redshift/client.rb', line 1956 def delete_hsm_client_certificate(params = {}, = {}) req = build_request(:delete_hsm_client_certificate, params) req.send_request() end |
#delete_hsm_configuration(params = {}) ⇒ Struct
Deletes the specified Amazon Redshift HSM configuration.
1978 1979 1980 1981 |
# File 'lib/aws-sdk-redshift/client.rb', line 1978 def delete_hsm_configuration(params = {}, = {}) req = build_request(:delete_hsm_configuration, params) req.send_request() end |
#delete_snapshot_copy_grant(params = {}) ⇒ Struct
Deletes the specified snapshot copy grant.
2000 2001 2002 2003 |
# File 'lib/aws-sdk-redshift/client.rb', line 2000 def delete_snapshot_copy_grant(params = {}, = {}) req = build_request(:delete_snapshot_copy_grant, params) req.send_request() end |
#delete_tags(params = {}) ⇒ Struct
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.
2029 2030 2031 2032 |
# File 'lib/aws-sdk-redshift/client.rb', line 2029 def (params = {}, = {}) req = build_request(:delete_tags, params) req.send_request() end |
#describe_cluster_parameter_groups(params = {}) ⇒ Types::ClusterParameterGroupsMessage
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][1
-
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.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
2133 2134 2135 2136 |
# File 'lib/aws-sdk-redshift/client.rb', line 2133 def describe_cluster_parameter_groups(params = {}, = {}) req = build_request(:describe_cluster_parameter_groups, params) req.send_request() end |
#describe_cluster_parameters(params = {}) ⇒ Types::ClusterParameterGroupDetails
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][1
-
in the *Amazon Redshift Cluster
Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
2220 2221 2222 2223 |
# File 'lib/aws-sdk-redshift/client.rb', line 2220 def describe_cluster_parameters(params = {}, = {}) req = build_request(:describe_cluster_parameters, params) req.send_request() end |
#describe_cluster_security_groups(params = {}) ⇒ Types::ClusterSecurityGroupMessage
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] 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.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html
2338 2339 2340 2341 |
# File 'lib/aws-sdk-redshift/client.rb', line 2338 def describe_cluster_security_groups(params = {}, = {}) req = build_request(:describe_cluster_security_groups, params) req.send_request() end |
#describe_cluster_snapshots(params = {}) ⇒ Types::SnapshotMessage
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.
2505 2506 2507 2508 |
# File 'lib/aws-sdk-redshift/client.rb', line 2505 def describe_cluster_snapshots(params = {}, = {}) req = build_request(:describe_cluster_snapshots, params) req.send_request() end |
#describe_cluster_subnet_groups(params = {}) ⇒ Types::ClusterSubnetGroupMessage
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.
2602 2603 2604 2605 |
# File 'lib/aws-sdk-redshift/client.rb', line 2602 def describe_cluster_subnet_groups(params = {}, = {}) req = build_request(:describe_cluster_subnet_groups, params) req.send_request() end |
#describe_cluster_versions(params = {}) ⇒ Types::ClusterVersionsMessage
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
2679 2680 2681 2682 |
# File 'lib/aws-sdk-redshift/client.rb', line 2679 def describe_cluster_versions(params = {}, = {}) req = build_request(:describe_cluster_versions, params) req.send_request() end |
#describe_clusters(params = {}) ⇒ Types::ClustersMessage
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] 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.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
2843 2844 2845 2846 |
# File 'lib/aws-sdk-redshift/client.rb', line 2843 def describe_clusters(params = {}, = {}) req = build_request(:describe_clusters, params) req.send_request() end |
#describe_default_cluster_parameters(params = {}) ⇒ Types::DescribeDefaultClusterParametersResult
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][1
-
in the *Amazon Redshift Cluster
Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
2913 2914 2915 2916 |
# File 'lib/aws-sdk-redshift/client.rb', line 2913 def describe_default_cluster_parameters(params = {}, = {}) req = build_request(:describe_default_cluster_parameters, params) req.send_request() end |
#describe_event_categories(params = {}) ⇒ Types::EventCategoriesMessage
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].
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html
2958 2959 2960 2961 |
# File 'lib/aws-sdk-redshift/client.rb', line 2958 def describe_event_categories(params = {}, = {}) req = build_request(:describe_event_categories, params) req.send_request() end |
#describe_event_subscriptions(params = {}) ⇒ Types::EventSubscriptionsMessage
Lists descriptions of all the Amazon Redshift event notifications subscription for a customer account. If you specify a subscription name, lists the description for that subscription.
3028 3029 3030 3031 |
# File 'lib/aws-sdk-redshift/client.rb', line 3028 def describe_event_subscriptions(params = {}, = {}) req = build_request(:describe_event_subscriptions, params) req.send_request() end |
#describe_events(params = {}) ⇒ Types::EventsMessage
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.
3161 3162 3163 3164 |
# File 'lib/aws-sdk-redshift/client.rb', line 3161 def describe_events(params = {}, = {}) req = build_request(:describe_events, params) req.send_request() end |
#describe_hsm_client_certificates(params = {}) ⇒ Types::HsmClientCertificateMessage
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.
3253 3254 3255 3256 |
# File 'lib/aws-sdk-redshift/client.rb', line 3253 def describe_hsm_client_certificates(params = {}, = {}) req = build_request(:describe_hsm_client_certificates, params) req.send_request() end |
#describe_hsm_configurations(params = {}) ⇒ Types::HsmConfigurationMessage
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.
3348 3349 3350 3351 |
# File 'lib/aws-sdk-redshift/client.rb', line 3348 def describe_hsm_configurations(params = {}, = {}) req = build_request(:describe_hsm_configurations, params) req.send_request() end |
#describe_logging_status(params = {}) ⇒ Types::LoggingStatus
Describes whether information, such as queries and connection attempts, is being logged for the specified Amazon Redshift cluster.
3389 3390 3391 3392 |
# File 'lib/aws-sdk-redshift/client.rb', line 3389 def describe_logging_status(params = {}, = {}) req = build_request(:describe_logging_status, params) req.send_request() end |
#describe_orderable_cluster_options(params = {}) ⇒ Types::OrderableClusterOptionsMessage
Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to [Amazon Redshift Clusters] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
3469 3470 3471 3472 |
# File 'lib/aws-sdk-redshift/client.rb', line 3469 def (params = {}, = {}) req = build_request(:describe_orderable_cluster_options, params) req.send_request() end |
#describe_reserved_node_offerings(params = {}) ⇒ Types::ReservedNodeOfferingsMessage
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html
3544 3545 3546 3547 |
# File 'lib/aws-sdk-redshift/client.rb', line 3544 def describe_reserved_node_offerings(params = {}, = {}) req = build_request(:describe_reserved_node_offerings, params) req.send_request() end |
#describe_reserved_nodes(params = {}) ⇒ Types::ReservedNodesMessage
Returns the descriptions of the reserved nodes.
3609 3610 3611 3612 |
# File 'lib/aws-sdk-redshift/client.rb', line 3609 def describe_reserved_nodes(params = {}, = {}) req = build_request(:describe_reserved_nodes, params) req.send_request() end |
#describe_resize(params = {}) ⇒ Types::ResizeProgressMessage
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.
3673 3674 3675 3676 |
# File 'lib/aws-sdk-redshift/client.rb', line 3673 def describe_resize(params = {}, = {}) req = build_request(:describe_resize, params) req.send_request() end |
#describe_snapshot_copy_grants(params = {}) ⇒ Types::SnapshotCopyGrantMessage
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][1
-
in the *Amazon Redshift
Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html
3760 3761 3762 3763 |
# File 'lib/aws-sdk-redshift/client.rb', line 3760 def describe_snapshot_copy_grants(params = {}, = {}) req = build_request(:describe_snapshot_copy_grants, params) req.send_request() end |
#describe_table_restore_status(params = {}) ⇒ Types::TableRestoreStatusMessage
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.
3831 3832 3833 3834 |
# File 'lib/aws-sdk-redshift/client.rb', line 3831 def describe_table_restore_status(params = {}, = {}) req = build_request(:describe_table_restore_status, params) req.send_request() end |
#describe_tags(params = {}) ⇒ Types::TaggedResourceListMessage
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
MaxRecordsandMarkerparameters together with the ARN parameter. -
The
MaxRecordsparameter 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.
3959 3960 3961 3962 |
# File 'lib/aws-sdk-redshift/client.rb', line 3959 def (params = {}, = {}) req = build_request(:describe_tags, params) req.send_request() end |
#disable_logging(params = {}) ⇒ Types::LoggingStatus
Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
4000 4001 4002 4003 |
# File 'lib/aws-sdk-redshift/client.rb', line 4000 def disable_logging(params = {}, = {}) req = build_request(:disable_logging, params) req.send_request() end |
#disable_snapshot_copy(params = {}) ⇒ Types::DisableSnapshotCopyResult
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.
4106 4107 4108 4109 |
# File 'lib/aws-sdk-redshift/client.rb', line 4106 def disable_snapshot_copy(params = {}, = {}) req = build_request(:disable_snapshot_copy, params) req.send_request() end |
#enable_logging(params = {}) ⇒ Types::LoggingStatus
Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
4180 4181 4182 4183 |
# File 'lib/aws-sdk-redshift/client.rb', line 4180 def enable_logging(params = {}, = {}) req = build_request(:enable_logging, params) req.send_request() end |
#enable_snapshot_copy(params = {}) ⇒ Types::EnableSnapshotCopyResult
Enables the automatic copy of snapshots from one region to another region for a specified cluster.
4306 4307 4308 4309 |
# File 'lib/aws-sdk-redshift/client.rb', line 4306 def enable_snapshot_copy(params = {}, = {}) req = build_request(:enable_snapshot_copy, params) req.send_request() end |
#get_cluster_credentials(params = {}) ⇒ Types::ClusterCredentials
Returns a database user name and temporary password with temporary authorization to log in 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 in. 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 Generating IAM Database User Credentials in the Amazon Redshift Cluster Management Guide.
The IAM user or role that executes GetClusterCredentials must have an IAM policy attached that allows the redshift:GetClusterCredentials action with access to the dbuser resource on the cluster. The user name specified for dbuser in the IAM policy and the user name specified for the DbUser parameter must match.
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.
4434 4435 4436 4437 |
# File 'lib/aws-sdk-redshift/client.rb', line 4434 def get_cluster_credentials(params = {}, = {}) req = build_request(:get_cluster_credentials, params) req.send_request() end |
#modify_cluster(params = {}) ⇒ Types::ModifyClusterResult
Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to [Amazon Redshift Clusters] in the *Amazon Redshift Cluster Management Guide*.
You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
4778 4779 4780 4781 |
# File 'lib/aws-sdk-redshift/client.rb', line 4778 def modify_cluster(params = {}, = {}) req = build_request(:modify_cluster, params) req.send_request() end |
#modify_cluster_iam_roles(params = {}) ⇒ Types::ModifyClusterIamRolesResult
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.
4890 4891 4892 4893 |
# File 'lib/aws-sdk-redshift/client.rb', line 4890 def modify_cluster_iam_roles(params = {}, = {}) req = build_request(:modify_cluster_iam_roles, params) req.send_request() end |
#modify_cluster_parameter_group(params = {}) ⇒ Types::ClusterParameterGroupNameMessage
Modifies the parameters of a parameter group.
For more information about parameters and parameter groups, go to
- Amazon Redshift Parameter Groups][1
-
in the *Amazon Redshift Cluster
Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html
4952 4953 4954 4955 |
# File 'lib/aws-sdk-redshift/client.rb', line 4952 def modify_cluster_parameter_group(params = {}, = {}) req = build_request(:modify_cluster_parameter_group, params) req.send_request() end |
#modify_cluster_subnet_group(params = {}) ⇒ Types::ModifyClusterSubnetGroupResult
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.
5001 5002 5003 5004 |
# File 'lib/aws-sdk-redshift/client.rb', line 5001 def modify_cluster_subnet_group(params = {}, = {}) req = build_request(:modify_cluster_subnet_group, params) req.send_request() end |
#modify_event_subscription(params = {}) ⇒ Types::ModifyEventSubscriptionResult
Modifies an existing Amazon Redshift event notification subscription.
5091 5092 5093 5094 |
# File 'lib/aws-sdk-redshift/client.rb', line 5091 def modify_event_subscription(params = {}, = {}) req = build_request(:modify_event_subscription, params) req.send_request() end |
#modify_snapshot_copy_retention_period(params = {}) ⇒ Types::ModifySnapshotCopyRetentionPeriodResult
Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.
5205 5206 5207 5208 |
# File 'lib/aws-sdk-redshift/client.rb', line 5205 def modify_snapshot_copy_retention_period(params = {}, = {}) req = build_request(:modify_snapshot_copy_retention_period, params) req.send_request() end |
#purchase_reserved_node_offering(params = {}) ⇒ Types::PurchaseReservedNodeOfferingResult
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html
5265 5266 5267 5268 |
# File 'lib/aws-sdk-redshift/client.rb', line 5265 def purchase_reserved_node_offering(params = {}, = {}) req = build_request(:purchase_reserved_node_offering, params) req.send_request() end |
#reboot_cluster(params = {}) ⇒ Types::RebootClusterResult
Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting. A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to [Amazon Redshift Clusters] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html
5371 5372 5373 5374 |
# File 'lib/aws-sdk-redshift/client.rb', line 5371 def reboot_cluster(params = {}, = {}) req = build_request(:reboot_cluster, params) req.send_request() end |
#reset_cluster_parameter_group(params = {}) ⇒ Types::ClusterParameterGroupNameMessage
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.
5432 5433 5434 5435 |
# File 'lib/aws-sdk-redshift/client.rb', line 5432 def reset_cluster_parameter_group(params = {}, = {}) req = build_request(:reset_cluster_parameter_group, params) req.send_request() end |
#restore_from_cluster_snapshot(params = {}) ⇒ Types::RestoreFromClusterSnapshotResult
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
5754 5755 5756 5757 |
# File 'lib/aws-sdk-redshift/client.rb', line 5754 def restore_from_cluster_snapshot(params = {}, = {}) req = build_request(:restore_from_cluster_snapshot, params) req.send_request() end |
#restore_table_from_cluster_snapshot(params = {}) ⇒ Types::RestoreTableFromClusterSnapshotResult
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.
5841 5842 5843 5844 |
# File 'lib/aws-sdk-redshift/client.rb', line 5841 def restore_table_from_cluster_snapshot(params = {}, = {}) req = build_request(:restore_table_from_cluster_snapshot, params) req.send_request() end |
#revoke_cluster_security_group_ingress(params = {}) ⇒ Types::RevokeClusterSecurityGroupIngressResult
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] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html
5918 5919 5920 5921 |
# File 'lib/aws-sdk-redshift/client.rb', line 5918 def revoke_cluster_security_group_ingress(params = {}, = {}) req = build_request(:revoke_cluster_security_group_ingress, params) req.send_request() end |
#revoke_snapshot_access(params = {}) ⇒ Types::RevokeSnapshotAccessResult
Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.
For more information about working with snapshots, go to [Amazon Redshift Snapshots] in the *Amazon Redshift Cluster Management Guide*.
[1]: docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html
6001 6002 6003 6004 |
# File 'lib/aws-sdk-redshift/client.rb', line 6001 def revoke_snapshot_access(params = {}, = {}) req = build_request(:revoke_snapshot_access, params) req.send_request() end |
#rotate_encryption_key(params = {}) ⇒ Types::RotateEncryptionKeyResult
Rotates the encryption keys for a cluster.
6101 6102 6103 6104 |
# File 'lib/aws-sdk-redshift/client.rb', line 6101 def rotate_encryption_key(params = {}, = {}) req = build_request(:rotate_encryption_key, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
## Basic Usage
A waiter will call an API operation until:
-
It is successful
-
It enters a terminal state
-
It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.waiter_until(waiter_name, params)
## Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
## Callbacks
You can be notified before each polling attempt and before each delay. If you throw :success or :failure from these callbacks, it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
## Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
## Valid Waiters
The following table lists the valid waiter names, the operations they call, and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts | | —————— | —————————– | ——– | ————- | | cluster_available | #describe_clusters | 60 | 30 | | cluster_deleted | #describe_clusters | 60 | 30 | | cluster_restored | #describe_clusters | 60 | 30 | | snapshot_available | #describe_cluster_snapshots | 15 | 20 |
6214 6215 6216 6217 6218 |
# File 'lib/aws-sdk-redshift/client.rb', line 6214 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6222 6223 6224 |
# File 'lib/aws-sdk-redshift/client.rb', line 6222 def waiter_names waiters.keys end |