@Generated(value="software.amazon.awssdk:codegen") public final class MaintenanceWindowTask extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(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.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MaintenanceWindowTask.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications
for maintenance window Run Command tasks.
|
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 run.
|
MaintenanceWindowTask.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
MaintenanceWindowTaskType |
type()
The type of task.
|
String |
typeAsString()
The type of task.
|
String |
windowId()
The ID of the maintenance window where the task is registered.
|
String |
windowTaskId()
The task ID.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String windowId()
The ID of the maintenance window 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_FUNCTIONS
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_FUNCTIONS 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_FUNCTIONS.
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
typeAsString().
MaintenanceWindowTaskTypepublic String typeAsString()
The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTIONS.
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
typeAsString().
MaintenanceWindowTaskTypepublic 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 run.
TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead
use the Parameters option in the TaskInvocationParameters structure. For information
about how Systems Manager handles these options for the supported maintenance window task types, see
MaintenanceWindowTaskInvocationParameters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
TaskParameters has been deprecated. To specify parameters to pass to a task when it runs,
instead use the Parameters option in the TaskInvocationParameters structure.
For information about how Systems Manager handles these options for the supported maintenance window task
types, see MaintenanceWindowTaskInvocationParameters.
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.
LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName and OutputS3KeyPrefix options in the
TaskInvocationParameters structure. For information about how Systems Manager handles these options
for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.
LoggingInfo has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName and OutputS3KeyPrefix options in the
TaskInvocationParameters structure. For information about how Systems Manager handles these
options for the supported maintenance window task types, see
MaintenanceWindowTaskInvocationParameters.
public String serviceRoleArn()
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
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()
toBuilder in interface ToCopyableBuilder<MaintenanceWindowTask.Builder,MaintenanceWindowTask>public static MaintenanceWindowTask.Builder builder()
public static Class<? extends MaintenanceWindowTask.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.