amazonka-ssm-1.6.1: 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.UpdateMaintenanceWindowTask

Contents

Description

Modifies a task assigned to a Maintenance Window. You can't change the task type, but you can change the following values:

  • TaskARN. For example, you can change a RUN_COMMAND task from AWS-RunPowerShellScript to AWS-RunShellScript.
  • ServiceRoleArn
  • TaskInvocationParameters
  • Priority
  • MaxConcurrency
  • MaxErrors

If a parameter is null, then the corresponding field is not modified. Also, if you set Replace to true, then all fields required by the RegisterTaskWithMaintenanceWindow action are required for this request. Optional fields that aren't specified are set to null.

Synopsis

Creating a Request

updateMaintenanceWindowTask Source #

Creates a value of UpdateMaintenanceWindowTask with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • umwtServiceRoleARN - The IAM service role ARN to modify. The system assumes this role during task execution.
  • umwtReplace - If True, then all fields that are required by the RegisterTaskWithMaintenanceWndow action are also required for this API request. Optional fields that are not specified are set to null.
  • umwtTaskParameters - The parameters to modify. The map has the following format: Key: string, between 1 and 255 characters Value: an array of strings, each string is between 1 and 255 characters
  • umwtPriority - The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
  • umwtTaskARN - The task ARN to modify.
  • umwtMaxErrors - The new MaxErrors value to specify. MaxErrors is the maximum number of errors that are allowed before the task stops being scheduled.
  • umwtTaskInvocationParameters - The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.
  • umwtName - The new task name to specify.
  • umwtTargets - The targets (either instances or tags) to modify. Instances are specified using Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using Key=tag_name,Values=tag_value.
  • umwtLoggingInfo - The new logging location in Amazon S3 to specify.
  • umwtDescription - The new task description to specify.
  • umwtMaxConcurrency - The new MaxConcurrency value you want to specify. MaxConcurrency is the number of targets that are allowed to run this task in parallel.
  • umwtWindowId - The Maintenance Window ID that contains the task to modify.
  • umwtWindowTaskId - The task ID to modify.

data UpdateMaintenanceWindowTask Source #

See: updateMaintenanceWindowTask smart constructor.

Instances
Eq UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Data UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Methods

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

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

toConstr :: UpdateMaintenanceWindowTask -> Constr #

dataTypeOf :: UpdateMaintenanceWindowTask -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Generic UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Associated Types

type Rep UpdateMaintenanceWindowTask :: Type -> Type #

Hashable UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

ToJSON UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

AWSRequest UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Associated Types

type Rs UpdateMaintenanceWindowTask :: Type #

ToHeaders UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

ToPath UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

ToQuery UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

NFData UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

type Rep UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

