DeleteManagedPrefixList - Amazon Elastic Compute Cloud

DeleteManagedPrefixList

Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

PrefixListId

The ID of the prefix list.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

prefixList

Information about the prefix list.

Type: ManagedPrefixList object

requestId

The ID of the request.

Type: String

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This example deletes the specified prefix list.

Sample Request

https://ec2.amazonaws.com/?Action=DeleteManagedPrefixList &PrefixListId=pl-0123123123123aabb &AUTHPARAMS

Sample Response

<DeleteManagedPrefixListResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>06152571-575a-49aa-af95-example</requestId> <prefixList> <addressFamily>IPv6</addressFamily> <maxEntries>25</maxEntries> <ownerId>123456789012</ownerId> <prefixListArn>arn:aws:ec2:us-east-1:123456789012:prefix-list/pl-0123123123123aabb</prefixListArn> <prefixListId>pl-0123123123123aabb</prefixListId> <prefixListName>test-pl</prefixListName> <state>delete-in-progress</state> <version>1</version> </prefixList> </DeleteManagedPrefixListResponse>'

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: