Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Modifies the target of an existing Maintenance Window. You can't change the target type, but you can change the following:
The target from being an ID target to a Tag target, or a Tag target to an ID target.
IDs for an ID target.
Tags for a Tag target.
Owner.
Name.
Description.
If a parameter is null, then the corresponding field is not modified.
- updateMaintenanceWindowTarget :: Text -> Text -> UpdateMaintenanceWindowTarget
- data UpdateMaintenanceWindowTarget
- uReplace :: Lens' UpdateMaintenanceWindowTarget (Maybe Bool)
- uOwnerInformation :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- uName :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- uTargets :: Lens' UpdateMaintenanceWindowTarget [Target]
- uDescription :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- uWindowId :: Lens' UpdateMaintenanceWindowTarget Text
- uWindowTargetId :: Lens' UpdateMaintenanceWindowTarget Text
- updateMaintenanceWindowTargetResponse :: Int -> UpdateMaintenanceWindowTargetResponse
- data UpdateMaintenanceWindowTargetResponse
- ursOwnerInformation :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- ursWindowTargetId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- ursName :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- ursTargets :: Lens' UpdateMaintenanceWindowTargetResponse [Target]
- ursDescription :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- ursWindowId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- ursResponseStatus :: Lens' UpdateMaintenanceWindowTargetResponse Int
Creating a Request
updateMaintenanceWindowTarget Source #
Creates a value of UpdateMaintenanceWindowTarget
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uReplace
- If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow action are also required for this API request. Optional fields that are not specified are set to null.uOwnerInformation
- User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.uName
- A name for the update.uTargets
- The targets to add or replace.uDescription
- An optional description for the update.uWindowId
- The Maintenance Window ID with which to modify the target.uWindowTargetId
- The target ID to modify.
data UpdateMaintenanceWindowTarget Source #
See: updateMaintenanceWindowTarget
smart constructor.
Request Lenses
uReplace :: Lens' UpdateMaintenanceWindowTarget (Maybe Bool) Source #
If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow action are also required for this API request. Optional fields that are not specified are set to null.
uOwnerInformation :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.
uDescription :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #
An optional description for the update.
uWindowId :: Lens' UpdateMaintenanceWindowTarget Text Source #
The Maintenance Window ID with which to modify the target.
uWindowTargetId :: Lens' UpdateMaintenanceWindowTarget Text Source #
The target ID to modify.
Destructuring the Response
updateMaintenanceWindowTargetResponse Source #
Creates a value of UpdateMaintenanceWindowTargetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ursOwnerInformation
- The updated owner.ursWindowTargetId
- The target ID specified in the update request.ursName
- The updated name.ursTargets
- The updated targets.ursDescription
- The updated description.ursWindowId
- The Maintenance Window ID specified in the update request.ursResponseStatus
- -- | The response status code.
data UpdateMaintenanceWindowTargetResponse Source #
See: updateMaintenanceWindowTargetResponse
smart constructor.
Response Lenses
ursOwnerInformation :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The updated owner.
ursWindowTargetId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The target ID specified in the update request.
ursTargets :: Lens' UpdateMaintenanceWindowTargetResponse [Target] Source #
The updated targets.
ursDescription :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The updated description.
ursWindowId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The Maintenance Window ID specified in the update request.
ursResponseStatus :: Lens' UpdateMaintenanceWindowTargetResponse Int Source #
- - | The response status code.