Try AWS Native preview for resources not in the classic version.
aws.ssm.MaintenanceWindowTask
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an SSM Maintenance Window Task resource
Example Usage
Automation Tasks
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new()
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
TaskArn = "AWS-RestartEC2Instance",
TaskType = "AUTOMATION",
WindowId = aws_ssm_maintenance_window.Example.Id,
Targets = new[]
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
AutomationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs
{
DocumentVersion = "$LATEST",
Parameters = new[]
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterArgs
{
Name = "InstanceId",
Values = new[]
{
aws_instance.Example.Id,
},
},
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/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),
TaskArn: pulumi.String("AWS-RestartEC2Instance"),
TaskType: pulumi.String("AUTOMATION"),
WindowId: pulumi.Any(aws_ssm_maintenance_window.Example.Id),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
AutomationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs{
DocumentVersion: pulumi.String("$LATEST"),
Parameters: ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterArray{
&ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterArgs{
Name: pulumi.String("InstanceId"),
Values: pulumi.StringArray{
aws_instance.Example.Id,
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.MaintenanceWindowTask;
import com.pulumi.aws.ssm.MaintenanceWindowTaskArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTargetArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MaintenanceWindowTask("example", MaintenanceWindowTaskArgs.builder()
.maxConcurrency(2)
.maxErrors(1)
.priority(1)
.taskArn("AWS-RestartEC2Instance")
.taskType("AUTOMATION")
.windowId(aws_ssm_maintenance_window.example().id())
.targets(MaintenanceWindowTaskTargetArgs.builder()
.key("InstanceIds")
.values(aws_instance.example().id())
.build())
.taskInvocationParameters(MaintenanceWindowTaskTaskInvocationParametersArgs.builder()
.automationParameters(MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs.builder()
.documentVersion("$LATEST")
.parameters(MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterArgs.builder()
.name("InstanceId")
.values(aws_instance.example().id())
.build())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency="2",
max_errors="1",
priority=1,
task_arn="AWS-RestartEC2Instance",
task_type="AUTOMATION",
window_id=aws_ssm_maintenance_window["example"]["id"],
targets=[aws.ssm.MaintenanceWindowTaskTargetArgs(
key="InstanceIds",
values=[aws_instance["example"]["id"]],
)],
task_invocation_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersArgs(
automation_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersArgs(
document_version="$LATEST",
parameters=[aws.ssm.MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameterArgs(
name="InstanceId",
values=[aws_instance["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,
taskArn: "AWS-RestartEC2Instance",
taskType: "AUTOMATION",
windowId: aws_ssm_maintenance_window.example.id,
targets: [{
key: "InstanceIds",
values: [aws_instance.example.id],
}],
taskInvocationParameters: {
automationParameters: {
documentVersion: "$LATEST",
parameters: [{
name: "InstanceId",
values: [aws_instance.example.id],
}],
},
},
});
resources:
example:
type: aws:ssm:MaintenanceWindowTask
properties:
maxConcurrency: 2
maxErrors: 1
priority: 1
taskArn: AWS-RestartEC2Instance
taskType: AUTOMATION
windowId: ${aws_ssm_maintenance_window.example.id}
targets:
- key: InstanceIds
values:
- ${aws_instance.example.id}
taskInvocationParameters:
automationParameters:
documentVersion: $LATEST
parameters:
- name: InstanceId
values:
- ${aws_instance.example.id}
Run Command Tasks
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new()
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
TaskArn = "AWS-RunShellScript",
TaskType = "RUN_COMMAND",
WindowId = aws_ssm_maintenance_window.Example.Id,
Targets = new[]
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
RunCommandParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs
{
OutputS3Bucket = aws_s3_bucket.Example.Id,
OutputS3KeyPrefix = "output",
ServiceRoleArn = aws_iam_role.Example.Arn,
TimeoutSeconds = 600,
NotificationConfig = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs
{
NotificationArn = aws_sns_topic.Example.Arn,
NotificationEvents = new[]
{
"All",
},
NotificationType = "Command",
},
Parameters = new[]
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterArgs
{
Name = "commands",
Values = new[]
{
"date",
},
},
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/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),
TaskArn: pulumi.String("AWS-RunShellScript"),
TaskType: pulumi.String("RUN_COMMAND"),
WindowId: pulumi.Any(aws_ssm_maintenance_window.Example.Id),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
RunCommandParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs{
OutputS3Bucket: pulumi.Any(aws_s3_bucket.Example.Id),
OutputS3KeyPrefix: pulumi.String("output"),
ServiceRoleArn: pulumi.Any(aws_iam_role.Example.Arn),
TimeoutSeconds: pulumi.Int(600),
NotificationConfig: &ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs{
NotificationArn: pulumi.Any(aws_sns_topic.Example.Arn),
NotificationEvents: pulumi.StringArray{
pulumi.String("All"),
},
NotificationType: pulumi.String("Command"),
},
Parameters: ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterArray{
&ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterArgs{
Name: pulumi.String("commands"),
Values: pulumi.StringArray{
pulumi.String("date"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.MaintenanceWindowTask;
import com.pulumi.aws.ssm.MaintenanceWindowTaskArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTargetArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MaintenanceWindowTask("example", MaintenanceWindowTaskArgs.builder()
.maxConcurrency(2)
.maxErrors(1)
.priority(1)
.taskArn("AWS-RunShellScript")
.taskType("RUN_COMMAND")
.windowId(aws_ssm_maintenance_window.example().id())
.targets(MaintenanceWindowTaskTargetArgs.builder()
.key("InstanceIds")
.values(aws_instance.example().id())
.build())
.taskInvocationParameters(MaintenanceWindowTaskTaskInvocationParametersArgs.builder()
.runCommandParameters(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs.builder()
.outputS3Bucket(aws_s3_bucket.example().id())
.outputS3KeyPrefix("output")
.serviceRoleArn(aws_iam_role.example().arn())
.timeoutSeconds(600)
.notificationConfig(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs.builder()
.notificationArn(aws_sns_topic.example().arn())
.notificationEvents("All")
.notificationType("Command")
.build())
.parameters(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterArgs.builder()
.name("commands")
.values("date")
.build())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency="2",
max_errors="1",
priority=1,
task_arn="AWS-RunShellScript",
task_type="RUN_COMMAND",
window_id=aws_ssm_maintenance_window["example"]["id"],
targets=[aws.ssm.MaintenanceWindowTaskTargetArgs(
key="InstanceIds",
values=[aws_instance["example"]["id"]],
)],
task_invocation_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersArgs(
run_command_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersArgs(
output_s3_bucket=aws_s3_bucket["example"]["id"],
output_s3_key_prefix="output",
service_role_arn=aws_iam_role["example"]["arn"],
timeout_seconds=600,
notification_config=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfigArgs(
notification_arn=aws_sns_topic["example"]["arn"],
notification_events=["All"],
notification_type="Command",
),
parameters=[aws.ssm.MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameterArgs(
name="commands",
values=["date"],
)],
),
))
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,
taskArn: "AWS-RunShellScript",
taskType: "RUN_COMMAND",
windowId: aws_ssm_maintenance_window.example.id,
targets: [{
key: "InstanceIds",
values: [aws_instance.example.id],
}],
taskInvocationParameters: {
runCommandParameters: {
outputS3Bucket: aws_s3_bucket.example.id,
outputS3KeyPrefix: "output",
serviceRoleArn: aws_iam_role.example.arn,
timeoutSeconds: 600,
notificationConfig: {
notificationArn: aws_sns_topic.example.arn,
notificationEvents: ["All"],
notificationType: "Command",
},
parameters: [{
name: "commands",
values: ["date"],
}],
},
},
});
resources:
example:
type: aws:ssm:MaintenanceWindowTask
properties:
maxConcurrency: 2
maxErrors: 1
priority: 1
taskArn: AWS-RunShellScript
taskType: RUN_COMMAND
windowId: ${aws_ssm_maintenance_window.example.id}
targets:
- key: InstanceIds
values:
- ${aws_instance.example.id}
taskInvocationParameters:
runCommandParameters:
outputS3Bucket: ${aws_s3_bucket.example.id}
outputS3KeyPrefix: output
serviceRoleArn: ${aws_iam_role.example.arn}
timeoutSeconds: 600
notificationConfig:
notificationArn: ${aws_sns_topic.example.arn}
notificationEvents:
- All
notificationType: Command
parameters:
- name: commands
values:
- date
Step Function Tasks
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ssm.MaintenanceWindowTask("example", new()
{
MaxConcurrency = "2",
MaxErrors = "1",
Priority = 1,
TaskArn = aws_sfn_activity.Example.Id,
TaskType = "STEP_FUNCTIONS",
WindowId = aws_ssm_maintenance_window.Example.Id,
Targets = new[]
{
new Aws.Ssm.Inputs.MaintenanceWindowTaskTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersArgs
{
StepFunctionsParameters = new Aws.Ssm.Inputs.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs
{
Input = "{\"key1\":\"value1\"}",
Name = "example",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/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),
TaskArn: pulumi.Any(aws_sfn_activity.Example.Id),
TaskType: pulumi.String("STEP_FUNCTIONS"),
WindowId: pulumi.Any(aws_ssm_maintenance_window.Example.Id),
Targets: ssm.MaintenanceWindowTaskTargetArray{
&ssm.MaintenanceWindowTaskTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
aws_instance.Example.Id,
},
},
},
TaskInvocationParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersArgs{
StepFunctionsParameters: &ssm.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs{
Input: pulumi.String("{\"key1\":\"value1\"}"),
Name: pulumi.String("example"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.MaintenanceWindowTask;
import com.pulumi.aws.ssm.MaintenanceWindowTaskArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTargetArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersArgs;
import com.pulumi.aws.ssm.inputs.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MaintenanceWindowTask("example", MaintenanceWindowTaskArgs.builder()
.maxConcurrency(2)
.maxErrors(1)
.priority(1)
.taskArn(aws_sfn_activity.example().id())
.taskType("STEP_FUNCTIONS")
.windowId(aws_ssm_maintenance_window.example().id())
.targets(MaintenanceWindowTaskTargetArgs.builder()
.key("InstanceIds")
.values(aws_instance.example().id())
.build())
.taskInvocationParameters(MaintenanceWindowTaskTaskInvocationParametersArgs.builder()
.stepFunctionsParameters(MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs.builder()
.input("{\"key1\":\"value1\"}")
.name("example")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency="2",
max_errors="1",
priority=1,
task_arn=aws_sfn_activity["example"]["id"],
task_type="STEP_FUNCTIONS",
window_id=aws_ssm_maintenance_window["example"]["id"],
targets=[aws.ssm.MaintenanceWindowTaskTargetArgs(
key="InstanceIds",
values=[aws_instance["example"]["id"]],
)],
task_invocation_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersArgs(
step_functions_parameters=aws.ssm.MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParametersArgs(
input="{\"key1\":\"value1\"}",
name="example",
),
))
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,
taskArn: aws_sfn_activity.example.id,
taskType: "STEP_FUNCTIONS",
windowId: aws_ssm_maintenance_window.example.id,
targets: [{
key: "InstanceIds",
values: [aws_instance.example.id],
}],
taskInvocationParameters: {
stepFunctionsParameters: {
input: "{\"key1\":\"value1\"}",
name: "example",
},
},
});
resources:
example:
type: aws:ssm:MaintenanceWindowTask
properties:
maxConcurrency: 2
maxErrors: 1
priority: 1
taskArn: ${aws_sfn_activity.example.id}
taskType: STEP_FUNCTIONS
windowId: ${aws_ssm_maintenance_window.example.id}
targets:
- key: InstanceIds
values:
- ${aws_instance.example.id}
taskInvocationParameters:
stepFunctionsParameters:
input: '{"key1":"value1"}'
name: example
Create MaintenanceWindowTask Resource
new MaintenanceWindowTask(name: string, args: MaintenanceWindowTaskArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceWindowTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
cutoff_behavior: Optional[str] = None,
description: Optional[str] = None,
max_concurrency: Optional[str] = None,
max_errors: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
service_role_arn: Optional[str] = None,
targets: Optional[Sequence[MaintenanceWindowTaskTargetArgs]] = None,
task_arn: Optional[str] = None,
task_invocation_parameters: Optional[MaintenanceWindowTaskTaskInvocationParametersArgs] = None,
task_type: Optional[str] = None,
window_id: Optional[str] = None)
@overload
def MaintenanceWindowTask(resource_name: str,
args: MaintenanceWindowTaskArgs,
opts: Optional[ResourceOptions] = None)
func NewMaintenanceWindowTask(ctx *Context, name string, args MaintenanceWindowTaskArgs, opts ...ResourceOption) (*MaintenanceWindowTask, error)
public MaintenanceWindowTask(string name, MaintenanceWindowTaskArgs args, CustomResourceOptions? opts = null)
public MaintenanceWindowTask(String name, MaintenanceWindowTaskArgs args)
public MaintenanceWindowTask(String name, MaintenanceWindowTaskArgs args, CustomResourceOptions options)
type: aws:ssm:MaintenanceWindowTask
properties: # The arguments to resource properties.
options: # 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.
- resource_name str
- The unique name of the resource.
- args MaintenanceWindowTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args MaintenanceWindowTaskArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The MaintenanceWindowTask resource accepts the following input properties:
- Task
Arn string The ARN of the task to execute.
- Task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- Window
Id string The Id of the maintenance window to register the task with.
- Cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- Description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- Targets
List<Pulumi.
Aws. Ssm. Inputs. 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
Invocation Pulumi.Parameters Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- Task
Arn string The ARN of the task to execute.
- Task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- Window
Id string The Id of the maintenance window to register the task with.
- Cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- Description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- Targets
[]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
Invocation MaintenanceParameters Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- task
Arn String The ARN of the task to execute.
- task
Type String The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id String The Id of the maintenance window to register the task with.
- cutoff
Behavior String Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description String
The description of the maintenance window task.
- 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 Integer
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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- 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
Invocation MaintenanceParameters Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- task
Arn string The ARN of the task to execute.
- task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id string The Id of the maintenance window to register the task with.
- cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets
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
Invocation MaintenanceParameters Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- task_
arn str The ARN of the task to execute.
- task_
type str The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window_
id str The Id of the maintenance window to register the task with.
- cutoff_
behavior str Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description str
The description of the maintenance window task.
- 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 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_ strarn The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets
Sequence[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_
invocation_ Maintenanceparameters Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- task
Arn String The ARN of the task to execute.
- task
Type String The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id String The Id of the maintenance window to register the task with.
- cutoff
Behavior String Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description String
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets List<Property Map>
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
Invocation Property MapParameters Configuration block with parameters for task execution.
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceWindowTask resource produces the following output properties:
- Arn string
The ARN of the maintenance window task.
- Id string
The provider-assigned unique ID for this managed resource.
- Window
Task stringId The ID of the maintenance window task.
- Arn string
The ARN of the maintenance window task.
- Id string
The provider-assigned unique ID for this managed resource.
- Window
Task stringId The ID of the maintenance window task.
- arn String
The ARN of the maintenance window task.
- id String
The provider-assigned unique ID for this managed resource.
- window
Task StringId The ID of the maintenance window task.
- arn string
The ARN of the maintenance window task.
- id string
The provider-assigned unique ID for this managed resource.
- window
Task stringId The ID of the maintenance window task.
- arn str
The ARN of the maintenance window task.
- id str
The provider-assigned unique ID for this managed resource.
- window_
task_ strid The ID of the maintenance window task.
- arn String
The ARN of the maintenance window task.
- id String
The provider-assigned unique ID for this managed resource.
- window
Task StringId The ID of the maintenance window task.
Look up 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): MaintenanceWindowTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
cutoff_behavior: Optional[str] = None,
description: Optional[str] = None,
max_concurrency: Optional[str] = None,
max_errors: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
service_role_arn: Optional[str] = None,
targets: Optional[Sequence[MaintenanceWindowTaskTargetArgs]] = None,
task_arn: Optional[str] = None,
task_invocation_parameters: Optional[MaintenanceWindowTaskTaskInvocationParametersArgs] = None,
task_type: Optional[str] = None,
window_id: Optional[str] = None,
window_task_id: Optional[str] = None) -> MaintenanceWindowTask
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)
public static MaintenanceWindowTask get(String name, Output<String> id, MaintenanceWindowTaskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Arn string
The ARN of the maintenance window task.
- Cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- Description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- Targets
List<Pulumi.
Aws. Ssm. Inputs. 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 Pulumi.Parameters Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- Task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- Window
Id string The Id of the maintenance window to register the task with.
- Window
Task stringId The ID of the maintenance window task.
- Arn string
The ARN of the maintenance window task.
- Cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- Description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- Targets
[]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 Configuration block with parameters for task execution.
- Task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- Window
Id string The Id of the maintenance window to register the task with.
- Window
Task stringId The ID of the maintenance window task.
- arn String
The ARN of the maintenance window task.
- cutoff
Behavior String Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description String
The description of the maintenance window task.
- 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 Integer
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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- 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 Configuration block with parameters for task execution.
- task
Type String The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id String The Id of the maintenance window to register the task with.
- window
Task StringId The ID of the maintenance window task.
- arn string
The ARN of the maintenance window task.
- cutoff
Behavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description string
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets
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 Configuration block with parameters for task execution.
- task
Type string The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id string The Id of the maintenance window to register the task with.
- window
Task stringId The ID of the maintenance window task.
- arn str
The ARN of the maintenance window task.
- cutoff_
behavior str Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description str
The description of the maintenance window task.
- 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 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_ strarn The role that should be assumed when executing the task. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets
Sequence[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 str The ARN of the task to execute.
- task_
invocation_ Maintenanceparameters Window Task Task Invocation Parameters Args Configuration block with parameters for task execution.
- task_
type str The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window_
id str The Id of the maintenance window to register the task with.
- window_
task_ strid The ID of the maintenance window task.
- arn String
The ARN of the maintenance window task.
- cutoff
Behavior String Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. Valid values are
CONTINUE_TASK
andCANCEL_TASK
.- description String
The description of the maintenance window task.
- 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. If a role is not provided, Systems Manager uses your account's service-linked role. If no service-linked role for Systems Manager exists in your account, it is created for you.
- targets List<Property Map>
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 Property MapParameters Configuration block with parameters for task execution.
- task
Type String The type of task being registered. Valid values:
AUTOMATION
,LAMBDA
,RUN_COMMAND
orSTEP_FUNCTIONS
.- window
Id String The Id of the maintenance window to register the task with.
- window
Task StringId The ID of the maintenance window task.
Supporting Types
MaintenanceWindowTaskTarget
MaintenanceWindowTaskTaskInvocationParameters
- Automation
Parameters Pulumi.Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Automation Parameters The parameters for an AUTOMATION task type. Documented below.
- Lambda
Parameters Pulumi.Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Lambda Parameters The parameters for a LAMBDA task type. Documented below.
- Run
Command Pulumi.Parameters Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Run Command Parameters The parameters for a RUN_COMMAND task type. Documented below.
- Step
Functions Pulumi.Parameters Aws. Ssm. Inputs. Maintenance 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 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 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 Property Map The parameters for an AUTOMATION task type. Documented below.
- lambda
Parameters Property Map The parameters for a LAMBDA task type. Documented below.
- run
Command Property MapParameters The parameters for a RUN_COMMAND task type. Documented below.
- step
Functions Property MapParameters 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<Pulumi.
Aws. Ssm. Inputs. 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 String 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.
- 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
Sequence[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 List<Property Map>
The parameters for the RUN_COMMAND task execution. Documented below.
MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter
MaintenanceWindowTaskTaskInvocationParametersLambdaParameters
- Client
Context string Pass client-specific information to the Lambda function that you are invoking.
- Payload string
JSON to provide to your Lambda function as input.
- Qualifier string
Specify a Lambda function version or alias name.
- Client
Context string Pass client-specific information to the Lambda function that you are invoking.
- Payload string
JSON to provide to your Lambda function as input.
- Qualifier string
Specify a Lambda function version or alias name.
- client
Context String Pass client-specific information to the Lambda function that you are invoking.
- payload String
JSON to provide to your Lambda function as input.
- qualifier String
Specify a Lambda function version or alias name.
- client
Context string Pass client-specific information to the Lambda function that you are invoking.
- payload string
JSON to provide to your Lambda function as input.
- qualifier string
Specify a Lambda function version or alias name.
- client_
context str Pass client-specific information to the Lambda function that you are invoking.
- payload str
JSON to provide to your Lambda function as input.
- qualifier str
Specify a Lambda function version or alias name.
- client
Context String Pass client-specific information to the Lambda function that you are invoking.
- payload String
JSON to provide to your Lambda function as input.
- qualifier String
Specify a Lambda function version or alias name.
MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters
- Cloudwatch
Config Pulumi.Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Run Command Parameters Cloudwatch Config Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- Document
Version string The version of an Automation document to use during task execution.
- Notification
Config Pulumi.Aws. Ssm. Inputs. Maintenance Window 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
List<Pulumi.
Aws. Ssm. Inputs. Maintenance Window Task Task Invocation Parameters Run Command Parameters Parameter> The parameters for the RUN_COMMAND task execution. Documented below.
- Service
Role stringArn The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- Timeout
Seconds int If this time is reached and the command has not already started executing, it doesn't run.
- Cloudwatch
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Cloudwatch Config Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- Document
Version string The version of an Automation document to use during task execution.
- 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 Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- Timeout
Seconds int If this time is reached and the command has not already started executing, it doesn't run.
- cloudwatch
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Cloudwatch Config Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- document
Version String The version of an Automation document to use during task execution.
- 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
List<Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter> The parameters for the RUN_COMMAND task execution. Documented below.
- service
Role StringArn The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- timeout
Seconds Integer If this time is reached and the command has not already started executing, it doesn't run.
- cloudwatch
Config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Cloudwatch Config Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- document
Version string The version of an Automation document to use during task execution.
- 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 Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- timeout
Seconds number If this time is reached and the command has not already started executing, it doesn't run.
- cloudwatch_
config MaintenanceWindow Task Task Invocation Parameters Run Command Parameters Cloudwatch Config Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- document_
version str The version of an Automation document to use during task execution.
- 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_
s3_ strbucket The name of the Amazon S3 bucket.
- output_
s3_ strkey_ prefix The Amazon S3 bucket subfolder.
- parameters
Sequence[Maintenance
Window Task Task Invocation Parameters Run Command Parameters Parameter] The parameters for the RUN_COMMAND task execution. Documented below.
- service_
role_ strarn The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- timeout_
seconds int If this time is reached and the command has not already started executing, it doesn't run.
- cloudwatch
Config Property Map Configuration options for sending command output to CloudWatch Logs. Documented below.
- 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:
Sha256
andSha1
- document
Version String The version of an Automation document to use during task execution.
- notification
Config Property Map 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<Property Map>
The parameters for the RUN_COMMAND task execution. Documented below.
- service
Role StringArn The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
- timeout
Seconds Number If this time is reached and the command has not already started executing, it doesn't run.
MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig
- Cloudwatch
Log stringGroup Name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- Cloudwatch
Output boolEnabled Enables Systems Manager to send command output to CloudWatch Logs.
- Cloudwatch
Log stringGroup Name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- Cloudwatch
Output boolEnabled Enables Systems Manager to send command output to CloudWatch Logs.
- cloudwatch
Log StringGroup Name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- cloudwatch
Output BooleanEnabled Enables Systems Manager to send command output to CloudWatch Logs.
- cloudwatch
Log stringGroup Name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- cloudwatch
Output booleanEnabled Enables Systems Manager to send command output to CloudWatch Logs.
- cloudwatch_
log_ strgroup_ name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- cloudwatch_
output_ boolenabled Enables Systems Manager to send command output to CloudWatch Logs.
- cloudwatch
Log StringGroup Name The name of the CloudWatch log group where you want to send command output. If you don't specify a group name, Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName.
- cloudwatch
Output BooleanEnabled Enables Systems Manager to send command output to CloudWatch Logs.
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:Command
andInvocation
- 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:Command
andInvocation
- 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:Command
andInvocation
- 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:Command
andInvocation
- 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 Sequence[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:Command
andInvocation
- 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:Command
andInvocation
MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter
MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters
Import
AWS Maintenance Window Task can be imported using the window_id
and window_task_id
separated by /
.
$ pulumi import aws:ssm/maintenanceWindowTask:MaintenanceWindowTask task <window_id>/<window_task_id>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.