type Rep UpdateMaintenanceWindowTask = D1 (MetaData "UpdateMaintenanceWindowTask" "Network.AWS.SSM.UpdateMaintenanceWindowTask" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "UpdateMaintenanceWindowTask'" PrefixI True) (((S1 (MetaSel (Just "_umwtServiceRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_umwtReplace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_umwtTaskParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive (Map Text (Sensitive MaintenanceWindowTaskParameterValueExpression))))))) :*: ((S1 (MetaSel (Just "_umwtPriority") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_umwtTaskARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_umwtMaxErrors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_umwtTaskInvocationParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskInvocationParameters))))) :*: ((S1 (MetaSel (Just "_umwtName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_umwtTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 (MetaSel (Just "_umwtLoggingInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LoggingInfo)))) :*: ((S1 (MetaSel (Just "_umwtDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 (MetaSel (Just "_umwtMaxConcurrency") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_umwtWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_umwtWindowTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs UpdateMaintenanceWindowTask Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Request Lenses

umwtServiceRoleARN :: Lens' UpdateMaintenanceWindowTask (Maybe Text) Source #

The IAM service role ARN to modify. The system assumes this role during task execution.

umwtReplace :: Lens' UpdateMaintenanceWindowTask (Maybe Bool) Source #

If True, then all fields that are required by the RegisterTaskWithMaintenanceWndow action are also required for this API request. Optional fields that are not specified are set to null.

umwtTaskParameters :: Lens' UpdateMaintenanceWindowTask (Maybe (HashMap Text MaintenanceWindowTaskParameterValueExpression)) Source #

The parameters to modify. The map has the following format: Key: string, between 1 and 255 characters Value: an array of strings, each string is between 1 and 255 characters

umwtPriority :: Lens' UpdateMaintenanceWindowTask (Maybe Natural) Source #

The new task priority to specify. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

umwtMaxErrors :: Lens' UpdateMaintenanceWindowTask (Maybe Text) Source #

The new MaxErrors value to specify. MaxErrors is the maximum number of errors that are allowed before the task stops being scheduled.

umwtTaskInvocationParameters :: Lens' UpdateMaintenanceWindowTask (Maybe MaintenanceWindowTaskInvocationParameters) Source #

The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.

umwtName :: Lens' UpdateMaintenanceWindowTask (Maybe Text) Source #

The new task name to specify.

umwtTargets :: Lens' UpdateMaintenanceWindowTask [Target] Source #

The targets (either instances or tags) to modify. Instances are specified using Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using Key=tag_name,Values=tag_value.

umwtLoggingInfo :: Lens' UpdateMaintenanceWindowTask (Maybe LoggingInfo) Source #

The new logging location in Amazon S3 to specify.

umwtDescription :: Lens' UpdateMaintenanceWindowTask (Maybe Text) Source #

The new task description to specify.

umwtMaxConcurrency :: Lens' UpdateMaintenanceWindowTask (Maybe Text) Source #

The new MaxConcurrency value you want to specify. MaxConcurrency is the number of targets that are allowed to run this task in parallel.

umwtWindowId :: Lens' UpdateMaintenanceWindowTask Text Source #

The Maintenance Window ID that contains the task to modify.

Destructuring the Response

updateMaintenanceWindowTaskResponse Source #

Creates a value of UpdateMaintenanceWindowTaskResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateMaintenanceWindowTaskResponse Source #

See: updateMaintenanceWindowTaskResponse smart constructor.

Instances
Eq UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Data UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Methods

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

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

toConstr :: UpdateMaintenanceWindowTaskResponse -> Constr #

dataTypeOf :: UpdateMaintenanceWindowTaskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

Generic UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

NFData UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

type Rep UpdateMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Network.AWS.SSM.UpdateMaintenanceWindowTask

type Rep UpdateMaintenanceWindowTaskResponse = D1 (MetaData "UpdateMaintenanceWindowTaskResponse" "Network.AWS.SSM.UpdateMaintenanceWindowTask" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "UpdateMaintenanceWindowTaskResponse'" PrefixI True) (((S1 (MetaSel (Just "_umwtrsServiceRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_umwtrsWindowTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_umwtrsTaskParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive (Map Text (Sensitive MaintenanceWindowTaskParameterValueExpression))))))) :*: ((S1 (MetaSel (Just "_umwtrsPriority") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_umwtrsTaskARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_umwtrsMaxErrors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_umwtrsTaskInvocationParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskInvocationParameters))))) :*: ((S1 (MetaSel (Just "_umwtrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_umwtrsTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 (MetaSel (Just "_umwtrsLoggingInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LoggingInfo)))) :*: ((S1 (MetaSel (Just "_umwtrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 (MetaSel (Just "_umwtrsMaxConcurrency") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_umwtrsWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_umwtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

umwtrsWindowTaskId :: Lens' UpdateMaintenanceWindowTaskResponse (Maybe Text) Source #

The task ID of the Maintenance Window that was updated.

umwtrsLoggingInfo :: Lens' UpdateMaintenanceWindowTaskResponse (Maybe LoggingInfo) Source #

The updated logging information in Amazon S3.

umwtrsWindowId :: Lens' UpdateMaintenanceWindowTaskResponse (Maybe Text) Source #

The ID of the Maintenance Window that was updated.