MaintenanceWindowRunCommandParameters
¶
Source code in docs_src/capo_ssm/types/maintenance_window_run_command_parameters.py
cloud_watch_output_config
instance-attribute
¶
cloud_watch_output_config: NotRequired[CloudWatchOutputConfig]
document_hash
instance-attribute
¶
document_hash: NotRequired[DocumentHash]
The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
document_hash_type
instance-attribute
¶
document_hash_type: NotRequired[DocumentHashType]
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
document_version
instance-attribute
¶
document_version: NotRequired[DocumentVersion]
The Amazon Web Services Systems Manager document (SSM document) version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the Amazon Web Services CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
notification_config
instance-attribute
¶
notification_config: NotRequired[NotificationConfig]
Configurations for sending notifications about command status changes on a per-managed node basis.
output_s3_bucket_name
instance-attribute
¶
output_s3_bucket_name: NotRequired[S3BucketName]
The name of the Amazon Simple Storage Service (Amazon S3) bucket.
output_s3_key_prefix
instance-attribute
¶
output_s3_key_prefix: NotRequired[S3KeyPrefix]
The S3 bucket subfolder.
parameters
instance-attribute
¶
parameters: NotRequired[Parameters]
The parameters for the RUN_COMMAND task execution.
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.
timeout_seconds
instance-attribute
¶
timeout_seconds: NotRequired[TimeoutSeconds]
If this time is reached and the command hasn't already started running, it doesn't run.