Lists the Recycle Bin retention rules in the Region.
post/list-rules
Request body
MaxResultsinteger
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.
NextTokenstring
The token for the next page of results.
ResourceType'EBS_SNAPSHOT' | 'EC2_IMAGE' | 'EBS_VOLUME' required
<p>The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only EBS volumes, EBS snapshots, and EBS-backed AMIs are supported.</p> <ul> <li> <p>To list retention rules that retain EBS volumes, specify <code>EBS_VOLUME</code>.</p> </li> <li> <p>To list retention rules that retain EBS snapshots, specify <code>EBS_SNAPSHOT</code>.</p> </li> <li> <p>To list retention rules that retain EBS-backed AMIs, specify <code>EC2_IMAGE</code>.</p> </li> </ul>
LockState'locked' | 'pending_unlock' | 'unlocked'
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
Response
Success
NextTokenstring
The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.