AWS::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters
MaintenanceWindowRunCommandParameters
属性类型为 AWS Systems Manager 中的维护时段任务指定 RUN_COMMAND
任务类型的参数。这意味着:这些参数与针对 SendCommand
API 调用的参数相同。有关更多信息,请参阅 AWS Systems Manager API 参考 中的 SendCommand。
MaintenanceWindowRunCommandParameters
是 TaskInvocationParameters 属性类型的一个属性。
语法
要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:
JSON
{ "Comment" :
String
, "DocumentHash" :String
, "DocumentHashType" :String
, "NotificationConfig" :NotificationConfig
, "OutputS3BucketName" :String
, "OutputS3KeyPrefix" :String
, "Parameters" :Json
, "ServiceRoleArn" :String
, "TimeoutSeconds" :Integer
}
YAML
Comment:
String
DocumentHash:String
DocumentHashType:String
NotificationConfig:NotificationConfig
OutputS3BucketName:String
OutputS3KeyPrefix:String
Parameters:Json
ServiceRoleArn:String
TimeoutSeconds:Integer
属性
Comment
-
有关要运行的命令的信息。
必需:否
类型:字符串
最高:
100
Update requires: No interruption
DocumentHash
-
创建文档时由系统创建的 SHA-256 或 SHA-1 哈希。SHA-1 哈希已被弃用。
必需:否
类型:字符串
最高:
256
Update requires: No interruption
DocumentHashType
-
SHA-256 或 SHA-1 哈希类型。SHA-1 哈希已被弃用。
必需:否
类型:字符串
允许的值:
Sha1 | Sha256
Update requires: No interruption
NotificationConfig
-
有关基于每个实例发送有关命令状态更改的通知的配置。
必需:否
Update requires: No interruption
OutputS3BucketName
-
S3 存储桶的名称。
必需:否
类型:字符串
最低:
3
最高:
63
Update requires: No interruption
OutputS3KeyPrefix
-
S3 存储桶子文件夹。
必需:否
类型:字符串
最高:
500
Update requires: No interruption
Parameters
-
RUN_COMMAND
任务执行的参数。支持的参数与
SendCommand
API 调用所用的参数相同。有关更多信息,请参阅 AWS Systems Manager API 参考 中的 SendCommand。必需:否
类型:Json
Update requires: No interruption
ServiceRoleArn
-
要用于发布维护时段 Run Command 任务的 Amazon Simple Notification Service (Amazon SNS) 通知的 IAM 服务的 ARN。
必需:否
类型:字符串
Update requires: No interruption
TimeoutSeconds
-
如果达到此时间但命令尚未开始执行,则不运行。
必需:否
类型:整数
最低:
30
最高:
2592000
Update requires: No interruption