public static interface MaintenanceWindowTask.Builder extends CopyableBuilder<MaintenanceWindowTask.Builder,MaintenanceWindowTask>
Modifier and Type | Method and Description |
---|---|
MaintenanceWindowTask.Builder |
description(String description)
A description of the task.
|
default MaintenanceWindowTask.Builder |
loggingInfo(Consumer<LoggingInfo.Builder> loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
|
MaintenanceWindowTask.Builder |
loggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
|
MaintenanceWindowTask.Builder |
maxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
|
MaintenanceWindowTask.Builder |
maxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
|
MaintenanceWindowTask.Builder |
name(String name)
The task name.
|
MaintenanceWindowTask.Builder |
priority(Integer priority)
The priority of the task in the Maintenance Window.
|
MaintenanceWindowTask.Builder |
serviceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
|
MaintenanceWindowTask.Builder |
targets(Collection<Target> targets)
The targets (either instances or tags).
|
MaintenanceWindowTask.Builder |
targets(Consumer<Target.Builder>... targets)
The targets (either instances or tags).
|
MaintenanceWindowTask.Builder |
targets(Target... targets)
The targets (either instances or tags).
|
MaintenanceWindowTask.Builder |
taskArn(String taskArn)
The resource that the task uses during execution.
|
MaintenanceWindowTask.Builder |
taskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
|
MaintenanceWindowTask.Builder |
type(MaintenanceWindowTaskType type)
The type of task.
|
MaintenanceWindowTask.Builder |
type(String type)
The type of task.
|
MaintenanceWindowTask.Builder |
windowId(String windowId)
The Maintenance Window ID where the task is registered.
|
MaintenanceWindowTask.Builder |
windowTaskId(String windowTaskId)
The task ID.
|
copy
applyMutation, build
MaintenanceWindowTask.Builder windowId(String windowId)
The Maintenance Window ID where the task is registered.
windowId
- The Maintenance Window ID where the task is registered.MaintenanceWindowTask.Builder windowTaskId(String windowTaskId)
The task ID.
windowTaskId
- The task ID.MaintenanceWindowTask.Builder taskArn(String taskArn)
The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types,
TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function name or
ARN. For STEP_FUNCTION tasks, it's the state machine ARN.
taskArn
- The resource that the task uses during execution. For RUN_COMMAND and AUTOMATION task types,
TaskArn
is the Systems Manager document name or ARN. For LAMBDA tasks, it's the function
name or ARN. For STEP_FUNCTION tasks, it's the state machine ARN.MaintenanceWindowTask.Builder type(String type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or
STEP_FUNCTION.MaintenanceWindowTaskType
,
MaintenanceWindowTaskType
MaintenanceWindowTask.Builder type(MaintenanceWindowTaskType type)
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
type
- The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or
STEP_FUNCTION.MaintenanceWindowTaskType
,
MaintenanceWindowTaskType
MaintenanceWindowTask.Builder targets(Collection<Target> targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.MaintenanceWindowTask.Builder targets(Target... targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
targets
- The targets (either instances or tags). Instances are specified using
Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag
name>,Values=<tag value>.MaintenanceWindowTask.Builder targets(Consumer<Target.Builder>... targets)
The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #targets(List)
.targets
- a consumer that will call methods on List.Builder
#targets(List)
MaintenanceWindowTask.Builder taskParameters(Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters)
The parameters that should be passed to the task when it is executed.
taskParameters
- The parameters that should be passed to the task when it is executed.MaintenanceWindowTask.Builder priority(Integer priority)
The priority of the task in the Maintenance Window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
priority
- The priority of the task in the Maintenance Window. The lower the number, the higher the priority.
Tasks that have the same priority are scheduled in parallel.MaintenanceWindowTask.Builder loggingInfo(LoggingInfo loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
loggingInfo
- Information about an Amazon S3 bucket to write task-level logs to.default MaintenanceWindowTask.Builder loggingInfo(Consumer<LoggingInfo.Builder> loggingInfo)
Information about an Amazon S3 bucket to write task-level logs to.
This is a convenience that creates an instance of theLoggingInfo.Builder
avoiding the need to create
one manually via LoggingInfo.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to loggingInfo(LoggingInfo)
.loggingInfo
- a consumer that will call methods on LoggingInfo.Builder
loggingInfo(LoggingInfo)
MaintenanceWindowTask.Builder serviceRoleArn(String serviceRoleArn)
The role that should be assumed when executing the task
serviceRoleArn
- The role that should be assumed when executing the taskMaintenanceWindowTask.Builder maxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for in parallel.
maxConcurrency
- The maximum number of targets this task can be run for in parallel.MaintenanceWindowTask.Builder maxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
maxErrors
- The maximum number of errors allowed before this task stops being scheduled.MaintenanceWindowTask.Builder name(String name)
The task name.
name
- The task name.MaintenanceWindowTask.Builder description(String description)
A description of the task.
description
- A description of the task.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.