MaintenanceWindowRunCommandParametersProperty Struct
The MaintenanceWindowRunCommandParameters property type specifies the parameters for a RUN_COMMAND task type for a maintenance window task in AWS Systems Manager .
This means that these parameters are the same as those for the SendCommand API call. For more information about SendCommand parameters, see SendCommand in the AWS Systems Manager API Reference .
For information about available parameters in SSM Command documents, you can view the content of the document itself in the Systems Manager console. For information, see Viewing SSM command document content in the AWS Systems Manager User Guide .
MaintenanceWindowRunCommandParameters is a property of the TaskInvocationParameters property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
declare const parameters: any;
const maintenanceWindowRunCommandParametersProperty: ssm.CfnMaintenanceWindowTask.MaintenanceWindowRunCommandParametersProperty = {
cloudWatchOutputConfig: {
cloudWatchLogGroupName: 'cloudWatchLogGroupName',
cloudWatchOutputEnabled: false,
},
comment: 'comment',
documentHash: 'documentHash',
documentHashType: 'documentHashType',
documentVersion: 'documentVersion',
notificationConfig: {
notificationArn: 'notificationArn',
// the properties below are optional
notificationEvents: ['notificationEvents'],
notificationType: 'notificationType',
},
outputS3BucketName: 'outputS3BucketName',
outputS3KeyPrefix: 'outputS3KeyPrefix',
parameters: parameters,
serviceRoleArn: 'serviceRoleArn',
timeoutSeconds: 123,
};
Properties
cloudWatchOutputConfigoptionalIResolvable | CfnMaintenanceWindowTask.CloudWatchOutputConfigPropertycloud_watch_output_configoptionaltyping.Union[IResolvable, CloudWatchOutputConfigProperty]cloudWatchOutputConfigoptionalIResolvableCloudWatchOutputConfigoptionalIResolvableCloudWatchOutputConfigoptionalinterface{}#commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string#documentHashoptionalstringdocument_hashoptionalstrdocumentHashoptionalStringDocumentHashoptionalstringDocumentHashoptional*string#SHA-1 hashes have been deprecated.
documentHashTypeoptionalstringdocument_hash_typeoptionalstrdocumentHashTypeoptionalStringDocumentHashTypeoptionalstringDocumentHashTypeoptional*string#SHA-1 hashes are deprecated.
documentVersionoptionalstringdocument_versionoptionalstrdocumentVersionoptionalStringDocumentVersionoptionalstringDocumentVersionoptional*string#notes
You can specify $DEFAULT , $LATEST , or a specific version number. If you run commands by using the AWS 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"
notificationConfigoptionalIResolvable | CfnMaintenanceWindowTask.NotificationConfigPropertynotification_configoptionaltyping.Union[IResolvable, NotificationConfigProperty]notificationConfigoptionalIResolvableNotificationConfigoptionalIResolvableNotificationConfigoptionalinterface{}#outputS3BucketNameoptionalstringoutput_s3_bucket_nameoptionalstroutputS3BucketNameoptionalStringOutputS3BucketNameoptionalstringOutputS3BucketNameoptional*string#outputS3KeyPrefixoptionalstringoutput_s3_key_prefixoptionalstroutputS3KeyPrefixoptionalStringOutputS3KeyPrefixoptionalstringOutputS3KeyPrefixoptional*string#parametersoptionalanyparametersoptionalAnyparametersoptionalObjectParametersoptionalobjectParametersoptionalinterface{}#notes
The supported parameters are the same as those for the SendCommand API call. For more information, see SendCommand in the AWS Systems Manager API Reference .
serviceRoleArnoptionalstringservice_role_arnoptionalstrserviceRoleArnoptionalStringServiceRoleArnoptionalstringServiceRoleArnoptional*string#notes
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 AWS Systems Manager User Guide .
timeoutSecondsoptionalnumbertimeout_secondsoptionalint | floattimeoutSecondsoptionalNumberTimeoutSecondsoptionaldoubleTimeoutSecondsoptional*float64#