How to use describe_cluster_db_revisions method in localstack

Best Python code snippet using localstack_python

literals.pyi

Source:literals.pyi Github

copy

Full Screen

1"""2Type annotations for redshift service literal definitions.3[Open documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_redshift/literals.html)4Usage::5 ```python6 from mypy_boto3_redshift.literals import ActionTypeType7 data: ActionTypeType = "recommend-node-config"8 ```9"""10import sys11if sys.version_info >= (3, 8):12 from typing import Literal13else:14 from typing_extensions import Literal15__all__ = (16 "ActionTypeType",17 "AquaConfigurationStatusType",18 "AquaStatusType",19 "AuthorizationStatusType",20 "ClusterAvailableWaiterName",21 "ClusterDeletedWaiterName",22 "ClusterRestoredWaiterName",23 "DataShareStatusForConsumerType",24 "DataShareStatusForProducerType",25 "DataShareStatusType",26 "DescribeClusterDbRevisionsPaginatorName",27 "DescribeClusterParameterGroupsPaginatorName",28 "DescribeClusterParametersPaginatorName",29 "DescribeClusterSecurityGroupsPaginatorName",30 "DescribeClusterSnapshotsPaginatorName",31 "DescribeClusterSubnetGroupsPaginatorName",32 "DescribeClusterTracksPaginatorName",33 "DescribeClusterVersionsPaginatorName",34 "DescribeClustersPaginatorName",35 "DescribeDataSharesForConsumerPaginatorName",36 "DescribeDataSharesForProducerPaginatorName",37 "DescribeDataSharesPaginatorName",38 "DescribeDefaultClusterParametersPaginatorName",39 "DescribeEndpointAccessPaginatorName",40 "DescribeEndpointAuthorizationPaginatorName",41 "DescribeEventSubscriptionsPaginatorName",42 "DescribeEventsPaginatorName",43 "DescribeHsmClientCertificatesPaginatorName",44 "DescribeHsmConfigurationsPaginatorName",45 "DescribeNodeConfigurationOptionsPaginatorName",46 "DescribeOrderableClusterOptionsPaginatorName",47 "DescribeReservedNodeExchangeStatusPaginatorName",48 "DescribeReservedNodeOfferingsPaginatorName",49 "DescribeReservedNodesPaginatorName",50 "DescribeScheduledActionsPaginatorName",51 "DescribeSnapshotCopyGrantsPaginatorName",52 "DescribeSnapshotSchedulesPaginatorName",53 "DescribeTableRestoreStatusPaginatorName",54 "DescribeTagsPaginatorName",55 "DescribeUsageLimitsPaginatorName",56 "GetReservedNodeExchangeConfigurationOptionsPaginatorName",57 "GetReservedNodeExchangeOfferingsPaginatorName",58 "LogDestinationTypeType",59 "ModeType",60 "NodeConfigurationOptionsFilterNameType",61 "OperatorTypeType",62 "ParameterApplyTypeType",63 "PartnerIntegrationStatusType",64 "ReservedNodeExchangeActionTypeType",65 "ReservedNodeExchangeStatusTypeType",66 "ReservedNodeOfferingTypeType",67 "ScheduleStateType",68 "ScheduledActionFilterNameType",69 "ScheduledActionStateType",70 "ScheduledActionTypeValuesType",71 "SnapshotAttributeToSortByType",72 "SnapshotAvailableWaiterName",73 "SortByOrderType",74 "SourceTypeType",75 "TableRestoreStatusTypeType",76 "UsageLimitBreachActionType",77 "UsageLimitFeatureTypeType",78 "UsageLimitLimitTypeType",79 "UsageLimitPeriodType",80)81ActionTypeType = Literal["recommend-node-config", "resize-cluster", "restore-cluster"]82AquaConfigurationStatusType = Literal["auto", "disabled", "enabled"]83AquaStatusType = Literal["applying", "disabled", "enabled"]84AuthorizationStatusType = Literal["Authorized", "Revoking"]85ClusterAvailableWaiterName = Literal["cluster_available"]86ClusterDeletedWaiterName = Literal["cluster_deleted"]87ClusterRestoredWaiterName = Literal["cluster_restored"]88DataShareStatusForConsumerType = Literal["ACTIVE", "AVAILABLE"]89DataShareStatusForProducerType = Literal[90 "ACTIVE", "AUTHORIZED", "DEAUTHORIZED", "PENDING_AUTHORIZATION", "REJECTED"91]92DataShareStatusType = Literal[93 "ACTIVE", "AUTHORIZED", "AVAILABLE", "DEAUTHORIZED", "PENDING_AUTHORIZATION", "REJECTED"94]95DescribeClusterDbRevisionsPaginatorName = Literal["describe_cluster_db_revisions"]96DescribeClusterParameterGroupsPaginatorName = Literal["describe_cluster_parameter_groups"]97DescribeClusterParametersPaginatorName = Literal["describe_cluster_parameters"]98DescribeClusterSecurityGroupsPaginatorName = Literal["describe_cluster_security_groups"]99DescribeClusterSnapshotsPaginatorName = Literal["describe_cluster_snapshots"]100DescribeClusterSubnetGroupsPaginatorName = Literal["describe_cluster_subnet_groups"]101DescribeClusterTracksPaginatorName = Literal["describe_cluster_tracks"]102DescribeClusterVersionsPaginatorName = Literal["describe_cluster_versions"]103DescribeClustersPaginatorName = Literal["describe_clusters"]104DescribeDataSharesForConsumerPaginatorName = Literal["describe_data_shares_for_consumer"]105DescribeDataSharesForProducerPaginatorName = Literal["describe_data_shares_for_producer"]106DescribeDataSharesPaginatorName = Literal["describe_data_shares"]107DescribeDefaultClusterParametersPaginatorName = Literal["describe_default_cluster_parameters"]108DescribeEndpointAccessPaginatorName = Literal["describe_endpoint_access"]109DescribeEndpointAuthorizationPaginatorName = Literal["describe_endpoint_authorization"]110DescribeEventSubscriptionsPaginatorName = Literal["describe_event_subscriptions"]111DescribeEventsPaginatorName = Literal["describe_events"]112DescribeHsmClientCertificatesPaginatorName = Literal["describe_hsm_client_certificates"]113DescribeHsmConfigurationsPaginatorName = Literal["describe_hsm_configurations"]114DescribeNodeConfigurationOptionsPaginatorName = Literal["describe_node_configuration_options"]115DescribeOrderableClusterOptionsPaginatorName = Literal["describe_orderable_cluster_options"]116DescribeReservedNodeExchangeStatusPaginatorName = Literal["describe_reserved_node_exchange_status"]117DescribeReservedNodeOfferingsPaginatorName = Literal["describe_reserved_node_offerings"]118DescribeReservedNodesPaginatorName = Literal["describe_reserved_nodes"]119DescribeScheduledActionsPaginatorName = Literal["describe_scheduled_actions"]120DescribeSnapshotCopyGrantsPaginatorName = Literal["describe_snapshot_copy_grants"]121DescribeSnapshotSchedulesPaginatorName = Literal["describe_snapshot_schedules"]122DescribeTableRestoreStatusPaginatorName = Literal["describe_table_restore_status"]123DescribeTagsPaginatorName = Literal["describe_tags"]124DescribeUsageLimitsPaginatorName = Literal["describe_usage_limits"]125GetReservedNodeExchangeConfigurationOptionsPaginatorName = Literal[126 "get_reserved_node_exchange_configuration_options"127]128GetReservedNodeExchangeOfferingsPaginatorName = Literal["get_reserved_node_exchange_offerings"]129LogDestinationTypeType = Literal["cloudwatch", "s3"]130ModeType = Literal["high-performance", "standard"]131NodeConfigurationOptionsFilterNameType = Literal[132 "EstimatedDiskUtilizationPercent", "Mode", "NodeType", "NumberOfNodes"133]134OperatorTypeType = Literal["between", "eq", "ge", "gt", "in", "le", "lt"]135ParameterApplyTypeType = Literal["dynamic", "static"]136PartnerIntegrationStatusType = Literal["Active", "ConnectionFailure", "Inactive", "RuntimeFailure"]137ReservedNodeExchangeActionTypeType = Literal["resize-cluster", "restore-cluster"]138ReservedNodeExchangeStatusTypeType = Literal[139 "FAILED", "IN_PROGRESS", "PENDING", "REQUESTED", "RETRYING", "SUCCEEDED"140]141ReservedNodeOfferingTypeType = Literal["Regular", "Upgradable"]142ScheduleStateType = Literal["ACTIVE", "FAILED", "MODIFYING"]143ScheduledActionFilterNameType = Literal["cluster-identifier", "iam-role"]144ScheduledActionStateType = Literal["ACTIVE", "DISABLED"]145ScheduledActionTypeValuesType = Literal["PauseCluster", "ResizeCluster", "ResumeCluster"]146SnapshotAttributeToSortByType = Literal["CREATE_TIME", "SOURCE_TYPE", "TOTAL_SIZE"]147SnapshotAvailableWaiterName = Literal["snapshot_available"]148SortByOrderType = Literal["ASC", "DESC"]149SourceTypeType = Literal[150 "cluster",151 "cluster-parameter-group",152 "cluster-security-group",153 "cluster-snapshot",154 "scheduled-action",155]156TableRestoreStatusTypeType = Literal["CANCELED", "FAILED", "IN_PROGRESS", "PENDING", "SUCCEEDED"]157UsageLimitBreachActionType = Literal["disable", "emit-metric", "log"]158UsageLimitFeatureTypeType = Literal["concurrency-scaling", "cross-region-datasharing", "spectrum"]159UsageLimitLimitTypeType = Literal["data-scanned", "time"]...

Full Screen

Full Screen

redshift-dt.py

Source:redshift-dt.py Github

copy

Full Screen

...3import os 4import numpy as np5client = boto3.client('redshift')6# check on revisions to the db7revisions = client.describe_cluster_db_revisions(ClusterIdentifier="cluster_name")8print(revisions)9# check the parameters of the db 10params = client.describe_cluster_parameters(ParameterGroupName="parameter_group_name")11print(params)12# describe the cluster 13clust = client.describe_clusters(ClusterIdentifier = "cluster_name") # no args actually required for this so if I don't put a clustername I will get for all clusters 14print(clust)15# modify my cluster - ie change type, node, number of nodes, snapshot retention period, maintenance window etc. 16client.modify_cluster(ClusterIdentifier="cluster_name", NodeType="ds2.xlarge") # ...17 18# rotate encryption key ...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful