MaintenanceWindowTask
Provides an SSM Maintenance Window Task resource
Example Usage
Automation Tasks
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new Aws.Ssm.MaintenanceWindowTaskArgs
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
ServiceRoleArn = aws_iam_role.Example.Arn,
Targets =
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values =
{
aws_instance.Example.Id,
},
},
},
TaskArn = "AWS-RestartEC2Instance",
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
AutomationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs
{
DocumentVersion = "$LATEST",
Parameter =
{
{
{ "name", "InstanceId" },
{ "values",
{
aws_instance.Example.Id,
} },
},
},
},
},
TaskType = "AUTOMATION",
WindowId = aws_ssm_maintenance_window.Example.Id,
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewMaintenanceWindowTask(ctx, "example", &ssm.MaintenanceWindowTaskArgs{
MaxConcurrency: pulumi.String("2"),
MaxErrors: pulumi.String("1"),
Priority: pulumi.Int(1),
ServiceRoleArn: pulumi.String(aws_iam_role.Example.Arn),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String(aws_instance.Example.Id),
},
},
},
TaskArn: pulumi.String("AWS-RestartEC2Instance"),
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
AutomationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs{
DocumentVersion: pulumi.String(fmt.Sprintf("%v%v", "$", "LATEST")),
Parameter: pulumi.MapArray{
pulumi.Map{
"name": pulumi.String("InstanceId"),
"values": pulumi.StringArray{
pulumi.String(aws_instance.Example.Id),
},
},
},
},
},
TaskType: pulumi.String("AUTOMATION"),
WindowId: pulumi.String(aws_ssm_maintenance_window.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency=2,
max_errors=1,
priority=1,
service_role_arn=aws_iam_role["example"]["arn"],
targets=[{
"key": "InstanceIds",
"values": [aws_instance["example"]["id"]],
}],
task_arn="AWS-RestartEC2Instance",
task_invocation_parameters={
"automationParameters": {
"document_version": "$LATEST",
"parameter": [{
"name": "InstanceId",
"values": [aws_instance["example"]["id"]],
}],
},
},
task_type="AUTOMATION",
window_id=aws_ssm_maintenance_window["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ssm.MaintenanceWindowTask("example", {
maxConcurrency: "2",
maxErrors: "1",
priority: 1,
serviceRoleArn: aws_iam_role_example.arn,
targets: [{
key: "InstanceIds",
values: [aws_instance_example.id],
}],
taskArn: "AWS-RestartEC2Instance",
taskInvocationParameters: {
automationParameters: {
documentVersion: "$LATEST",
parameters: [{
name: "InstanceId",
values: [aws_instance_example.id],
}],
},
},
taskType: "AUTOMATION",
windowId: aws_ssm_maintenance_window_example.id,
});Lambda Tasks
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ssm.MaintenanceWindowTask("example", {
maxConcurrency: "2",
maxErrors: "1",
priority: 1,
serviceRoleArn: aws_iam_role_example.arn,
targets: [{
key: "InstanceIds",
values: [aws_instance_example.id],
}],
taskArn: aws_lambda_function_example.arn,
taskInvocationParameters: {
lambdaParameters: {
clientContext: Buffer.from("{\"key1\":\"value1\"}").toString("base64"),
payload: "{\"key1\":\"value1\"}",
},
},
taskType: "LAMBDA",
windowId: aws_ssm_maintenance_window_example.id,
});Run Command Tasks
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new Aws.Ssm.MaintenanceWindowTaskArgs
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
ServiceRoleArn = aws_iam_role.Example.Arn,
Targets =
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values =
{
aws_instance.Example.Id,
},
},
},
TaskArn = "AWS-RunShellScript",
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
RunCommandParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs
{
NotificationConfig = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs
{
NotificationArn = aws_sns_topic.Example.Arn,
NotificationEvents =
{
"All",
},
NotificationType = "Command",
},
OutputS3Bucket = aws_s3_bucket.Example.Bucket,
OutputS3KeyPrefix = "output",
Parameter =
{
{
{ "name", "commands" },
{ "values",
{
"date",
} },
},
},
ServiceRoleArn = aws_iam_role.Example.Arn,
TimeoutSeconds = 600,
},
},
TaskType = "RUN_COMMAND",
WindowId = aws_ssm_maintenance_window.Example.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewMaintenanceWindowTask(ctx, "example", &ssm.MaintenanceWindowTaskArgs{
MaxConcurrency: pulumi.String("2"),
MaxErrors: pulumi.String("1"),
Priority: pulumi.Int(1),
ServiceRoleArn: pulumi.String(aws_iam_role.Example.Arn),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String(aws_instance.Example.Id),
},
},
},
TaskArn: pulumi.String("AWS-RunShellScript"),
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
RunCommandParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs{
NotificationConfig: &ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs{
NotificationArn: pulumi.String(aws_sns_topic.Example.Arn),
NotificationEvents: pulumi.StringArray{
pulumi.String("All"),
},
NotificationType: pulumi.String("Command"),
},
OutputS3Bucket: pulumi.String(aws_s3_bucket.Example.Bucket),
OutputS3KeyPrefix: pulumi.String("output"),
Parameter: pulumi.MapArray{
pulumi.Map{
"name": pulumi.String("commands"),
"values": pulumi.StringArray{
pulumi.String("date"),
},
},
},
ServiceRoleArn: pulumi.String(aws_iam_role.Example.Arn),
TimeoutSeconds: pulumi.Int(600),
},
},
TaskType: pulumi.String("RUN_COMMAND"),
WindowId: pulumi.String(aws_ssm_maintenance_window.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency=2,
max_errors=1,
priority=1,
service_role_arn=aws_iam_role["example"]["arn"],
targets=[{
"key": "InstanceIds",
"values": [aws_instance["example"]["id"]],
}],
task_arn="AWS-RunShellScript",
task_invocation_parameters={
"runCommandParameters": {
"notificationConfig": {
"notificationArn": aws_sns_topic["example"]["arn"],
"notificationEvents": ["All"],
"notification_type": "Command",
},
"outputS3Bucket": aws_s3_bucket["example"]["bucket"],
"outputS3KeyPrefix": "output",
"parameter": [{
"name": "commands",
"values": ["date"],
}],
"service_role_arn": aws_iam_role["example"]["arn"],
"timeoutSeconds": 600,
},
},
task_type="RUN_COMMAND",
window_id=aws_ssm_maintenance_window["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ssm.MaintenanceWindowTask("example", {
maxConcurrency: "2",
maxErrors: "1",
priority: 1,
serviceRoleArn: aws_iam_role_example.arn,
targets: [{
key: "InstanceIds",
values: [aws_instance_example.id],
}],
taskArn: "AWS-RunShellScript",
taskInvocationParameters: {
runCommandParameters: {
notificationConfig: {
notificationArn: aws_sns_topic_example.arn,
notificationEvents: ["All"],
notificationType: "Command",
},
outputS3Bucket: aws_s3_bucket_example.bucket,
outputS3KeyPrefix: "output",
parameters: [{
name: "commands",
values: ["date"],
}],
serviceRoleArn: aws_iam_role_example.arn,
timeoutSeconds: 600,
},
},
taskType: "RUN_COMMAND",
windowId: aws_ssm_maintenance_window_example.id,
});Step Function Tasks
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new Aws.Ssm.MaintenanceWindowTaskArgs
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
ServiceRoleArn = aws_iam_role.Example.Arn,
Targets =
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values =
{
aws_instance.Example.Id,
},
},
},
TaskArn = aws_sfn_activity.Example.Id,
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
StepFunctionsParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs
{
Input = "{\"key1\":\"value1\"}",
Name = "example",
},
},
TaskType = "STEP_FUNCTIONS",
WindowId = aws_ssm_maintenance_window.Example.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewMaintenanceWindowTask(ctx, "example", &ssm.MaintenanceWindowTaskArgs{
MaxConcurrency: pulumi.String("2"),
MaxErrors: pulumi.String("1"),
Priority: pulumi.Int(1),
ServiceRoleArn: pulumi.String(aws_iam_role.Example.Arn),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String(aws_instance.Example.Id),
},
},
},
TaskArn: pulumi.String(aws_sfn_activity.Example.Id),
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
StepFunctionsParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs{
Input: pulumi.String("{\"key1\":\"value1\"}"),
Name: pulumi.String("example"),
},
},
TaskType: pulumi.String("STEP_FUNCTIONS"),
WindowId: pulumi.String(aws_ssm_maintenance_window.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency=2,
max_errors=1,
priority=1,
service_role_arn=aws_iam_role["example"]["arn"],
targets=[{
"key": "InstanceIds",
"values": [aws_instance["example"]["id"]],
}],
task_arn=aws_sfn_activity["example"]["id"],
task_invocation_parameters={
"stepFunctionsParameters": {
"input": "{\"key1\":\"value1\"}",
"name": "example",
},
},
task_type="STEP_FUNCTIONS",
window_id=aws_ssm_maintenance_window["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ssm.MaintenanceWindowTask("example", {
maxConcurrency: "2",
maxErrors: "1",
priority: 1,
serviceRoleArn: aws_iam_role_example.arn,
targets: [{
key: "InstanceIds",
values: [aws_instance_example.id],
}],
taskArn: aws_sfn_activity_example.id,
taskInvocationParameters: {
stepFunctionsParameters: {
input: "{\"key1\":\"value1\"}",
name: "example",
},
},
taskType: "STEP_FUNCTIONS",
windowId: aws_ssm_maintenance_window_example.id,
});Create a MaintenanceWindowTask Resource
new MaintenanceWindowTask(name: string, args: MaintenanceWindowTaskArgs, opts?: CustomResourceOptions);def MaintenanceWindowTask(resource_name, opts=None, description=None, logging_info=None, max_concurrency=None, max_errors=None, name=None, priority=None, service_role_arn=None, targets=None, task_arn=None, task_invocation_parameters=None, task_parameters=None, task_type=None, window_id=None, __props__=None);func NewMaintenanceWindowTask(ctx *Context, name string, args MaintenanceWindowTaskArgs, opts ...ResourceOption) (*MaintenanceWindowTask, error)public MaintenanceWindowTask(string name, MaintenanceWindowTaskArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args MaintenanceWindowTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MaintenanceWindowTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MaintenanceWindowTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
MaintenanceWindowTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The MaintenanceWindowTask resource accepts the following input properties:
- 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.
- Service
Role stringArn The role that should be assumed when executing the task.
- Targets
List<Maintenance
Window Task Target Args> The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- Task
Arn string The ARN of the task to execute.
- Task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- Window
Id string The Id of the maintenance window to register the task with.
- Description string
The description of the maintenance window task.
- Logging
Info MaintenanceWindow Task Logging Info Args A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- Name string
The name of the maintenance window task.
- Priority int
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- Task
Invocation MaintenanceParameters Window Task Task Invocation Parameters Args The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- Task
Parameters List<MaintenanceWindow Task Task Parameter Args> A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.
- 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.
- Service
Role stringArn The role that should be assumed when executing the task.
- Targets
[]Maintenance
Window Task Target The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- Task
Arn string The ARN of the task to execute.
- Task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- Window
Id string The Id of the maintenance window to register the task with.
- Description string
The description of the maintenance window task.
- Logging
Info MaintenanceWindow Task Logging Info A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- Name string
The name of the maintenance window task.
- Priority int
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- Task
Invocation MaintenanceParameters Window Task Task Invocation Parameters The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- Task
Parameters []MaintenanceWindow Task Task Parameter A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.
- 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.
- service
Role stringArn The role that should be assumed when executing the task.
- targets
Maintenance
Window Task Target[] The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- task
Arn string The ARN of the task to execute.
- task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- window
Id string The Id of the maintenance window to register the task with.
- description string
The description of the maintenance window task.
- logging
Info MaintenanceWindow Task Logging Info A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- name string
The name of the maintenance window task.
- priority number
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- task
Invocation MaintenanceParameters Window Task Task Invocation Parameters The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- task
Parameters MaintenanceWindow Task Task Parameter[] A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.
- 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.
- service_
role_ strarn The role that should be assumed when executing the task.
- targets
List[Maintenance
Window Task Target] The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- task_
arn str The ARN of the task to execute.
- task_
type str The type of task being registered. The only allowed value is
RUN_COMMAND.- window_
id str The Id of the maintenance window to register the task with.
- description str
The description of the maintenance window task.
- logging_
info Dict[MaintenanceWindow Task Logging Info] A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- name str
The name of the maintenance window task.
- priority float
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- task_
invocation_ Dict[Maintenanceparameters Window Task Task Invocation Parameters] The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- task_
parameters List[MaintenanceWindow Task Task Parameter] A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceWindowTask resource produces the following output properties:
Look up an Existing MaintenanceWindowTask Resource
Get an existing MaintenanceWindowTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MaintenanceWindowTaskState, opts?: CustomResourceOptions): MaintenanceWindowTaskstatic get(resource_name, id, opts=None, description=None, logging_info=None, max_concurrency=None, max_errors=None, name=None, priority=None, service_role_arn=None, targets=None, task_arn=None, task_invocation_parameters=None, task_parameters=None, task_type=None, window_id=None, __props__=None);func GetMaintenanceWindowTask(ctx *Context, name string, id IDInput, state *MaintenanceWindowTaskState, opts ...ResourceOption) (*MaintenanceWindowTask, error)public static MaintenanceWindowTask Get(string name, Input<string> id, MaintenanceWindowTaskState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Description string
The description of the maintenance window task.
- Logging
Info MaintenanceWindow Task Logging Info Args A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- 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 name of the maintenance window task.
- Priority int
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- Service
Role stringArn The role that should be assumed when executing the task.
- Targets
List<Maintenance
Window Task Target Args> The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- Task
Arn string The ARN of the task to execute.
- Task
Invocation MaintenanceParameters Window Task Task Invocation Parameters Args The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- Task
Parameters List<MaintenanceWindow Task Task Parameter Args> A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.- Task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- Window
Id string The Id of the maintenance window to register the task with.
- Description string
The description of the maintenance window task.
- Logging
Info MaintenanceWindow Task Logging Info A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- 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 name of the maintenance window task.
- Priority int
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- Service
Role stringArn The role that should be assumed when executing the task.
- Targets
[]Maintenance
Window Task Target The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- Task
Arn string The ARN of the task to execute.
- Task
Invocation MaintenanceParameters Window Task Task Invocation Parameters The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- Task
Parameters []MaintenanceWindow Task Task Parameter A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.- Task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- Window
Id string The Id of the maintenance window to register the task with.
- description string
The description of the maintenance window task.
- logging
Info MaintenanceWindow Task Logging Info A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- 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 name of the maintenance window task.
- priority number
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- service
Role stringArn The role that should be assumed when executing the task.
- targets
Maintenance
Window Task Target[] The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- task
Arn string The ARN of the task to execute.
- task
Invocation MaintenanceParameters Window Task Task Invocation Parameters The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- task
Parameters MaintenanceWindow Task Task Parameter[] A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.- task
Type string The type of task being registered. The only allowed value is
RUN_COMMAND.- window
Id string The Id of the maintenance window to register the task with.
- description str
The description of the maintenance window task.
- logging_
info Dict[MaintenanceWindow Task Logging Info] A structure containing information about an Amazon S3 bucket to write instance-level logs to. Use
task_invocation_parametersconfiguration blockrun_command_parametersconfiguration blockoutput_s3_*arguments instead. Conflicts withtask_invocation_parameters. Documented below.- 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 name of the maintenance window task.
- priority float
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
- service_
role_ strarn The role that should be assumed when executing the task.
- targets
List[Maintenance
Window Task Target] The targets (either instances or window target ids). Instances are specified using Key=InstanceIds,Values=instanceid1,instanceid2. Window target ids are specified using Key=WindowTargetIds,Values=window target id1, window target id2.
- task_
arn str The ARN of the task to execute.
- task_
invocation_ Dict[Maintenanceparameters Window Task Task Invocation Parameters] The parameters for task execution. This argument is conflict with
task_parametersandlogging_info.- task_
parameters List[MaintenanceWindow Task Task Parameter] A structure containing information about parameters required by the particular
task_arn. Useparameterconfiguration blocks under thetask_invocation_parametersconfiguration block instead. Conflicts withtask_invocation_parameters. Documented below.- task_
type str The type of task being registered. The only allowed value is
RUN_COMMAND.- window_
id str The Id of the maintenance window to register the task with.
Supporting Types
MaintenanceWindowTaskLoggingInfo
MaintenanceWindowTaskTarget
MaintenanceWindowTaskTaskInvocationParameters
- Automation
Parameters MaintenanceWindow Task Task Invocation Parameters Automation Parameters Args The parameters for an AUTOMATION task type. Documented below.
- Lambda
Parameters MaintenanceWindow Task Task Invocation Parameters Lambda Parameters Args The parameters for a LAMBDA task type. Documented below.
- Run
Command MaintenanceParameters Window Task Task Invocation Parameters Run Command Parameters Args The parameters for a RUN_COMMAND task type. Documented below.
- Step
Functions MaintenanceParameters Window Task Task Invocation Parameters Step Functions Parameters Args The parameters for a STEP_FUNCTIONS task type. Documented below.
- Automation
Parameters MaintenanceWindow Task Task Invocation Parameters Automation Parameters The parameters for an AUTOMATION task type. Documented below.
- Lambda
Parameters MaintenanceWindow Task Task Invocation Parameters Lambda Parameters The parameters for a LAMBDA task type. Documented below.
- Run
Command MaintenanceParameters Window Task Task Invocation Parameters Run Command Parameters The parameters for a RUN_COMMAND task type. Documented below.
- Step
Functions MaintenanceParameters Window Task Task Invocation Parameters Step Functions Parameters The parameters for a STEP_FUNCTIONS task type. Documented below.
- automation
Parameters MaintenanceWindow Task Task Invocation Parameters Automation Parameters The parameters for an AUTOMATION task type. Documented below.
- lambda
Parameters MaintenanceWindow Task Task Invocation Parameters Lambda Parameters The parameters for a LAMBDA task type. Documented below.
- run
Command MaintenanceParameters Window Task Task Invocation Parameters Run Command Parameters The parameters for a RUN_COMMAND task type. Documented below.
- step
Functions MaintenanceParameters Window Task Task Invocation Parameters Step Functions Parameters The parameters for a STEP_FUNCTIONS task type. Documented below.
- automation
Parameters Dict[MaintenanceWindow Task Task Invocation Parameters Automation Parameters] The parameters for an AUTOMATION task type. Documented below.
- lambda
Parameters Dict[MaintenanceWindow Task Task Invocation Parameters Lambda Parameters] The parameters for a LAMBDA task type. Documented below.
- run
Command Dict[MaintenanceParameters Window Task Task Invocation Parameters Run Command Parameters] The parameters for a RUN_COMMAND task type. Documented below.
- step
Functions Dict[MaintenanceParameters Window Task Task Invocation Parameters Step Functions Parameters] The parameters for a STEP_FUNCTIONS task type. Documented below.
MaintenanceWindowTaskTaskInvocationParametersAutomationParameters
- Document
Version string The version of an Automation document to use during task execution.
- Parameters
List<Maintenance
Window Task Task Invocation Parameters Automation Parameters Parameter Args> The parameters for the RUN_COMMAND task execution. Documented below.
- Document
Version string The version of an Automation document to use during task execution.
- Parameters
[]Maintenance
Window Task Task Invocation Parameters Automation Parameters Parameter The parameters for the RUN_COMMAND task execution. Documented below.
- document
Version string The version of an Automation document to use during task execution.
- parameters
Maintenance
Window Task Task Invocation Parameters Automation Parameters Parameter[] The parameters for the RUN_COMMAND task execution. Documented below.
- document_
version str The version of an Automation document to use during task execution.
- parameters
List[Maintenance
Window Task Task Invocation Parameters Automation Parameters Parameter] The parameters for the RUN_COMMAND task execution. Documented below.
MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter
- Name string
The parameter name.
- Values List<string>
The array of strings.
MaintenanceWindowTaskTaskInvocationParametersLambdaParameters
MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters
- Comment string
Information about the command(s) to execute.
- 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 SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values:
Sha256andSha1- Notification
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Notification Config Args Configurations for sending notifications about command status changes on a per-instance basis. Documented below.
- Output
S3Bucket string The name of the Amazon S3 bucket.
- Output
S3Key stringPrefix The Amazon S3 bucket subfolder.
- Parameters
List<Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter Args> The parameters for the RUN_COMMAND task execution. Documented below.
- Service
Role stringArn The IAM service role to assume during task execution.
- Timeout
Seconds int If this time is reached and the command has not already started executing, it doesn’t run.
- Comment string
Information about the command(s) to execute.
- 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 SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values:
Sha256andSha1- Notification
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Notification Config Configurations for sending notifications about command status changes on a per-instance basis. Documented below.
- Output
S3Bucket string The name of the Amazon S3 bucket.
- Output
S3Key stringPrefix The Amazon S3 bucket subfolder.
- Parameters
[]Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter The parameters for the RUN_COMMAND task execution. Documented below.
- Service
Role stringArn The IAM service role to assume during task execution.
- Timeout
Seconds int If this time is reached and the command has not already started executing, it doesn’t run.
- comment string
Information about the command(s) to execute.
- 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 SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values:
Sha256andSha1- notification
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Notification Config Configurations for sending notifications about command status changes on a per-instance basis. Documented below.
- output
S3Bucket string The name of the Amazon S3 bucket.
- output
S3Key stringPrefix The Amazon S3 bucket subfolder.
- parameters
Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter[] The parameters for the RUN_COMMAND task execution. Documented below.
- service
Role stringArn The IAM service role to assume during task execution.
- timeout
Seconds number If this time is reached and the command has not already started executing, it doesn’t run.
- comment str
Information about the command(s) to execute.
- 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 SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values:
Sha256andSha1- notification
Config Dict[MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Notification Config] Configurations for sending notifications about command status changes on a per-instance basis. Documented below.
- output
S3Bucket str The name of the Amazon S3 bucket.
- output
S3Key strPrefix The Amazon S3 bucket subfolder.
- parameters
List[Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter] The parameters for the RUN_COMMAND task execution. Documented below.
- service_
role_ strarn The IAM service role to assume during task execution.
- timeout
Seconds float If this time is reached and the command has not already started executing, it doesn’t run.
MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig
- Notification
Arn string An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
- Notification
Events List<string> The different events for which you can receive notifications. Valid values:
All,InProgress,Success,TimedOut,Cancelled, andFailed- Notification
Type string When specified with
Command, receive notification when the status of a command changes. When specified withInvocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values:CommandandInvocation
- Notification
Arn string An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
- Notification
Events []string The different events for which you can receive notifications. Valid values:
All,InProgress,Success,TimedOut,Cancelled, andFailed- Notification
Type string When specified with
Command, receive notification when the status of a command changes. When specified withInvocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values:CommandandInvocation
- notification
Arn string An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification
Events string[] The different events for which you can receive notifications. Valid values:
All,InProgress,Success,TimedOut,Cancelled, andFailed- notification
Type string When specified with
Command, receive notification when the status of a command changes. When specified withInvocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values:CommandandInvocation
- notification
Arn str An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic.
- notification
Events List[str] The different events for which you can receive notifications. Valid values:
All,InProgress,Success,TimedOut,Cancelled, andFailed- notification_
type str When specified with
Command, receive notification when the status of a command changes. When specified withInvocation, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values:CommandandInvocation
MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter
- Name string
The parameter name.
- Values List<string>
The array of strings.
MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters
MaintenanceWindowTaskTaskParameter
- Name string
The name of the maintenance window task.
- Values List<string>
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.