amazonka-ssm-1.6.0: Amazon Simple Systems Manager (SSM) SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SSM.UpdateMaintenanceWindowTarget

Contents

Description

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.

Synopsis

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.

Instances

Eq UpdateMaintenanceWindowTarget Source # 
Data UpdateMaintenanceWindowTarget Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateMaintenanceWindowTarget -> c UpdateMaintenanceWindowTarget #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateMaintenanceWindowTarget #

toConstr :: UpdateMaintenanceWindowTarget -> Constr #

dataTypeOf :: UpdateMaintenanceWindowTarget -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateMaintenanceWindowTarget) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateMaintenanceWindowTarget) #

gmapT :: (forall b. Data b => b -> b) -> UpdateMaintenanceWindowTarget -> UpdateMaintenanceWindowTarget #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMaintenanceWindowTarget -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMaintenanceWindowTarget -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateMaintenanceWindowTarget -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateMaintenanceWindowTarget -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTarget -> m UpdateMaintenanceWindowTarget #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTarget -> m UpdateMaintenanceWindowTarget #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTarget -> m UpdateMaintenanceWindowTarget #

Show UpdateMaintenanceWindowTarget Source # 
Generic UpdateMaintenanceWindowTarget Source # 
Hashable UpdateMaintenanceWindowTarget Source # 
ToJSON UpdateMaintenanceWindowTarget Source # 
NFData UpdateMaintenanceWindowTarget Source # 
AWSRequest UpdateMaintenanceWindowTarget Source # 
ToHeaders UpdateMaintenanceWindowTarget Source # 
ToPath UpdateMaintenanceWindowTarget Source # 
ToQuery UpdateMaintenanceWindowTarget Source # 
type Rep UpdateMaintenanceWindowTarget Source # 
type Rep UpdateMaintenanceWindowTarget = D1 * (MetaData "UpdateMaintenanceWindowTarget" "Network.AWS.SSM.UpdateMaintenanceWindowTarget" "amazonka-ssm-1.6.0-FkXaKF9jjpY64HF15tLQlO" False) (C1 * (MetaCons "UpdateMaintenanceWindowTarget'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uReplace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uOwnerInformation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_uName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Target]))) (S1 * (MetaSel (Just Symbol "_uDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_uWindowTargetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs UpdateMaintenanceWindowTarget Source # 

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.

uTargets :: Lens' UpdateMaintenanceWindowTarget [Target] Source #

The targets to add or replace.

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.

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:

data UpdateMaintenanceWindowTargetResponse Source #

Instances

Eq UpdateMaintenanceWindowTargetResponse Source # 
Data UpdateMaintenanceWindowTargetResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateMaintenanceWindowTargetResponse -> c UpdateMaintenanceWindowTargetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateMaintenanceWindowTargetResponse #

toConstr :: UpdateMaintenanceWindowTargetResponse -> Constr #

dataTypeOf :: UpdateMaintenanceWindowTargetResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateMaintenanceWindowTargetResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateMaintenanceWindowTargetResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateMaintenanceWindowTargetResponse -> UpdateMaintenanceWindowTargetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMaintenanceWindowTargetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMaintenanceWindowTargetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateMaintenanceWindowTargetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateMaintenanceWindowTargetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTargetResponse -> m UpdateMaintenanceWindowTargetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTargetResponse -> m UpdateMaintenanceWindowTargetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMaintenanceWindowTargetResponse -> m UpdateMaintenanceWindowTargetResponse #

Show UpdateMaintenanceWindowTargetResponse Source # 
Generic UpdateMaintenanceWindowTargetResponse Source # 
NFData UpdateMaintenanceWindowTargetResponse Source # 
type Rep UpdateMaintenanceWindowTargetResponse Source # 
type Rep UpdateMaintenanceWindowTargetResponse = D1 * (MetaData "UpdateMaintenanceWindowTargetResponse" "Network.AWS.SSM.UpdateMaintenanceWindowTarget" "amazonka-ssm-1.6.0-FkXaKF9jjpY64HF15tLQlO" False) (C1 * (MetaCons "UpdateMaintenanceWindowTargetResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ursOwnerInformation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ursWindowTargetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ursName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ursTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Target]))) (S1 * (MetaSel (Just Symbol "_ursDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ursWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

ursWindowTargetId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #

The target ID specified in the update request.

ursWindowId :: Lens' UpdateMaintenanceWindowTargetResponse (Maybe Text) Source #

The Maintenance Window ID specified in the update request.