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

Amazonka.SSM.Types.MaintenanceWindowTask

Description

 
Synopsis

Documentation

data MaintenanceWindowTask Source #

Information about a task defined for a maintenance window.

See: newMaintenanceWindowTask smart constructor.

Constructors

MaintenanceWindowTask' 

Fields

  • serviceRoleArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

  • windowTaskId :: Maybe Text

    The task ID.

  • taskParameters :: Maybe (Sensitive (HashMap Text (Sensitive MaintenanceWindowTaskParameterValueExpression)))

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

    TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

  • priority :: Maybe Natural

    The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

  • taskArn :: Maybe Text

    The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn is the Amazon Web Services Systems Manager (SSM document) name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTIONS tasks, it's the state machine ARN.

  • cutoffBehavior :: Maybe MaintenanceWindowTaskCutoffBehavior

    The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.

  • maxErrors :: Maybe Text

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

  • name :: Maybe Text

    The task name.

  • targets :: Maybe [Target]

    The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

  • loggingInfo :: Maybe LoggingInfo

    Information about an S3 bucket to write task-level logs to.

    LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

  • type' :: Maybe MaintenanceWindowTaskType

    The type of task.

  • description :: Maybe (Sensitive Text)

    A description of the task.

  • maxConcurrency :: Maybe Text

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

  • windowId :: Maybe Text

    The ID of the maintenance window where the task is registered.

Instances

Instances details
Eq MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

Show MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

Generic MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

Associated Types

type Rep MaintenanceWindowTask :: Type -> Type #

NFData MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

Methods

rnf :: MaintenanceWindowTask -> () #

Hashable MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

FromJSON MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

type Rep MaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.Types.MaintenanceWindowTask

type Rep MaintenanceWindowTask = D1 ('MetaData "MaintenanceWindowTask" "Amazonka.SSM.Types.MaintenanceWindowTask" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "MaintenanceWindowTask'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "serviceRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "windowTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "taskParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text (Sensitive MaintenanceWindowTaskParameterValueExpression))))))) :*: ((S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "taskArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "cutoffBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskCutoffBehavior)) :*: S1 ('MetaSel ('Just "maxErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 ('MetaSel ('Just "loggingInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingInfo)))) :*: ((S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskType)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "maxConcurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "windowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newMaintenanceWindowTask :: MaintenanceWindowTask Source #

Create a value of MaintenanceWindowTask 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:serviceRoleArn:MaintenanceWindowTask', maintenanceWindowTask_serviceRoleArn - The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

$sel:windowTaskId:MaintenanceWindowTask', maintenanceWindowTask_windowTaskId - The task ID.

$sel:taskParameters:MaintenanceWindowTask', maintenanceWindowTask_taskParameters - The parameters that should be passed to the task when it is run.

TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

$sel:priority:MaintenanceWindowTask', maintenanceWindowTask_priority - The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

$sel:taskArn:MaintenanceWindowTask', maintenanceWindowTask_taskArn - The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn is the Amazon Web Services Systems Manager (SSM document) name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTIONS tasks, it's the state machine ARN.

$sel:cutoffBehavior:MaintenanceWindowTask', maintenanceWindowTask_cutoffBehavior - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.

$sel:maxErrors:MaintenanceWindowTask', maintenanceWindowTask_maxErrors - The maximum number of errors allowed before this task stops being scheduled.

$sel:name:MaintenanceWindowTask', maintenanceWindowTask_name - The task name.

$sel:targets:MaintenanceWindowTask', maintenanceWindowTask_targets - The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

$sel:loggingInfo:MaintenanceWindowTask', maintenanceWindowTask_loggingInfo - Information about an S3 bucket to write task-level logs to.

LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

$sel:type':MaintenanceWindowTask', maintenanceWindowTask_type - The type of task.

$sel:description:MaintenanceWindowTask', maintenanceWindowTask_description - A description of the task.

$sel:maxConcurrency:MaintenanceWindowTask', maintenanceWindowTask_maxConcurrency - The maximum number of targets this task can be run for, in parallel.

$sel:windowId:MaintenanceWindowTask', maintenanceWindowTask_windowId - The ID of the maintenance window where the task is registered.

maintenanceWindowTask_serviceRoleArn :: Lens' MaintenanceWindowTask (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

maintenanceWindowTask_taskParameters :: Lens' MaintenanceWindowTask (Maybe (HashMap Text MaintenanceWindowTaskParameterValueExpression)) Source #

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

TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

maintenanceWindowTask_priority :: Lens' MaintenanceWindowTask (Maybe Natural) Source #

The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

maintenanceWindowTask_taskArn :: Lens' MaintenanceWindowTask (Maybe Text) Source #

The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types, TaskArn is the Amazon Web Services Systems Manager (SSM document) name or ARN. For LAMBDA tasks, it's the function name or ARN. For STEP_FUNCTIONS tasks, it's the state machine ARN.

maintenanceWindowTask_cutoffBehavior :: Lens' MaintenanceWindowTask (Maybe MaintenanceWindowTaskCutoffBehavior) Source #

The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.

maintenanceWindowTask_maxErrors :: Lens' MaintenanceWindowTask (Maybe Text) Source #

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

maintenanceWindowTask_targets :: Lens' MaintenanceWindowTask (Maybe [Target]) Source #

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

maintenanceWindowTask_loggingInfo :: Lens' MaintenanceWindowTask (Maybe LoggingInfo) Source #

Information about an S3 bucket to write task-level logs to.

LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

maintenanceWindowTask_maxConcurrency :: Lens' MaintenanceWindowTask (Maybe Text) Source #

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

maintenanceWindowTask_windowId :: Lens' MaintenanceWindowTask (Maybe Text) Source #

The ID of the maintenance window where the task is registered.