

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AWS ごみ箱のアクション、リソース、および条件キー
<a name="list_awsrecyclebin"></a>

AWS ごみ箱 (サービスプレフィックス: `rbin`) では、IAM アクセス許可ポリシーで使用できるように、以下のサービス固有のリソースやアクション、条件コンテキストキーが用意されています。

リファレンス:
+ [このサービスを設定](https://docs.aws.amazon.com/recyclebin/latest/APIReference/Welcome.html)する方法について説明します。
+ [このサービスで使用可能な API オペレーションのリスト](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_Operations.html)を表示します。
+ [IAM アクセス許可ポリシーを使用](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-perms.html#rule-perms)して、このサービスとそのリソースを保護する方法を学びます。

**Topics**
+ [AWS ごみ箱で定義されるアクション](#awsrecyclebin-actions-as-permissions)
+ [AWS ごみ箱で定義されるリソースタイプ](#awsrecyclebin-resources-for-iam-policies)
+ [AWS ごみ箱の条件キー](#awsrecyclebin-policy-keys)

## AWS ごみ箱で定義されるアクション
<a name="awsrecyclebin-actions-as-permissions"></a>

IAM ポリシーステートメントの `Action` エレメントでは、以下のアクションを指定できます。ポリシーを使用して、 AWSでオペレーションを実行するアクセス許可を付与します。ポリシーでアクションを使用する場合は、通常、同じ名前の API オペレーションまたは CLI コマンドへのアクセスを許可または拒否します。ただし、場合によっては、1 つのアクションによって複数のオペレーションへのアクセスが制御されます。あるいは、いくつかのオペレーションはいくつかの異なるアクションを必要とします。

アクションテーブルの [**アクセスレベル**] 列では、アクションの指定方法 (リスト、読み取り、アクセス許可管理、タグ付け) について説明します。このように分類することで、ポリシーで使用する際にアクションで付与するアクセスレベルを理解しやすくなります。アクセスレベルの詳細については、「[ポリシー概要内のアクセスレベル](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_understand-policy-summary-access-level-summaries.html)」を参照してください。

[アクション] テーブルの **[リソースタイプ]** 列は、各アクションがリソースレベルの許可をサポートしているかどうかを示します。この列に値がない場合は、ポリシーステートメントの `Resource` 要素で、ポリシーが適用されるすべてのリソース (「\*」) を指定する必要があります。列にリソースタイプが含まれる場合、そのアクションを含むステートメントでそのタイプの ARN を指定できます。アクションで 1 つ以上のリソースが必須となっている場合、呼び出し元には、それらのリソースを伴うアクションを使用するための許可が付与されている必要があります。必須リソースは、アスタリスク (\*) でテーブルに示されています。IAM ポリシーの `Resource` 要素でリソースアクセスを制限する場合は、必要なリソースタイプごとに ARN またはパターンを含める必要があります。一部のアクションでは、複数のリソースタイプがサポートされています。リソースタイプがオプション (必須として示されていない) の場合、オプションのリソースタイプのいずれかを使用することを選択できます。

[アクション] テーブルの **[条件キー]** 列には、ポリシーステートメントの `Condition` 要素で指定できるキーが含まれます。サービスのリソースに関連付けられている条件キーの詳細については、[リソースタイプ] テーブルの **[条件キー]** 列を参照してください。

Actions テーブルの **[依存アクション]** 列には、アクションを正常に呼び出すために必要な追加のアクセス許可が表示されます。これらのアクセス許可は、アクション自体のアクセス許可に加えて必要になる場合があります。アクションが依存アクションを指定すると、それらの依存関係は、テーブルにリストされている最初のリソースだけでなく、そのアクションに定義された追加のリソースに適用される場合があります。

**注記**  
リソース条件キーは、[リソースタイプ](#awsrecyclebin-resources-for-iam-policies)テーブルに一覧表示されています。アクションに適用されるリソースタイプへのリンクは、[アクション] テーブルの **[リソースタイプ (\* 必須)]** 列にあります。[リソースタイプ] テーブルのリソースタイプには、[アクション] テーブルのアクションに適用されるリソース条件キーである、**[条件キー]** 列が含まれています。

以下の表の列の詳細については、「[アクションテーブル](reference_policies_actions-resources-contextkeys.html#actions_table)」を参照してください。


****  


- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_CreateRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_CreateRule.html) **
  - **説明:** ごみ箱の保持ルールを作成する許可を付与
  - **アクセスレベル:** 書き込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_RequestTag___TagKey_](#awsrecyclebin-aws_RequestTag___TagKey_)   [#awsrecyclebin-aws_TagKeys](#awsrecyclebin-aws_TagKeys)   [#awsrecyclebin-rbin_Request_ResourceType](#awsrecyclebin-rbin_Request_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_DeleteRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_DeleteRule.html) **
  - **説明:** ごみ箱保持ルールを削除するアクセス許可を付与
  - **アクセスレベル:** 書き込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_GetRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_GetRule.html) **
  - **説明:** ごみ箱保持ルールに関する詳細情報を取得するアクセス許可を付与
  - **アクセスレベル:** 読み込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_ListRules.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_ListRules.html) **
  - **説明:** リージョン内のごみ箱保持ルールを一覧表示するアクセス許可を付与
  - **アクセスレベル:** 読み込み
  - **リソースタイプ (\* 必須):** 
  - **条件キー:**   [#awsrecyclebin-rbin_Request_ResourceType](#awsrecyclebin-rbin_Request_ResourceType)  
  - **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_ListTagsForResource.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_ListTagsForResource.html) **
  - **説明:** リソースに関連付けられているタグを一覧表示する許可を付与
  - **アクセスレベル:** 読み取り
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_LockRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_LockRule.html) **
  - **説明:** 既存のごみ箱保持ルールをロックする許可を付与
  - **アクセスレベル:** 書き込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_TagResource.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_TagResource.html) **
  - **説明:** リソースのタグを追加または更新する許可を付与
  - **アクセスレベル:** Tagging
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_RequestTag___TagKey_](#awsrecyclebin-aws_RequestTag___TagKey_)   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-aws_TagKeys](#awsrecyclebin-aws_TagKeys)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UnlockRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UnlockRule.html) **
  - **説明:** 既存のごみ箱保持ルールのロックを解除する許可を付与
  - **アクセスレベル:** 書き込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UntagResource.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UntagResource.html) **
  - **説明:** リソースに関連付けられているタグを削除する許可を付与
  - **アクセスレベル:** Tagging
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-aws_TagKeys](#awsrecyclebin-aws_TagKeys)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 

- **  [https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UpdateRule.html](https://docs.aws.amazon.com/recyclebin/latest/APIReference/API_UpdateRule.html) **
  - **説明:** 既存のごみ箱保持ルールを更新するアクセス許可を付与
  - **アクセスレベル:** 書き込み
  - **リソースタイプ (\* 必須):**   [#awsrecyclebin-rule](#awsrecyclebin-rule)   / **条件キー:**  / **依存アクション:** 
  - **リソースタイプ (\* 必須):**  / **条件キー:**   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   [#awsrecyclebin-rbin_Attribute_ResourceType](#awsrecyclebin-rbin_Attribute_ResourceType)   / **依存アクション:** 



## AWS ごみ箱で定義されるリソースタイプ
<a name="awsrecyclebin-resources-for-iam-policies"></a>

以下のリソースタイプは、このサービスによって定義され、IAM アクセス許可ポリシーステートメントの `Resource` エレメントで使用できます。[アクションテーブル](#awsrecyclebin-actions-as-permissions)の各アクションは、そのアクションで指定できるリソースタイプを示しています。リソースタイプは、ポリシーに含めることができる条件キーを定義することもできます。これらのキーは、[リソースタイプ] テーブルの最後の列に表示されます。以下の表の列の詳細については、「[リソースタイプテーブル](reference_policies_actions-resources-contextkeys.html#resources_table)」を参照してください。


****  

| リソースタイプ | ARN | 条件キー | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html#recycle-bin-concepts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html#recycle-bin-concepts)  |  arn:\$\{Partition\}:rbin:\$\{Region\}:\$\{Account\}:rule/\$\{ResourceName\}  |   [#awsrecyclebin-aws_ResourceTag___TagKey_](#awsrecyclebin-aws_ResourceTag___TagKey_)   | 

## AWS ごみ箱の条件キー
<a name="awsrecyclebin-policy-keys"></a>

AWS ごみ箱は、IAM ポリシーの `Condition`要素で使用できる以下の条件キーを定義します。これらのキーを使用して、ポリシーステートメントが適用される条件をさらに絞り込むことができます。以下の表の列の詳細については、「[条件キーテーブル](reference_policies_actions-resources-contextkeys.html#context_keys_table)」を参照してください。

すべてのサービスで使用できるグローバル条件キーを確認するには、「[AWS グローバル条件コンテキストキー](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html)」を参照してください。


****  

| 条件キー | 説明 | タイプ | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag)  | リクエスト内のタグのキーと値でアクセスをフィルター | String | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag)  | リクエスト内のタグキーおよび値のペアのプレゼンスによってアクションをフィルタリングします | String | 
|   [https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys)  | リクエスト内のタグキーでアクセスをフィルタリングします | ArrayOfString | 
|   [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-perms.html#rbin-condition-keys](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-perms.html#rbin-condition-keys)  | 既存のルールのリソースタイプでアクセスをフィルタリング | String | 
|   [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-perms.html#rbin-condition-keys](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-perms.html#rbin-condition-keys)  | リクエスト内のリソースでアクセスをフィルタリング | String | 