@Generated(value="software.amazon.awssdk:codegen") public class MaintenanceWindowTask extends Object implements StructuredPojo, ToCopyableBuilder<MaintenanceWindowTask.Builder,MaintenanceWindowTask>
Information about a task defined for a Maintenance Window.
Modifier and Type | Class and Description |
---|---|
static interface |
MaintenanceWindowTask.Builder |
Modifier and Type | Method and Description |
---|---|
static MaintenanceWindowTask.Builder |
builder() |
String |
description()
A description of the task.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LoggingInfo |
loggingInfo()
Information about an Amazon S3 bucket to write task-level logs to.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
maxConcurrency()
The maximum number of targets this task can be run for in parallel.
|
String |
maxErrors()
The maximum number of errors allowed before this task stops being scheduled.
|
String |
name()
The task name.
|
Integer |
priority()
The priority of the task in the Maintenance Window.
|
static Class<? extends MaintenanceWindowTask.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The role that should be assumed when executing the task
|
List<Target> |
targets()
The targets (either instances or tags).
|
String |
taskArn()
The resource that the task uses during execution.
|
Map<String,MaintenanceWindowTaskParameterValueExpression> |
taskParameters()
The parameters that should be passed to the task when it is executed.
|
MaintenanceWindowTask.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
MaintenanceWindowTaskType |
type()
The type of task.
|
String |
typeString()
The type of task.
|
String |
windowId()
The Maintenance Window ID where the task is registered.
|
String |
windowTaskId()
The task ID.
|
copy
public String windowId()
The Maintenance Window ID where the task is registered.
public String windowTaskId()
The task ID.
public 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
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.public MaintenanceWindowTaskType type()
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
If the service returns an enum value that is not available in the current SDK version, type
will return
MaintenanceWindowTaskType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
MaintenanceWindowTaskType
public String typeString()
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTION.
If the service returns an enum value that is not available in the current SDK version, type
will return
MaintenanceWindowTaskType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeString()
.
MaintenanceWindowTaskType
public List<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>.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,MaintenanceWindowTaskParameterValueExpression> taskParameters()
The parameters that should be passed to the task when it is executed.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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.
public LoggingInfo loggingInfo()
Information about an Amazon S3 bucket to write task-level logs to.
public String serviceRoleArn()
The role that should be assumed when executing the task
public String maxConcurrency()
The maximum number of targets this task can be run for in parallel.
public String maxErrors()
The maximum number of errors allowed before this task stops being scheduled.
public String name()
The task name.
public String description()
A description of the task.
public MaintenanceWindowTask.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MaintenanceWindowTask.Builder,MaintenanceWindowTask>
public static MaintenanceWindowTask.Builder builder()
public static Class<? extends MaintenanceWindowTask.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.