

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 停止快照共用
<a name="share-snapshot-stop"></a>

若要停止共用資料庫叢集快照，請從目標移除許可 AWS 帳戶。

## 主控台
<a name="share-snapshot-stop.CON"></a>

**停止與 共用手動資料庫叢集快照 AWS 帳戶**

1. 登入 AWS 管理主控台 ，並在 [https://console.aws.amazon.com/rds/](https://console.aws.amazon.com/rds/)：// 開啟 Amazon RDS 主控台。

1. 在導覽窗格中，選擇 **Snapshots (快照)**。

1. 選取您要停止共享的手動快照。

1. 選擇 **Actions** (動作)，然後選擇 **Share snapshot** (共用快照)。

1. 若要移除 的許可 AWS 帳戶，請從授權**** AWS 帳戶清單中選擇刪除該帳戶的帳戶識別符。

1. 選擇**儲存**，以儲存變更。

## CLI
<a name="share-snapshot-stop.CLI"></a>

若要從清單中移除 AWS 帳戶 識別符，請使用 `--values-to-remove` 參數。

**Example 停止快照共用**  
下列範例可防止 AWS 帳戶 ID 444455556666 還原快照。  
針對 Linux、macOS 或 Unix：  

```
aws rds modify-db-cluster-snapshot-attribute \
--db-cluster-snapshot-identifier manual-cluster-snapshot1 \
--attribute-name restore \
--values-to-remove 444455556666
```
在 Windows 中：  

```
aws rds modify-db-cluster-snapshot-attribute ^
--db-cluster-snapshot-identifier manual-cluster-snapshot1 ^
--attribute-name restore ^
--values-to-remove 444455556666
```

## RDS API
<a name="share-snapshot-stop.API"></a>

若要移除 的共用許可 AWS 帳戶，請使用 [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBClusterSnapshotAttribute.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBClusterSnapshotAttribute.html)操作，並將 `AttributeName` 設定為 `restore`和 `ValuesToRemove` 參數。若要將手動快照標示為私有，請從 `all` 屬性的值清單移除 `restore` 值。