amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSM.GetMaintenanceWindowTask

Description

Retrieves the details of a maintenance window task.

For maintenance window tasks without a specified target, you can't supply values for --max-errors and --max-concurrency. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. These values don't affect the running of your task and can be ignored.

To retrieve a list of tasks in a maintenance window, instead use the DescribeMaintenanceWindowTasks command.

Synopsis

Creating a Request

data GetMaintenanceWindowTask Source #

See: newGetMaintenanceWindowTask smart constructor.

Constructors

GetMaintenanceWindowTask' 

Fields

  • windowId :: Text

    The maintenance window ID that includes the task to retrieve.

  • windowTaskId :: Text

    The maintenance window task ID to retrieve.

Instances

Instances details
ToJSON GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

ToHeaders GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

ToPath GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

ToQuery GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

AWSRequest GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Generic GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Associated Types

type Rep GetMaintenanceWindowTask :: Type -> Type #

Read GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Show GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

NFData GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Eq GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Hashable GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

type AWSResponse GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

type Rep GetMaintenanceWindowTask Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

type Rep GetMaintenanceWindowTask = D1 ('MetaData "GetMaintenanceWindowTask" "Amazonka.SSM.GetMaintenanceWindowTask" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "GetMaintenanceWindowTask'" 'PrefixI 'True) (S1 ('MetaSel ('Just "windowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "windowTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetMaintenanceWindowTask Source #

Create a value of GetMaintenanceWindowTask 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:

GetMaintenanceWindowTask, getMaintenanceWindowTask_windowId - The maintenance window ID that includes the task to retrieve.

GetMaintenanceWindowTask, getMaintenanceWindowTask_windowTaskId - The maintenance window task ID to retrieve.

Request Lenses

getMaintenanceWindowTask_windowId :: Lens' GetMaintenanceWindowTask Text Source #

The maintenance window ID that includes the task to retrieve.

Destructuring the Response

data GetMaintenanceWindowTaskResponse Source #

See: newGetMaintenanceWindowTaskResponse smart constructor.

Constructors

GetMaintenanceWindowTaskResponse' 

Fields

  • alarmConfiguration :: Maybe AlarmConfiguration

    The details for the CloudWatch alarm you applied to your maintenance window task.

  • cutoffBehavior :: Maybe MaintenanceWindowTaskCutoffBehavior

    The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

  • description :: Maybe (Sensitive Text)

    The retrieved task description.

  • loggingInfo :: Maybe LoggingInfo

    The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

    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.

  • maxConcurrency :: Maybe Text

    The maximum number of targets allowed to run this task in parallel.

    For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

  • maxErrors :: Maybe Text

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

    For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

  • name :: Maybe Text

    The retrieved task name.

  • priority :: Maybe Natural

    The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

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

  • targets :: Maybe [Target]

    The targets where the task should run.

  • taskArn :: Maybe Text

    The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

  • taskInvocationParameters :: Maybe MaintenanceWindowTaskInvocationParameters

    The parameters to pass to the task when it runs.

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

    The parameters to pass to the task when it runs.

    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.

  • taskType :: Maybe MaintenanceWindowTaskType

    The type of task to run.

  • windowId :: Maybe Text

    The retrieved maintenance window ID.

  • windowTaskId :: Maybe Text

    The retrieved maintenance window task ID.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Associated Types

type Rep GetMaintenanceWindowTaskResponse :: Type -> Type #

Show GetMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

NFData GetMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

Eq GetMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

type Rep GetMaintenanceWindowTaskResponse Source # 
Instance details

Defined in Amazonka.SSM.GetMaintenanceWindowTask

type Rep GetMaintenanceWindowTaskResponse = D1 ('MetaData "GetMaintenanceWindowTaskResponse" "Amazonka.SSM.GetMaintenanceWindowTask" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "GetMaintenanceWindowTaskResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "alarmConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmConfiguration)) :*: S1 ('MetaSel ('Just "cutoffBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskCutoffBehavior))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "loggingInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingInfo)))) :*: ((S1 ('MetaSel ('Just "maxConcurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))) :*: (((S1 ('MetaSel ('Just "serviceRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target]))) :*: (S1 ('MetaSel ('Just "taskArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "taskInvocationParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskInvocationParameters)))) :*: ((S1 ('MetaSel ('Just "taskParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text (Sensitive MaintenanceWindowTaskParameterValueExpression))))) :*: S1 ('MetaSel ('Just "taskType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MaintenanceWindowTaskType))) :*: (S1 ('MetaSel ('Just "windowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "windowTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))))

newGetMaintenanceWindowTaskResponse Source #

Create a value of GetMaintenanceWindowTaskResponse 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:

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_alarmConfiguration - The details for the CloudWatch alarm you applied to your maintenance window task.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_cutoffBehavior - The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_description - The retrieved task description.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_loggingInfo - The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

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.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_maxConcurrency - The maximum number of targets allowed to run this task in parallel.

For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_maxErrors - The maximum number of errors allowed before the task stops being scheduled.

For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_name - The retrieved task name.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_priority - The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_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.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_targets - The targets where the task should run.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_taskArn - The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

$sel:taskInvocationParameters:GetMaintenanceWindowTaskResponse', getMaintenanceWindowTaskResponse_taskInvocationParameters - The parameters to pass to the task when it runs.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_taskParameters - The parameters to pass to the task when it runs.

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.

GetMaintenanceWindowTaskResponse, getMaintenanceWindowTaskResponse_taskType - The type of task to run.

GetMaintenanceWindowTask, getMaintenanceWindowTaskResponse_windowId - The retrieved maintenance window ID.

GetMaintenanceWindowTask, getMaintenanceWindowTaskResponse_windowTaskId - The retrieved maintenance window task ID.

$sel:httpStatus:GetMaintenanceWindowTaskResponse', getMaintenanceWindowTaskResponse_httpStatus - The response's http status code.

Response Lenses

getMaintenanceWindowTaskResponse_alarmConfiguration :: Lens' GetMaintenanceWindowTaskResponse (Maybe AlarmConfiguration) Source #

The details for the CloudWatch alarm you applied to your maintenance window task.

getMaintenanceWindowTaskResponse_cutoffBehavior :: Lens' GetMaintenanceWindowTaskResponse (Maybe MaintenanceWindowTaskCutoffBehavior) Source #

The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

getMaintenanceWindowTaskResponse_loggingInfo :: Lens' GetMaintenanceWindowTaskResponse (Maybe LoggingInfo) Source #

The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

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.

getMaintenanceWindowTaskResponse_maxConcurrency :: Lens' GetMaintenanceWindowTaskResponse (Maybe Text) Source #

The maximum number of targets allowed to run this task in parallel.

For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

getMaintenanceWindowTaskResponse_maxErrors :: Lens' GetMaintenanceWindowTaskResponse (Maybe Text) Source #

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

For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn't affect the running of your task and can be ignored.

getMaintenanceWindowTaskResponse_priority :: Lens' GetMaintenanceWindowTaskResponse (Maybe Natural) Source #

The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

getMaintenanceWindowTaskResponse_serviceRoleArn :: Lens' GetMaintenanceWindowTaskResponse (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.

getMaintenanceWindowTaskResponse_taskArn :: Lens' GetMaintenanceWindowTaskResponse (Maybe Text) Source #

The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

getMaintenanceWindowTaskResponse_taskParameters :: Lens' GetMaintenanceWindowTaskResponse (Maybe (HashMap Text MaintenanceWindowTaskParameterValueExpression)) Source #

The parameters to pass to the task when it runs.

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.