enable_snapshot_copy
async
¶
enable_snapshot_copy(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 | |