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 |
Modifies the specified managed prefix list.
Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.
If you specify a current version number that does not match the true current version number, the request fails.
Synopsis
- data ModifyManagedPrefixList = ModifyManagedPrefixList' {}
- newModifyManagedPrefixList :: Text -> ModifyManagedPrefixList
- modifyManagedPrefixList_addEntries :: Lens' ModifyManagedPrefixList (Maybe [AddPrefixListEntry])
- modifyManagedPrefixList_currentVersion :: Lens' ModifyManagedPrefixList (Maybe Integer)
- modifyManagedPrefixList_dryRun :: Lens' ModifyManagedPrefixList (Maybe Bool)
- modifyManagedPrefixList_maxEntries :: Lens' ModifyManagedPrefixList (Maybe Int)
- modifyManagedPrefixList_prefixListName :: Lens' ModifyManagedPrefixList (Maybe Text)
- modifyManagedPrefixList_removeEntries :: Lens' ModifyManagedPrefixList (Maybe [RemovePrefixListEntry])
- modifyManagedPrefixList_prefixListId :: Lens' ModifyManagedPrefixList Text
- data ModifyManagedPrefixListResponse = ModifyManagedPrefixListResponse' {}
- newModifyManagedPrefixListResponse :: Int -> ModifyManagedPrefixListResponse
- modifyManagedPrefixListResponse_prefixList :: Lens' ModifyManagedPrefixListResponse (Maybe ManagedPrefixList)
- modifyManagedPrefixListResponse_httpStatus :: Lens' ModifyManagedPrefixListResponse Int
Creating a Request
data ModifyManagedPrefixList Source #
See: newModifyManagedPrefixList
smart constructor.
ModifyManagedPrefixList' | |
|
Instances
newModifyManagedPrefixList Source #
Create a value of ModifyManagedPrefixList
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:addEntries:ModifyManagedPrefixList'
, modifyManagedPrefixList_addEntries
- One or more entries to add to the prefix list.
$sel:currentVersion:ModifyManagedPrefixList'
, modifyManagedPrefixList_currentVersion
- The current version of the prefix list.
$sel:dryRun:ModifyManagedPrefixList'
, modifyManagedPrefixList_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
.
ModifyManagedPrefixList
, modifyManagedPrefixList_maxEntries
- The maximum number of entries for the prefix list. You cannot modify the
entries of a prefix list and modify the size of a prefix list at the
same time.
If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
ModifyManagedPrefixList
, modifyManagedPrefixList_prefixListName
- A name for the prefix list.
$sel:removeEntries:ModifyManagedPrefixList'
, modifyManagedPrefixList_removeEntries
- One or more entries to remove from the prefix list.
ModifyManagedPrefixList
, modifyManagedPrefixList_prefixListId
- The ID of the prefix list.
Request Lenses
modifyManagedPrefixList_addEntries :: Lens' ModifyManagedPrefixList (Maybe [AddPrefixListEntry]) Source #
One or more entries to add to the prefix list.
modifyManagedPrefixList_currentVersion :: Lens' ModifyManagedPrefixList (Maybe Integer) Source #
The current version of the prefix list.
modifyManagedPrefixList_dryRun :: Lens' ModifyManagedPrefixList (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
.
modifyManagedPrefixList_maxEntries :: Lens' ModifyManagedPrefixList (Maybe Int) Source #
The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.
If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
modifyManagedPrefixList_prefixListName :: Lens' ModifyManagedPrefixList (Maybe Text) Source #
A name for the prefix list.
modifyManagedPrefixList_removeEntries :: Lens' ModifyManagedPrefixList (Maybe [RemovePrefixListEntry]) Source #
One or more entries to remove from the prefix list.
modifyManagedPrefixList_prefixListId :: Lens' ModifyManagedPrefixList Text Source #
The ID of the prefix list.
Destructuring the Response
data ModifyManagedPrefixListResponse Source #
See: newModifyManagedPrefixListResponse
smart constructor.
ModifyManagedPrefixListResponse' | |
|
Instances
Generic ModifyManagedPrefixListResponse Source # | |
Read ModifyManagedPrefixListResponse Source # | |
Show ModifyManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.ModifyManagedPrefixList | |
NFData ModifyManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.ModifyManagedPrefixList rnf :: ModifyManagedPrefixListResponse -> () # | |
Eq ModifyManagedPrefixListResponse Source # | |
type Rep ModifyManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.ModifyManagedPrefixList type Rep ModifyManagedPrefixListResponse = D1 ('MetaData "ModifyManagedPrefixListResponse" "Amazonka.EC2.ModifyManagedPrefixList" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyManagedPrefixListResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "prefixList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ManagedPrefixList)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyManagedPrefixListResponse Source #
Create a value of ModifyManagedPrefixListResponse
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:
ModifyManagedPrefixListResponse
, modifyManagedPrefixListResponse_prefixList
- Information about the prefix list.
$sel:httpStatus:ModifyManagedPrefixListResponse'
, modifyManagedPrefixListResponse_httpStatus
- The response's http status code.
Response Lenses
modifyManagedPrefixListResponse_prefixList :: Lens' ModifyManagedPrefixListResponse (Maybe ManagedPrefixList) Source #
Information about the prefix list.
modifyManagedPrefixListResponse_httpStatus :: Lens' ModifyManagedPrefixListResponse Int Source #
The response's http status code.