

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

# 取消 RFCs
<a name="ex-cancel-rfcs"></a>

您可以使用 主控台或 AMS API/CLI 來取消 RFC。

若要使用主控台取消 RFC，請在 RFC 清單中尋找 RFC，開啟它，然後按一下**取消**。

必要資料：
+ `Reason`：取消 RFC 的原因。
+ `RfcId`：您要取消的 RFC。

1. 一般而言，您會在提交 RFC 後立即取消 RFC （因此 RFC ID 應該很方便）；否則，除非您已排定，且早於指定的開始時間，否則您將無法取消 RFC。如果您需要尋找 RFC ID，您可以使用此命令 （您可以將 `Value` 取代`PendingApproval`為手動核准的 RFC)：

   ```
   aws amscm list-rfc-summaries --filter Attribute=RfcStatusId,Value=Scheduled
   ```

1. 取消 RFC 的範例命令：

   ```
   aws amscm cancel-rfc --reason "Bad Stack ID" --rfc-id "{{RFC_ID}}" --profile saml --region us-east-1
   ```