GetMaintenanceWindowTaskResult
¶
Source code in docs_src/capo_ssm/types/get_maintenance_window_task_result.py
alarm_configuration
instance-attribute
¶
alarm_configuration: NotRequired[AlarmConfiguration]
The details for the CloudWatch alarm you applied to your maintenance window task.
cutoff_behavior
instance-attribute
¶
cutoff_behavior: NotRequired[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
instance-attribute
¶
description: NotRequired[MaintenanceWindowDescription]
The retrieved task description.
logging_info
instance-attribute
¶
logging_info: NotRequired[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.
max_concurrency
instance-attribute
¶
max_concurrency: NotRequired[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.
max_errors
instance-attribute
¶
max_errors: NotRequired[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.
priority
instance-attribute
¶
priority: MaintenanceWindowTaskPriority
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.
service_role_arn
instance-attribute
¶
service_role_arn: NotRequired[ServiceRole]
The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow.
However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the Amazon Web Services Systems Manager User Guide.
task_arn
instance-attribute
¶
task_arn: NotRequired[MaintenanceWindowTaskArn]
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.
task_invocation_parameters
instance-attribute
¶
task_invocation_parameters: NotRequired[MaintenanceWindowTaskInvocationParameters]
The parameters to pass to the task when it runs.
task_parameters
instance-attribute
¶
task_parameters: NotRequired[MaintenanceWindowTaskParameters]
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.
task_type
instance-attribute
¶
task_type: NotRequired[MaintenanceWindowTaskType]
The type of task to run.
window_id
instance-attribute
¶
window_id: NotRequired[MaintenanceWindowId]
The retrieved maintenance window ID.
window_task_id
instance-attribute
¶
window_task_id: NotRequired[MaintenanceWindowTaskId]
The retrieved maintenance window task ID.