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.RegisterTaskWithMaintenanceWindow

Contents

Description

Adds a new task to a Maintenance Window.

Synopsis

Creating a Request

registerTaskWithMaintenanceWindow Source #

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

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

  • rtwmwTaskParameters - The parameters that should be passed to the task when it is executed.
  • rtwmwPriority - The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
  • rtwmwClientToken - User-provided idempotency token.
  • rtwmwTaskInvocationParameters - The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.
  • rtwmwName - An optional name for the task.
  • rtwmwLoggingInfo - A structure containing information about an Amazon S3 bucket to write instance-level logs to.
  • rtwmwDescription - An optional description for the task.
  • rtwmwWindowId - The ID of the Maintenance Window the task should be added to.
  • rtwmwTargets - The targets (either instances or Maintenance Window targets). Specify instances using the following format: Key=InstanceIds,Values=instance-id-1,instance-id-2 Specify Maintenance Window targets using the following format: Key=WindowTargetIds,Values=window-target-id-1,window-target-id-2
  • rtwmwTaskARN - The ARN of the task to execute
  • rtwmwServiceRoleARN - The role that should be assumed when executing the task.
  • rtwmwTaskType - The type of task being registered.
  • rtwmwMaxConcurrency - The maximum number of targets this task can be run for in parallel.
  • rtwmwMaxErrors - The maximum number of errors allowed before this task stops being scheduled.

data RegisterTaskWithMaintenanceWindow Source #

See: registerTaskWithMaintenanceWindow smart constructor.

Instances

Eq RegisterTaskWithMaintenanceWindow Source # 
Data RegisterTaskWithMaintenanceWindow Source # 

Methods

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

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

toConstr :: RegisterTaskWithMaintenanceWindow -> Constr #

dataTypeOf :: RegisterTaskWithMaintenanceWindow -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RegisterTaskWithMaintenanceWindow Source # 
Generic RegisterTaskWithMaintenanceWindow Source # 
Hashable RegisterTaskWithMaintenanceWindow Source # 
ToJSON RegisterTaskWithMaintenanceWindow Source # 
NFData RegisterTaskWithMaintenanceWindow Source # 
AWSRequest RegisterTaskWithMaintenanceWindow Source # 
ToHeaders RegisterTaskWithMaintenanceWindow Source # 
ToPath RegisterTaskWithMaintenanceWindow Source # 
ToQuery RegisterTaskWithMaintenanceWindow Source # 
type Rep RegisterTaskWithMaintenanceWindow Source # 
type Rep RegisterTaskWithMaintenanceWindow = D1 * (MetaData "RegisterTaskWithMaintenanceWindow" "Network.AWS.SSM.RegisterTaskWithMaintenanceWindow" "amazonka-ssm-1.6.0-FkXaKF9jjpY64HF15tLQlO" False) (C1 * (MetaCons "RegisterTaskWithMaintenanceWindow'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwTaskParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive (Map Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwPriority") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_rtwmwClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwTaskInvocationParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe MaintenanceWindowTaskInvocationParameters))) (S1 * (MetaSel (Just Symbol "_rtwmwName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwLoggingInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LoggingInfo))) (S1 * (MetaSel (Just Symbol "_rtwmwDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text))))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Target])) (S1 * (MetaSel (Just Symbol "_rtwmwTaskARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwServiceRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_rtwmwTaskType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * MaintenanceWindowTaskType))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwMaxConcurrency") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_rtwmwMaxErrors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))))
type Rs RegisterTaskWithMaintenanceWindow Source # 

Request Lenses

rtwmwTaskParameters :: Lens' RegisterTaskWithMaintenanceWindow (Maybe (HashMap Text MaintenanceWindowTaskParameterValueExpression)) Source #

The parameters that should be passed to the task when it is executed.

rtwmwPriority :: Lens' RegisterTaskWithMaintenanceWindow (Maybe Natural) Source #

The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.

rtwmwTaskInvocationParameters :: Lens' RegisterTaskWithMaintenanceWindow (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.

rtwmwLoggingInfo :: Lens' RegisterTaskWithMaintenanceWindow (Maybe LoggingInfo) Source #

A structure containing information about an Amazon S3 bucket to write instance-level logs to.

rtwmwDescription :: Lens' RegisterTaskWithMaintenanceWindow (Maybe Text) Source #

An optional description for the task.

rtwmwWindowId :: Lens' RegisterTaskWithMaintenanceWindow Text Source #

The ID of the Maintenance Window the task should be added to.

rtwmwTargets :: Lens' RegisterTaskWithMaintenanceWindow [Target] Source #

The targets (either instances or Maintenance Window targets). Specify instances using the following format: Key=InstanceIds,Values=instance-id-1,instance-id-2 Specify Maintenance Window targets using the following format: Key=WindowTargetIds,Values=window-target-id-1,window-target-id-2

rtwmwServiceRoleARN :: Lens' RegisterTaskWithMaintenanceWindow Text Source #

The role that should be assumed when executing the task.

rtwmwMaxConcurrency :: Lens' RegisterTaskWithMaintenanceWindow Text Source #

The maximum number of targets this task can be run for in parallel.

rtwmwMaxErrors :: Lens' RegisterTaskWithMaintenanceWindow Text Source #

The maximum number of errors allowed before this task stops being scheduled.

Destructuring the Response

registerTaskWithMaintenanceWindowResponse Source #

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

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

data RegisterTaskWithMaintenanceWindowResponse Source #

Instances

Eq RegisterTaskWithMaintenanceWindowResponse Source # 
Data RegisterTaskWithMaintenanceWindowResponse Source # 

Methods

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

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

toConstr :: RegisterTaskWithMaintenanceWindowResponse -> Constr #

dataTypeOf :: RegisterTaskWithMaintenanceWindowResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterTaskWithMaintenanceWindowResponse Source # 
Show RegisterTaskWithMaintenanceWindowResponse Source # 
Generic RegisterTaskWithMaintenanceWindowResponse Source # 
NFData RegisterTaskWithMaintenanceWindowResponse Source # 
type Rep RegisterTaskWithMaintenanceWindowResponse Source # 
type Rep RegisterTaskWithMaintenanceWindowResponse = D1 * (MetaData "RegisterTaskWithMaintenanceWindowResponse" "Network.AWS.SSM.RegisterTaskWithMaintenanceWindow" "amazonka-ssm-1.6.0-FkXaKF9jjpY64HF15tLQlO" False) (C1 * (MetaCons "RegisterTaskWithMaintenanceWindowResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtwmwrsWindowTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_rtwmwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

rtwmwrsWindowTaskId :: Lens' RegisterTaskWithMaintenanceWindowResponse (Maybe Text) Source #

The id of the task in the Maintenance Window.