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 |
Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.
Synopsis
- data RestoreManagedPrefixListVersion = RestoreManagedPrefixListVersion' {}
- newRestoreManagedPrefixListVersion :: Text -> Integer -> Integer -> RestoreManagedPrefixListVersion
- restoreManagedPrefixListVersion_dryRun :: Lens' RestoreManagedPrefixListVersion (Maybe Bool)
- restoreManagedPrefixListVersion_prefixListId :: Lens' RestoreManagedPrefixListVersion Text
- restoreManagedPrefixListVersion_previousVersion :: Lens' RestoreManagedPrefixListVersion Integer
- restoreManagedPrefixListVersion_currentVersion :: Lens' RestoreManagedPrefixListVersion Integer
- data RestoreManagedPrefixListVersionResponse = RestoreManagedPrefixListVersionResponse' {}
- newRestoreManagedPrefixListVersionResponse :: Int -> RestoreManagedPrefixListVersionResponse
- restoreManagedPrefixListVersionResponse_prefixList :: Lens' RestoreManagedPrefixListVersionResponse (Maybe ManagedPrefixList)
- restoreManagedPrefixListVersionResponse_httpStatus :: Lens' RestoreManagedPrefixListVersionResponse Int
Creating a Request
data RestoreManagedPrefixListVersion Source #
See: newRestoreManagedPrefixListVersion
smart constructor.
RestoreManagedPrefixListVersion' | |
|
Instances
newRestoreManagedPrefixListVersion Source #
Create a value of RestoreManagedPrefixListVersion
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:RestoreManagedPrefixListVersion'
, restoreManagedPrefixListVersion_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
.
RestoreManagedPrefixListVersion
, restoreManagedPrefixListVersion_prefixListId
- The ID of the prefix list.
$sel:previousVersion:RestoreManagedPrefixListVersion'
, restoreManagedPrefixListVersion_previousVersion
- The version to restore.
$sel:currentVersion:RestoreManagedPrefixListVersion'
, restoreManagedPrefixListVersion_currentVersion
- The current version number for the prefix list.
Request Lenses
restoreManagedPrefixListVersion_dryRun :: Lens' RestoreManagedPrefixListVersion (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
.
restoreManagedPrefixListVersion_prefixListId :: Lens' RestoreManagedPrefixListVersion Text Source #
The ID of the prefix list.
restoreManagedPrefixListVersion_previousVersion :: Lens' RestoreManagedPrefixListVersion Integer Source #
The version to restore.
restoreManagedPrefixListVersion_currentVersion :: Lens' RestoreManagedPrefixListVersion Integer Source #
The current version number for the prefix list.
Destructuring the Response
data RestoreManagedPrefixListVersionResponse Source #
See: newRestoreManagedPrefixListVersionResponse
smart constructor.
RestoreManagedPrefixListVersionResponse' | |
|
Instances
newRestoreManagedPrefixListVersionResponse Source #
Create a value of RestoreManagedPrefixListVersionResponse
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:
RestoreManagedPrefixListVersionResponse
, restoreManagedPrefixListVersionResponse_prefixList
- Information about the prefix list.
$sel:httpStatus:RestoreManagedPrefixListVersionResponse'
, restoreManagedPrefixListVersionResponse_httpStatus
- The response's http status code.
Response Lenses
restoreManagedPrefixListVersionResponse_prefixList :: Lens' RestoreManagedPrefixListVersionResponse (Maybe ManagedPrefixList) Source #
Information about the prefix list.
restoreManagedPrefixListVersionResponse_httpStatus :: Lens' RestoreManagedPrefixListVersionResponse Int Source #
The response's http status code.