Copyright | (c) 2013-2021 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 |
Modifies the target of an existing maintenance window. You can change the following:
- Name
- Description
- Owner
- IDs for an ID target
- Tags for a Tag target
- From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource group. For more information, see Target.
If a parameter is null, then the corresponding field isn't modified.
Synopsis
- data UpdateMaintenanceWindowTarget = UpdateMaintenanceWindowTarget' {}
- newUpdateMaintenanceWindowTarget :: Text -> Text -> UpdateMaintenanceWindowTarget
- updateMaintenanceWindowTarget_replace :: Lens' UpdateMaintenanceWindowTarget (Maybe Bool)
- updateMaintenanceWindowTarget_ownerInformation :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- updateMaintenanceWindowTarget_name :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- updateMaintenanceWindowTarget_targets :: Lens' UpdateMaintenanceWindowTarget (Maybe [Target])
- updateMaintenanceWindowTarget_description :: Lens' UpdateMaintenanceWindowTarget (Maybe Text)
- updateMaintenanceWindowTarget_windowId :: Lens' UpdateMaintenanceWindowTarget Text
- updateMaintenanceWindowTarget_windowTargetId :: Lens' UpdateMaintenanceWindowTarget Text
- data UpdateMaintenanceWindowTargetResponse = UpdateMaintenanceWindowTargetResponse' {}
- newUpdateMaintenanceWindowTargetResponse :: Int -> UpdateMaintenanceWindowTargetResponse
- updateMaintenanceWindowTargetResponse_ownerInformation :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- updateMaintenanceWindowTargetResponse_windowTargetId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- updateMaintenanceWindowTargetResponse_name :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- updateMaintenanceWindowTargetResponse_targets :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe [Target])
- updateMaintenanceWindowTargetResponse_description :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- updateMaintenanceWindowTargetResponse_windowId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text)
- updateMaintenanceWindowTargetResponse_httpStatus :: Lens' UpdateMaintenanceWindowTargetResponse Int
Creating a Request
data UpdateMaintenanceWindowTarget Source #
See: newUpdateMaintenanceWindowTarget
smart constructor.
UpdateMaintenanceWindowTarget' | |
|
Instances
newUpdateMaintenanceWindowTarget Source #
Create a value of UpdateMaintenanceWindowTarget
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:replace:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_replace
- If True
, then all fields that are required by the
RegisterTargetWithMaintenanceWindow operation are also required for this
API request. Optional fields that aren't specified are set to null.
$sel:ownerInformation:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_ownerInformation
- User-provided value that will be included in any Amazon CloudWatch
Events events raised while running tasks for these targets in this
maintenance window.
$sel:name:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_name
- A name for the update.
$sel:targets:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_targets
- The targets to add or replace.
$sel:description:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_description
- An optional description for the update.
$sel:windowId:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_windowId
- The maintenance window ID with which to modify the target.
$sel:windowTargetId:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTarget_windowTargetId
- The target ID to modify.
Request Lenses
updateMaintenanceWindowTarget_replace :: Lens' UpdateMaintenanceWindowTarget (Maybe Bool) Source #
If True
, then all fields that are required by the
RegisterTargetWithMaintenanceWindow operation are also required for this
API request. Optional fields that aren't specified are set to null.
updateMaintenanceWindowTarget_ownerInformation :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #
User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
updateMaintenanceWindowTarget_name :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #
A name for the update.
updateMaintenanceWindowTarget_targets :: Lens' UpdateMaintenanceWindowTarget (Maybe [Target]) Source #
The targets to add or replace.
updateMaintenanceWindowTarget_description :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #
An optional description for the update.
updateMaintenanceWindowTarget_windowId :: Lens' UpdateMaintenanceWindowTarget Text Source #
The maintenance window ID with which to modify the target.
updateMaintenanceWindowTarget_windowTargetId :: Lens' UpdateMaintenanceWindowTarget Text Source #
The target ID to modify.
Destructuring the Response
data UpdateMaintenanceWindowTargetResponse Source #
See: newUpdateMaintenanceWindowTargetResponse
smart constructor.
UpdateMaintenanceWindowTargetResponse' | |
|
Instances
newUpdateMaintenanceWindowTargetResponse Source #
Create a value of UpdateMaintenanceWindowTargetResponse
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:ownerInformation:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_ownerInformation
- The updated owner.
$sel:windowTargetId:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_windowTargetId
- The target ID specified in the update request.
$sel:name:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_name
- The updated name.
$sel:targets:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_targets
- The updated targets.
$sel:description:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_description
- The updated description.
$sel:windowId:UpdateMaintenanceWindowTarget'
, updateMaintenanceWindowTargetResponse_windowId
- The maintenance window ID specified in the update request.
$sel:httpStatus:UpdateMaintenanceWindowTargetResponse'
, updateMaintenanceWindowTargetResponse_httpStatus
- The response's http status code.
Response Lenses
updateMaintenanceWindowTargetResponse_ownerInformation :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The updated owner.
updateMaintenanceWindowTargetResponse_windowTargetId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The target ID specified in the update request.
updateMaintenanceWindowTargetResponse_name :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The updated name.
updateMaintenanceWindowTargetResponse_targets :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe [Target]) Source #
The updated targets.
updateMaintenanceWindowTargetResponse_description :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The updated description.
updateMaintenanceWindowTargetResponse_windowId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #
The maintenance window ID specified in the update request.
updateMaintenanceWindowTargetResponse_httpStatus :: Lens' UpdateMaintenanceWindowTargetResponse Int Source #
The response's http status code.