Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.EC2.DeleteManagedPrefixList
Description
Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.
Synopsis
- data DeleteManagedPrefixList = DeleteManagedPrefixList' {
- dryRun :: Maybe Bool
- prefixListId :: Text
- newDeleteManagedPrefixList :: Text -> DeleteManagedPrefixList
- deleteManagedPrefixList_dryRun :: Lens' DeleteManagedPrefixList (Maybe Bool)
- deleteManagedPrefixList_prefixListId :: Lens' DeleteManagedPrefixList Text
- data DeleteManagedPrefixListResponse = DeleteManagedPrefixListResponse' {}
- newDeleteManagedPrefixListResponse :: Int -> DeleteManagedPrefixListResponse
- deleteManagedPrefixListResponse_prefixList :: Lens' DeleteManagedPrefixListResponse (Maybe ManagedPrefixList)
- deleteManagedPrefixListResponse_httpStatus :: Lens' DeleteManagedPrefixListResponse Int
Creating a Request
data DeleteManagedPrefixList Source #
See: newDeleteManagedPrefixList
smart constructor.
Constructors
DeleteManagedPrefixList' | |
Fields
|
Instances
newDeleteManagedPrefixList Source #
Arguments
:: Text | |
-> DeleteManagedPrefixList |
Create a value of DeleteManagedPrefixList
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DeleteManagedPrefixList'
, deleteManagedPrefixList_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
.
DeleteManagedPrefixList
, deleteManagedPrefixList_prefixListId
- The ID of the prefix list.
Request Lenses
deleteManagedPrefixList_dryRun :: Lens' DeleteManagedPrefixList (Maybe Bool) Source #
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
.
deleteManagedPrefixList_prefixListId :: Lens' DeleteManagedPrefixList Text Source #
The ID of the prefix list.
Destructuring the Response
data DeleteManagedPrefixListResponse Source #
See: newDeleteManagedPrefixListResponse
smart constructor.
Constructors
DeleteManagedPrefixListResponse' | |
Fields
|
Instances
newDeleteManagedPrefixListResponse Source #
Create a value of DeleteManagedPrefixListResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteManagedPrefixListResponse
, deleteManagedPrefixListResponse_prefixList
- Information about the prefix list.
$sel:httpStatus:DeleteManagedPrefixListResponse'
, deleteManagedPrefixListResponse_httpStatus
- The response's http status code.
Response Lenses
deleteManagedPrefixListResponse_prefixList :: Lens' DeleteManagedPrefixListResponse (Maybe ManagedPrefixList) Source #
Information about the prefix list.
deleteManagedPrefixListResponse_httpStatus :: Lens' DeleteManagedPrefixListResponse Int Source #
The response's http status code.