We recommend new projects start with resources from the AWS provider.
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::SSM::MaintenanceWindowTask
Using getMaintenanceWindowTask
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMaintenanceWindowTask(args: GetMaintenanceWindowTaskArgs, opts?: InvokeOptions): Promise<GetMaintenanceWindowTaskResult>
function getMaintenanceWindowTaskOutput(args: GetMaintenanceWindowTaskOutputArgs, opts?: InvokeOptions): Output<GetMaintenanceWindowTaskResult>def get_maintenance_window_task(window_id: Optional[str] = None,
window_task_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMaintenanceWindowTaskResult
def get_maintenance_window_task_output(window_id: Optional[pulumi.Input[str]] = None,
window_task_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMaintenanceWindowTaskResult]func LookupMaintenanceWindowTask(ctx *Context, args *LookupMaintenanceWindowTaskArgs, opts ...InvokeOption) (*LookupMaintenanceWindowTaskResult, error)
func LookupMaintenanceWindowTaskOutput(ctx *Context, args *LookupMaintenanceWindowTaskOutputArgs, opts ...InvokeOption) LookupMaintenanceWindowTaskResultOutput> Note: This function is named LookupMaintenanceWindowTask in the Go SDK.
public static class GetMaintenanceWindowTask
{
public static Task<GetMaintenanceWindowTaskResult> InvokeAsync(GetMaintenanceWindowTaskArgs args, InvokeOptions? opts = null)
public static Output<GetMaintenanceWindowTaskResult> Invoke(GetMaintenanceWindowTaskInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMaintenanceWindowTaskResult> getMaintenanceWindowTask(GetMaintenanceWindowTaskArgs args, InvokeOptions options)
public static Output<GetMaintenanceWindowTaskResult> getMaintenanceWindowTask(GetMaintenanceWindowTaskArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ssm:getMaintenanceWindowTask
arguments:
# arguments dictionaryThe following arguments are supported:
- Window
Id string - The ID of the maintenance window where the task is registered.
- Window
Task stringId - Unique identifier of the maintenance window task.
- Window
Id string - The ID of the maintenance window where the task is registered.
- Window
Task stringId - Unique identifier of the maintenance window task.
- window
Id String - The ID of the maintenance window where the task is registered.
- window
Task StringId - Unique identifier of the maintenance window task.
- window
Id string - The ID of the maintenance window where the task is registered.
- window
Task stringId - Unique identifier of the maintenance window task.
- window_
id str - The ID of the maintenance window where the task is registered.
- window_
task_ strid - Unique identifier of the maintenance window task.
- window
Id String - The ID of the maintenance window where the task is registered.
- window
Task StringId - Unique identifier of the maintenance window task.
getMaintenanceWindowTask Result
The following output properties are available:
- Cutoff
Behavior string - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- Description string
- A description of the task.
- Logging
Info Pulumi.Aws Native. Ssm. Outputs. Maintenance Window Task Logging Info - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- Max
Concurrency string - The maximum number of targets this task can be run for, in parallel.
- Max
Errors string - The maximum number of errors allowed before this task stops being scheduled.
- Name string
- The task name.
- Priority int
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- Service
Role stringArn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- Targets
List<Pulumi.
Aws Native. Ssm. Outputs. Maintenance Window Task Target> - The targets (either instances or window target ids).
- Task
Arn string - The resource that the task uses during execution.
- Task
Invocation Pulumi.Parameters Aws Native. Ssm. Outputs. Maintenance Window Task Task Invocation Parameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- Task
Parameters object The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- Window
Task stringId - Unique identifier of the maintenance window task.
- Cutoff
Behavior string - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- Description string
- A description of the task.
- Logging
Info MaintenanceWindow Task Logging Info - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- Max
Concurrency string - The maximum number of targets this task can be run for, in parallel.
- Max
Errors string - The maximum number of errors allowed before this task stops being scheduled.
- Name string
- The task name.
- Priority int
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- Service
Role stringArn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- Targets
[]Maintenance
Window Task Target - The targets (either instances or window target ids).
- Task
Arn string - The resource that the task uses during execution.
- Task
Invocation MaintenanceParameters Window Task Task Invocation Parameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- Task
Parameters interface{} The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- Window
Task stringId - Unique identifier of the maintenance window task.
- cutoff
Behavior String - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- description String
- A description of the task.
- logging
Info MaintenanceWindow Task Logging Info - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- max
Concurrency String - The maximum number of targets this task can be run for, in parallel.
- max
Errors String - The maximum number of errors allowed before this task stops being scheduled.
- name String
- The task name.
- priority Integer
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- service
Role StringArn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- targets
List<Maintenance
Window Task Target> - The targets (either instances or window target ids).
- task
Arn String - The resource that the task uses during execution.
- task
Invocation MaintenanceParameters Window Task Task Invocation Parameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- task
Parameters Object The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- window
Task StringId - Unique identifier of the maintenance window task.
- cutoff
Behavior string - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- description string
- A description of the task.
- logging
Info MaintenanceWindow Task Logging Info - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- max
Concurrency string - The maximum number of targets this task can be run for, in parallel.
- max
Errors string - The maximum number of errors allowed before this task stops being scheduled.
- name string
- The task name.
- priority number
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- service
Role stringArn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- targets
Maintenance
Window Task Target[] - The targets (either instances or window target ids).
- task
Arn string - The resource that the task uses during execution.
- task
Invocation MaintenanceParameters Window Task Task Invocation Parameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- task
Parameters any The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- window
Task stringId - Unique identifier of the maintenance window task.
- cutoff_
behavior str - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- description str
- A description of the task.
- logging_
info MaintenanceWindow Task Logging Info - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- max_
concurrency str - The maximum number of targets this task can be run for, in parallel.
- max_
errors str - The maximum number of errors allowed before this task stops being scheduled.
- name str
- The task name.
- priority int
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- service_
role_ strarn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- targets
Sequence[Maintenance
Window Task Target] - The targets (either instances or window target ids).
- task_
arn str - The resource that the task uses during execution.
- task_
invocation_ Maintenanceparameters Window Task Task Invocation Parameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- task_
parameters Any The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- window_
task_ strid - Unique identifier of the maintenance window task.
- cutoff
Behavior String - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- description String
- A description of the task.
- logging
Info Property Map - Information about an Amazon S3 bucket to write Run Command task-level logs to.
- max
Concurrency String - The maximum number of targets this task can be run for, in parallel.
- max
Errors String - The maximum number of errors allowed before this task stops being scheduled.
- name String
- The task name.
- priority Number
- The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- service
Role StringArn - The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- targets List<Property Map>
- The targets (either instances or window target ids).
- task
Arn String - The resource that the task uses during execution.
- task
Invocation Property MapParameters - The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- task
Parameters Any The parameters to pass to the task when it runs.
Search the CloudFormation User Guide for
AWS::SSM::MaintenanceWindowTaskfor more information about the expected schema for this property.- window
Task StringId - Unique identifier of the maintenance window task.
Supporting Types
MaintenanceWindowTaskCloudWatchOutputConfig
- Cloud
Watch stringLog Group Name - The name of the CloudWatch log group where you want to send command output.
- Cloud
Watch boolOutput Enabled - Enables Systems Manager to send command output to CloudWatch Logs.
- Cloud
Watch stringLog Group Name - The name of the CloudWatch log group where you want to send command output.
- Cloud
Watch boolOutput Enabled - Enables Systems Manager to send command output to CloudWatch Logs.
- cloud
Watch StringLog Group Name - The name of the CloudWatch log group where you want to send command output.
- cloud
Watch BooleanOutput Enabled - Enables Systems Manager to send command output to CloudWatch Logs.
- cloud
Watch stringLog Group Name - The name of the CloudWatch log group where you want to send command output.
- cloud
Watch booleanOutput Enabled - Enables Systems Manager to send command output to CloudWatch Logs.
- cloud_
watch_ strlog_ group_ name - The name of the CloudWatch log group where you want to send command output.
- cloud_
watch_ booloutput_ enabled - Enables Systems Manager to send command output to CloudWatch Logs.
- cloud
Watch StringLog Group Name - The name of the CloudWatch log group where you want to send command output.
- cloud
Watch BooleanOutput Enabled - Enables Systems Manager to send command output to CloudWatch Logs.
MaintenanceWindowTaskLoggingInfo
MaintenanceWindowTaskMaintenanceWindowAutomationParameters
- Document
Version string - The version of an Automation runbook to use during task execution.
- Parameters object
- The parameters for the
AUTOMATIONtype task.
- Document
Version string - The version of an Automation runbook to use during task execution.
- Parameters interface{}
- The parameters for the
AUTOMATIONtype task.
- document
Version String - The version of an Automation runbook to use during task execution.
- parameters Object
- The parameters for the
AUTOMATIONtype task.
- document
Version string - The version of an Automation runbook to use during task execution.
- parameters any
- The parameters for the
AUTOMATIONtype task.
- document_
version str - The version of an Automation runbook to use during task execution.
- parameters Any
- The parameters for the
AUTOMATIONtype task.
- document
Version String - The version of an Automation runbook to use during task execution.
- parameters Any
- The parameters for the
AUTOMATIONtype task.
MaintenanceWindowTaskMaintenanceWindowLambdaParameters
- Client
Context string - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - Payload string
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- Qualifier string
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
- Client
Context string - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - Payload string
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- Qualifier string
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
- client
Context String - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - payload String
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- qualifier String
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
- client
Context string - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - payload string
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- qualifier string
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
- client_
context str - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - payload str
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- qualifier str
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
- client
Context String - Client-specific information to pass to the AWS Lambda function that you're invoking. You can then use the
contextvariable to process the client information in your AWS Lambda function. - payload String
JSON to provide to your AWS Lambda function as input.
Although
Typeis listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.Length Constraint: 4096
- qualifier String
- An AWS Lambda function version or alias name. If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.
MaintenanceWindowTaskMaintenanceWindowRunCommandParameters
- Cloud
Watch Pulumi.Output Config Aws Native. Ssm. Inputs. Maintenance Window Task Cloud Watch Output Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- Comment string
- Information about the command or commands to run.
- Document
Hash string - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- Document
Hash stringType - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- Document
Version string The AWS 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 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"- Notification
Config Pulumi.Aws Native. Ssm. Inputs. Maintenance Window Task Notification Config - Configurations for sending notifications about command status changes on a per-managed node basis.
- Output
S3Bucket stringName - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- Output
S3Key stringPrefix - The S3 bucket subfolder.
- Parameters object
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- Service
Role stringArn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- Timeout
Seconds int - If this time is reached and the command hasn't already started running, it doesn't run.
- Cloud
Watch MaintenanceOutput Config Window Task Cloud Watch Output Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- Comment string
- Information about the command or commands to run.
- Document
Hash string - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- Document
Hash stringType - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- Document
Version string The AWS 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 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"- Notification
Config MaintenanceWindow Task Notification Config - Configurations for sending notifications about command status changes on a per-managed node basis.
- Output
S3Bucket stringName - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- Output
S3Key stringPrefix - The S3 bucket subfolder.
- Parameters interface{}
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- Service
Role stringArn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- Timeout
Seconds int - If this time is reached and the command hasn't already started running, it doesn't run.
- cloud
Watch MaintenanceOutput Config Window Task Cloud Watch Output Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- comment String
- Information about the command or commands to run.
- document
Hash String - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- document
Hash StringType - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- document
Version String The AWS 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 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"- notification
Config MaintenanceWindow Task Notification Config - Configurations for sending notifications about command status changes on a per-managed node basis.
- output
S3Bucket StringName - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- output
S3Key StringPrefix - The S3 bucket subfolder.
- parameters Object
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- service
Role StringArn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- timeout
Seconds Integer - If this time is reached and the command hasn't already started running, it doesn't run.
- cloud
Watch MaintenanceOutput Config Window Task Cloud Watch Output Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- comment string
- Information about the command or commands to run.
- document
Hash string - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- document
Hash stringType - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- document
Version string The AWS 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 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"- notification
Config MaintenanceWindow Task Notification Config - Configurations for sending notifications about command status changes on a per-managed node basis.
- output
S3Bucket stringName - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- output
S3Key stringPrefix - The S3 bucket subfolder.
- parameters any
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- service
Role stringArn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- timeout
Seconds number - If this time is reached and the command hasn't already started running, it doesn't run.
- cloud_
watch_ Maintenanceoutput_ config Window Task Cloud Watch Output Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- comment str
- Information about the command or commands to run.
- document_
hash str - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- document_
hash_ strtype - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- document_
version str The AWS 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 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"- notification_
config MaintenanceWindow Task Notification Config - Configurations for sending notifications about command status changes on a per-managed node basis.
- output_
s3_ strbucket_ name - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- output_
s3_ strkey_ prefix - The S3 bucket subfolder.
- parameters Any
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- service_
role_ strarn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- timeout_
seconds int - If this time is reached and the command hasn't already started running, it doesn't run.
- cloud
Watch Property MapOutput Config - Configuration options for sending command output to Amazon CloudWatch Logs.
- comment String
- Information about the command or commands to run.
- document
Hash String - The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
- document
Hash StringType - The SHA-256 or SHA-1 hash type. SHA-1 hashes are deprecated.
- document
Version String The AWS 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 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"- notification
Config Property Map - Configurations for sending notifications about command status changes on a per-managed node basis.
- output
S3Bucket StringName - The name of the Amazon Simple Storage Service (Amazon S3) bucket.
- output
S3Key StringPrefix - The S3 bucket subfolder.
- parameters Any
The parameters for the
RUN_COMMANDtask execution.The supported parameters are the same as those for the
SendCommandAPI call. For more information, see SendCommand in the AWS Systems Manager API Reference .- service
Role StringArn The Amazon Resource Name (ARN) of the IAM service role for AWS 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 AWS Systems Manager User Guide .
- timeout
Seconds Number - If this time is reached and the command hasn't already started running, it doesn't run.
MaintenanceWindowTaskMaintenanceWindowStepFunctionsParameters
MaintenanceWindowTaskNotificationConfig
- Notification
Arn string - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- Notification
Events List<string> - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - Notification
Type string - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- Notification
Arn string - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- Notification
Events []string - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - Notification
Type string - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- notification
Arn String - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification
Events List<String> - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - notification
Type String - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- notification
Arn string - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification
Events string[] - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - notification
Type string - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- notification_
arn str - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification_
events Sequence[str] - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - notification_
type str - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
- notification
Arn String - An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification
Events List<String> - The different events that you can receive notifications for. These events include the following:
All(events),InProgress,Success,TimedOut,Cancelled,Failed. To learn more about these events, see Configuring Amazon SNS Notifications for AWS Systems Manager in the AWS Systems Manager User Guide . - notification
Type String - The notification type.
Command: Receive notification when the status of a command changes.Invocation: For commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes.
MaintenanceWindowTaskTarget
- Key string
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - Values List<string>
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
- Key string
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - Values []string
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
- key String
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - values List<String>
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
- key string
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - values string[]
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
- key str
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - values Sequence[str]
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
- key String
- User-defined criteria for sending commands that target instances that meet the criteria.
Keycan beInstanceIdsorWindowTargetIds. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide . - values List<String>
- User-defined criteria that maps to
Key. For example, if you specifyInstanceIds, you can specifyi-1234567890abcdef0,i-9876543210abcdef0to run a command on two EC2 instances. For more information about how to target instances within a maintenance window task, see About 'register-task-with-maintenance-window' Options and Values in the AWS Systems Manager User Guide .
MaintenanceWindowTaskTaskInvocationParameters
- Maintenance
Window Pulumi.Automation Parameters Aws Native. Ssm. Inputs. Maintenance Window Task Maintenance Window Automation Parameters - The parameters for an
AUTOMATIONtask type. - Maintenance
Window Pulumi.Lambda Parameters Aws Native. Ssm. Inputs. Maintenance Window Task Maintenance Window Lambda Parameters - The parameters for a
LAMBDAtask type. - Maintenance
Window Pulumi.Run Command Parameters Aws Native. Ssm. Inputs. Maintenance Window Task Maintenance Window Run Command Parameters - The parameters for a
RUN_COMMANDtask type. - Maintenance
Window Pulumi.Step Functions Parameters Aws Native. Ssm. Inputs. Maintenance Window Task Maintenance Window Step Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
- Maintenance
Window MaintenanceAutomation Parameters Window Task Maintenance Window Automation Parameters - The parameters for an
AUTOMATIONtask type. - Maintenance
Window MaintenanceLambda Parameters Window Task Maintenance Window Lambda Parameters - The parameters for a
LAMBDAtask type. - Maintenance
Window MaintenanceRun Command Parameters Window Task Maintenance Window Run Command Parameters - The parameters for a
RUN_COMMANDtask type. - Maintenance
Window MaintenanceStep Functions Parameters Window Task Maintenance Window Step Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
- maintenance
Window MaintenanceAutomation Parameters Window Task Maintenance Window Automation Parameters - The parameters for an
AUTOMATIONtask type. - maintenance
Window MaintenanceLambda Parameters Window Task Maintenance Window Lambda Parameters - The parameters for a
LAMBDAtask type. - maintenance
Window MaintenanceRun Command Parameters Window Task Maintenance Window Run Command Parameters - The parameters for a
RUN_COMMANDtask type. - maintenance
Window MaintenanceStep Functions Parameters Window Task Maintenance Window Step Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
- maintenance
Window MaintenanceAutomation Parameters Window Task Maintenance Window Automation Parameters - The parameters for an
AUTOMATIONtask type. - maintenance
Window MaintenanceLambda Parameters Window Task Maintenance Window Lambda Parameters - The parameters for a
LAMBDAtask type. - maintenance
Window MaintenanceRun Command Parameters Window Task Maintenance Window Run Command Parameters - The parameters for a
RUN_COMMANDtask type. - maintenance
Window MaintenanceStep Functions Parameters Window Task Maintenance Window Step Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
- maintenance_
window_ Maintenanceautomation_ parameters Window Task Maintenance Window Automation Parameters - The parameters for an
AUTOMATIONtask type. - maintenance_
window_ Maintenancelambda_ parameters Window Task Maintenance Window Lambda Parameters - The parameters for a
LAMBDAtask type. - maintenance_
window_ Maintenancerun_ command_ parameters Window Task Maintenance Window Run Command Parameters - The parameters for a
RUN_COMMANDtask type. - maintenance_
window_ Maintenancestep_ functions_ parameters Window Task Maintenance Window Step Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
- maintenance
Window Property MapAutomation Parameters - The parameters for an
AUTOMATIONtask type. - maintenance
Window Property MapLambda Parameters - The parameters for a
LAMBDAtask type. - maintenance
Window Property MapRun Command Parameters - The parameters for a
RUN_COMMANDtask type. - maintenance
Window Property MapStep Functions Parameters - The parameters for a
STEP_FUNCTIONStask type.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
