@Stability(value=Stable) public static final class CfnMaintenanceWindowTaskProps.Builder extends Object implements software.amazon.jsii.Builder<CfnMaintenanceWindowTaskProps>
CfnMaintenanceWindowTaskProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder priority(Number priority)
CfnMaintenanceWindowTaskProps.getPriority()priority - The priority of the task in the maintenance window. This parameter is required.
The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder taskArn(String taskArn)
CfnMaintenanceWindowTaskProps.getTaskArn()taskArn - The resource that the task uses during execution. This parameter is required.
For RUN_COMMAND and AUTOMATION task types, TaskArn is the SSM document name or Amazon Resource Name (ARN).
For LAMBDA tasks, TaskArn is the function name or ARN.
For STEP_FUNCTIONS tasks, TaskArn is the state machine ARN.
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder taskType(String taskType)
CfnMaintenanceWindowTaskProps.getTaskType()taskType - The type of task. This parameter is required.
Valid values: RUN_COMMAND , AUTOMATION , LAMBDA , STEP_FUNCTIONS .this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder windowId(String windowId)
CfnMaintenanceWindowTaskProps.getWindowId()windowId - The ID of the maintenance window where the task is registered. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder cutoffBehavior(String cutoffBehavior)
CfnMaintenanceWindowTaskProps.getCutoffBehavior()cutoffBehavior - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder description(String description)
CfnMaintenanceWindowTaskProps.getDescription()description - A description of the task.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder loggingInfo(IResolvable loggingInfo)
CfnMaintenanceWindowTaskProps.getLoggingInfo()loggingInfo - Information about an Amazon S3 bucket to write Run Command task-level logs to.
LoggingInfohas been deprecated. To specify an Amazon S3 bucket to contain logs for Run Command tasks, instead use theOutputS3BucketNameandOutputS3KeyPrefixoptions in theTaskInvocationParametersstructure. For information about how Systems Manager handles these options for the supported maintenance window task types, see AWS ::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters .
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder loggingInfo(CfnMaintenanceWindowTask.LoggingInfoProperty loggingInfo)
CfnMaintenanceWindowTaskProps.getLoggingInfo()loggingInfo - Information about an Amazon S3 bucket to write Run Command task-level logs to.
LoggingInfohas been deprecated. To specify an Amazon S3 bucket to contain logs for Run Command tasks, instead use theOutputS3BucketNameandOutputS3KeyPrefixoptions in theTaskInvocationParametersstructure. For information about how Systems Manager handles these options for the supported maintenance window task types, see AWS ::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters .
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder maxConcurrency(String maxConcurrency)
CfnMaintenanceWindowTaskProps.getMaxConcurrency()maxConcurrency - The maximum number of targets this task can be run for, in parallel.
Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a targetless task You must provide a value in all other cases.
For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of
1. This value doesn't affect the running of your task.
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder maxErrors(String maxErrors)
CfnMaintenanceWindowTaskProps.getMaxErrors()maxErrors - The maximum number of errors allowed before this task stops being scheduled.
Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a targetless task You must provide a value in all other cases.
For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of
1. This value doesn't affect the running of your task.
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder name(String name)
CfnMaintenanceWindowTaskProps.getName()name - The task name.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder serviceRoleArn(String serviceRoleArn)
CfnMaintenanceWindowTaskProps.getServiceRoleArn()serviceRoleArn - 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.this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder targets(IResolvable targets)
CfnMaintenanceWindowTaskProps.getTargets()targets - The targets, either instances or window target IDs.
Key=InstanceIds,Values= *instanceid1* , *instanceid2* .Key=WindowTargetIds,Values= *window-target-id-1* , *window-target-id-2* .this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder targets(List<? extends Object> targets)
CfnMaintenanceWindowTaskProps.getTargets()targets - The targets, either instances or window target IDs.
Key=InstanceIds,Values= *instanceid1* , *instanceid2* .Key=WindowTargetIds,Values= *window-target-id-1* , *window-target-id-2* .this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder taskInvocationParameters(IResolvable taskInvocationParameters)
CfnMaintenanceWindowTaskProps.getTaskInvocationParameters()taskInvocationParameters - The parameters to pass to the task when it runs.
Populate only the fields that match the task type. All other fields should be empty.
When you update a maintenance window task that has options specified in
TaskInvocationParameters, you must provide again all theTaskInvocationParametersvalues that you want to retain. The values you do not specify again are removed. For example, suppose that when you registered a Run Command task, you specifiedTaskInvocationParametersvalues forComment,NotificationConfig, andOutputS3BucketName. If you update the maintenance window task and specify only a differentOutputS3BucketNamevalue, the values forCommentandNotificationConfigare removed.
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder taskInvocationParameters(CfnMaintenanceWindowTask.TaskInvocationParametersProperty taskInvocationParameters)
CfnMaintenanceWindowTaskProps.getTaskInvocationParameters()taskInvocationParameters - The parameters to pass to the task when it runs.
Populate only the fields that match the task type. All other fields should be empty.
When you update a maintenance window task that has options specified in
TaskInvocationParameters, you must provide again all theTaskInvocationParametersvalues that you want to retain. The values you do not specify again are removed. For example, suppose that when you registered a Run Command task, you specifiedTaskInvocationParametersvalues forComment,NotificationConfig, andOutputS3BucketName. If you update the maintenance window task and specify only a differentOutputS3BucketNamevalue, the values forCommentandNotificationConfigare removed.
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps.Builder taskParameters(Object taskParameters)
CfnMaintenanceWindowTaskProps.getTaskParameters()taskParameters - The parameters to pass to the task when it runs.
TaskParametershas been deprecated. To specify parameters to pass to a task when it runs, instead use theParametersoption in theTaskInvocationParametersstructure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters .
this@Stability(value=Stable) public CfnMaintenanceWindowTaskProps build()
build in interface software.amazon.jsii.Builder<CfnMaintenanceWindowTaskProps>CfnMaintenanceWindowTaskPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.