enable_snapshot_copy
¶
enable_snapshot_copy(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
cluster_identifier: Optional[String] = None,
destination_region: Optional[String] = None,
retention_period: Optional[IntegerOptional] = None,
snapshot_copy_grant_name: Optional[String] = None,
manual_snapshot_retention_period: Optional[IntegerOptional] = None,
) -> EnableSnapshotCopyResult
Enables the automatic copy of snapshots from one region to another region for a specified cluster.
Parameters:
-
cluster_identifier(Optional[String], default:None) –The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
-
destination_region(Optional[String], default:None) –The destination Amazon Web Services Region that you want to copy snapshots to.
Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
-
retention_period(Optional[IntegerOptional], default:None) –The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
-
snapshot_copy_grant_name(Optional[String], default:None) –The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.
-
manual_snapshot_retention_period(Optional[IntegerOptional], default:None) –The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
Raises:
-
ClusterNotFoundFault–The
ClusterIdentifierparameter does not refer to an existing cluster. -
CopyToRegionDisabledFault–Cross-region snapshot copy was temporarily disabled. Try your request again.
-
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.
-
IncompatibleOrderableOptions–The specified options are incompatible.
-
InvalidClusterStateFault–The specified cluster is not in the
availablestate. -
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.
-
LimitExceededFault–The encryption key has exceeded its grant limit in Amazon Web Services KMS.
-
SnapshotCopyAlreadyEnabledFault–The cluster already has cross-region snapshot copy enabled.
-
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.
-
UnauthorizedOperation–Your account is not authorized to perform the requested operation.
-
UnknownSnapshotCopyRegionFault–The specified region is incorrect or does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 | |