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 |
Registers a target with a Maintenance Window.
- registerTargetWithMaintenanceWindow :: Text -> MaintenanceWindowResourceType -> RegisterTargetWithMaintenanceWindow
- data RegisterTargetWithMaintenanceWindow
- rClientToken :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text)
- rOwnerInformation :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text)
- rName :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text)
- rDescription :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text)
- rWindowId :: Lens' RegisterTargetWithMaintenanceWindow Text
- rResourceType :: Lens' RegisterTargetWithMaintenanceWindow MaintenanceWindowResourceType
- rTargets :: Lens' RegisterTargetWithMaintenanceWindow [Target]
- registerTargetWithMaintenanceWindowResponse :: Int -> RegisterTargetWithMaintenanceWindowResponse
- data RegisterTargetWithMaintenanceWindowResponse
- rrsWindowTargetId :: Lens' RegisterTargetWithMaintenanceWindowResponse (Maybe Text)
- rrsResponseStatus :: Lens' RegisterTargetWithMaintenanceWindowResponse Int
Creating a Request
registerTargetWithMaintenanceWindow Source #
Creates a value of RegisterTargetWithMaintenanceWindow
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rClientToken
- User-provided idempotency token.rOwnerInformation
- User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.rName
- An optional name for the target.rDescription
- An optional description for the target.rWindowId
- The ID of the Maintenance Window the target should be registered with.rResourceType
- The type of target being registered with the Maintenance Window.rTargets
- The targets (either instances or tags). Specify instances using the following format:Key=InstanceIds,Values=instance-id-1,instance-id-2
Specify tags using either of the following formats:Key=tag:tag-key,Values=tag-value-1,tag-value-2
Key=tag-key,Values=tag-key-1,tag-key-2
data RegisterTargetWithMaintenanceWindow Source #
See: registerTargetWithMaintenanceWindow
smart constructor.
Request Lenses
rClientToken :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text) Source #
User-provided idempotency token.
rOwnerInformation :: Lens' RegisterTargetWithMaintenanceWindow (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.
rName :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text) Source #
An optional name for the target.
rDescription :: Lens' RegisterTargetWithMaintenanceWindow (Maybe Text) Source #
An optional description for the target.
rWindowId :: Lens' RegisterTargetWithMaintenanceWindow Text Source #
The ID of the Maintenance Window the target should be registered with.
rResourceType :: Lens' RegisterTargetWithMaintenanceWindow MaintenanceWindowResourceType Source #
The type of target being registered with the Maintenance Window.
rTargets :: Lens' RegisterTargetWithMaintenanceWindow [Target] Source #
The targets (either instances or tags). Specify instances using the following format: Key=InstanceIds,Values=instance-id-1,instance-id-2
Specify tags using either of the following formats: Key=tag:tag-key,Values=tag-value-1,tag-value-2
Key=tag-key,Values=tag-key-1,tag-key-2
Destructuring the Response
registerTargetWithMaintenanceWindowResponse Source #
Creates a value of RegisterTargetWithMaintenanceWindowResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrsWindowTargetId
- The ID of the target definition in this Maintenance Window.rrsResponseStatus
- -- | The response status code.
data RegisterTargetWithMaintenanceWindowResponse Source #
See: registerTargetWithMaintenanceWindowResponse
smart constructor.
Response Lenses
rrsWindowTargetId :: Lens' RegisterTargetWithMaintenanceWindowResponse (Maybe Text) Source #
The ID of the target definition in this Maintenance Window.
rrsResponseStatus :: Lens' RegisterTargetWithMaintenanceWindowResponse Int Source #
- - | The response status code.