@Stability(value=Stable) public static final class CfnMaintenanceWindowTask.Builder extends Object implements software.amazon.jsii.Builder<CfnMaintenanceWindowTask>
CfnMaintenanceWindowTask.| Modifier and Type | Method and Description |
|---|---|
CfnMaintenanceWindowTask |
build() |
static CfnMaintenanceWindowTask.Builder |
create(Construct scope,
String id) |
CfnMaintenanceWindowTask.Builder |
cutoffBehavior(String cutoffBehavior)
The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
|
CfnMaintenanceWindowTask.Builder |
description(String description)
A description of the task.
|
CfnMaintenanceWindowTask.Builder |
loggingInfo(CfnMaintenanceWindowTask.LoggingInfoProperty loggingInfo)
Information about an Amazon S3 bucket to write Run Command task-level logs to.
|
CfnMaintenanceWindowTask.Builder |
loggingInfo(IResolvable loggingInfo)
Information about an Amazon S3 bucket to write Run Command task-level logs to.
|
CfnMaintenanceWindowTask.Builder |
maxConcurrency(String maxConcurrency)
The maximum number of targets this task can be run for, in parallel.
|
CfnMaintenanceWindowTask.Builder |
maxErrors(String maxErrors)
The maximum number of errors allowed before this task stops being scheduled.
|
CfnMaintenanceWindowTask.Builder |
name(String name)
The task name.
|
CfnMaintenanceWindowTask.Builder |
priority(Number priority)
The priority of the task in the maintenance window.
|
CfnMaintenanceWindowTask.Builder |
serviceRoleArn(String 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.
|
CfnMaintenanceWindowTask.Builder |
targets(IResolvable targets)
The targets, either instances or window target IDs.
|
CfnMaintenanceWindowTask.Builder |
targets(List<? extends Object> targets)
The targets, either instances or window target IDs.
|
CfnMaintenanceWindowTask.Builder |
taskArn(String taskArn)
The resource that the task uses during execution.
|
CfnMaintenanceWindowTask.Builder |
taskInvocationParameters(CfnMaintenanceWindowTask.TaskInvocationParametersProperty taskInvocationParameters)
The parameters to pass to the task when it runs.
|
CfnMaintenanceWindowTask.Builder |
taskInvocationParameters(IResolvable taskInvocationParameters)
The parameters to pass to the task when it runs.
|
CfnMaintenanceWindowTask.Builder |
taskParameters(Object taskParameters)
The parameters to pass to the task when it runs.
|
CfnMaintenanceWindowTask.Builder |
taskType(String taskType)
The type of task.
|
CfnMaintenanceWindowTask.Builder |
windowId(String windowId)
The ID of the maintenance window where the task is registered.
|
@Stability(value=Stable) public static CfnMaintenanceWindowTask.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnMaintenanceWindowTask.CloudWatchOutputConfigProperty.Builder.@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder priority(Number priority)
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. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder taskArn(String taskArn)
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.
taskArn - The resource that the task uses during execution. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder taskType(String taskType)
Valid values: RUN_COMMAND , AUTOMATION , LAMBDA , STEP_FUNCTIONS .
taskType - The type of task. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder windowId(String windowId)
windowId - The ID of the maintenance window where the task is registered. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder cutoffBehavior(String cutoffBehavior)
cutoffBehavior - The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder description(String description)
description - A description of the task. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder loggingInfo(IResolvable loggingInfo)
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 .
loggingInfo - Information about an Amazon S3 bucket to write Run Command task-level logs to. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder loggingInfo(CfnMaintenanceWindowTask.LoggingInfoProperty loggingInfo)
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 .
loggingInfo - Information about an Amazon S3 bucket to write Run Command task-level logs to. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder maxConcurrency(String maxConcurrency)
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.
maxConcurrency - The maximum number of targets this task can be run for, in parallel. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder maxErrors(String maxErrors)
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.
maxErrors - The maximum number of errors allowed before this task stops being scheduled. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder name(String name)
name - The task name. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder serviceRoleArn(String serviceRoleArn)
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 parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder targets(IResolvable targets)
Key=InstanceIds,Values= *instanceid1* , *instanceid2* .Key=WindowTargetIds,Values= *window-target-id-1* , *window-target-id-2* .targets - The targets, either instances or window target IDs. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder targets(List<? extends Object> targets)
Key=InstanceIds,Values= *instanceid1* , *instanceid2* .Key=WindowTargetIds,Values= *window-target-id-1* , *window-target-id-2* .targets - The targets, either instances or window target IDs. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder taskInvocationParameters(IResolvable taskInvocationParameters)
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.
taskInvocationParameters - The parameters to pass to the task when it runs. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder taskInvocationParameters(CfnMaintenanceWindowTask.TaskInvocationParametersProperty taskInvocationParameters)
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.
taskInvocationParameters - The parameters to pass to the task when it runs. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask.Builder taskParameters(Object taskParameters)
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 .
taskParameters - The parameters to pass to the task when it runs. This parameter is required.this@Stability(value=Stable) public CfnMaintenanceWindowTask build()
build in interface software.amazon.jsii.Builder<CfnMaintenanceWindowTask>Copyright © 2023. All rights reserved.