Class CfnMaintenanceWindowTask
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:41.721Z")
@Stability(Stable)
public class CfnMaintenanceWindowTask
extends CfnResource
implements IInspectable
The
AWS::SSM::MaintenanceWindowTask
resource defines information about a task for an AWS Systems Manager maintenance window.
For more information, see RegisterTaskWithMaintenanceWindow in the AWS Systems Manager API Reference .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ssm.*; Object parameters; Object taskParameters; CfnMaintenanceWindowTask cfnMaintenanceWindowTask = CfnMaintenanceWindowTask.Builder.create(this, "MyCfnMaintenanceWindowTask") .priority(123) .taskArn("taskArn") .taskType("taskType") .windowId("windowId") // the properties below are optional .cutoffBehavior("cutoffBehavior") .description("description") .loggingInfo(LoggingInfoProperty.builder() .region("region") .s3Bucket("s3Bucket") // the properties below are optional .s3Prefix("s3Prefix") .build()) .maxConcurrency("maxConcurrency") .maxErrors("maxErrors") .name("name") .serviceRoleArn("serviceRoleArn") .targets(List.of(TargetProperty.builder() .key("key") .values(List.of("values")) .build())) .taskInvocationParameters(TaskInvocationParametersProperty.builder() .maintenanceWindowAutomationParameters(MaintenanceWindowAutomationParametersProperty.builder() .documentVersion("documentVersion") .parameters(parameters) .build()) .maintenanceWindowLambdaParameters(MaintenanceWindowLambdaParametersProperty.builder() .clientContext("clientContext") .payload("payload") .qualifier("qualifier") .build()) .maintenanceWindowRunCommandParameters(MaintenanceWindowRunCommandParametersProperty.builder() .cloudWatchOutputConfig(CloudWatchOutputConfigProperty.builder() .cloudWatchLogGroupName("cloudWatchLogGroupName") .cloudWatchOutputEnabled(false) .build()) .comment("comment") .documentHash("documentHash") .documentHashType("documentHashType") .documentVersion("documentVersion") .notificationConfig(NotificationConfigProperty.builder() .notificationArn("notificationArn") // the properties below are optional .notificationEvents(List.of("notificationEvents")) .notificationType("notificationType") .build()) .outputS3BucketName("outputS3BucketName") .outputS3KeyPrefix("outputS3KeyPrefix") .parameters(parameters) .serviceRoleArn("serviceRoleArn") .timeoutSeconds(123) .build()) .maintenanceWindowStepFunctionsParameters(MaintenanceWindowStepFunctionsParametersProperty.builder() .input("input") .name("name") .build()) .build()) .taskParameters(taskParameters) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMaintenanceWindowTask
.static interface
Configuration options for sending command output to Amazon CloudWatch Logs.static interface
TheLoggingInfo
property type specifies information about the Amazon S3 bucket to write instance-level logs to.static interface
TheMaintenanceWindowAutomationParameters
property type specifies the parameters for anAUTOMATION
task type for a maintenance window task in AWS Systems Manager .static interface
TheMaintenanceWindowLambdaParameters
property type specifies the parameters for aLAMBDA
task type for a maintenance window task in AWS Systems Manager .static interface
TheMaintenanceWindowRunCommandParameters
property type specifies the parameters for aRUN_COMMAND
task type for a maintenance window task in AWS Systems Manager .static interface
TheMaintenanceWindowStepFunctionsParameters
property type specifies the parameters for the execution of aSTEP_FUNCTIONS
task in a Systems Manager maintenance window.static interface
TheNotificationConfig
property type specifies configurations for sending notifications for a maintenance window task in AWS Systems Manager .static interface
TheTarget
property type specifies targets (either instances or window target IDs).static interface
TheTaskInvocationParameters
property type specifies the task execution parameters for a maintenance window task in AWS Systems Manager .Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnMaintenanceWindowTask
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMaintenanceWindowTask
(software.amazon.jsii.JsiiObjectRef objRef) CfnMaintenanceWindowTask
(software.constructs.Construct scope, String id, CfnMaintenanceWindowTaskProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.A description of the task.Information about an Amazon S3 bucket to write Run Command task-level logs to.The maximum number of targets this task can be run for, in parallel.The maximum number of errors allowed before this task stops being scheduled.getName()
The task name.The priority of the task in the maintenance window.The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.The targets, either instances or window target IDs.The resource that the task uses during execution.The parameters to pass to the task when it runs.The parameters to pass to the task when it runs.The type of task.The ID of the maintenance window where the task is registered.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCutoffBehavior
(String value) The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.void
setDescription
(String value) A description of the task.void
setLoggingInfo
(IResolvable value) Information about an Amazon S3 bucket to write Run Command task-level logs to.void
Information about an Amazon S3 bucket to write Run Command task-level logs to.void
setMaxConcurrency
(String value) The maximum number of targets this task can be run for, in parallel.void
setMaxErrors
(String value) The maximum number of errors allowed before this task stops being scheduled.void
The task name.void
setPriority
(Number value) The priority of the task in the maintenance window.void
setServiceRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.void
setTargets
(List<Object> value) The targets, either instances or window target IDs.void
setTargets
(IResolvable value) The targets, either instances or window target IDs.void
setTaskArn
(String value) The resource that the task uses during execution.void
The parameters to pass to the task when it runs.void
The parameters to pass to the task when it runs.void
setTaskParameters
(Object value) The parameters to pass to the task when it runs.void
setTaskType
(String value) The type of task.void
setWindowId
(String value) The ID of the maintenance window where the task is registered.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMaintenanceWindowTask
protected CfnMaintenanceWindowTask(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMaintenanceWindowTask
protected CfnMaintenanceWindowTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMaintenanceWindowTask
@Stability(Stable) public CfnMaintenanceWindowTask(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMaintenanceWindowTaskProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getPriority
The priority of the task in the maintenance window. -
setPriority
The priority of the task in the maintenance window. -
getTaskArn
The resource that the task uses during execution. -
setTaskArn
The resource that the task uses during execution. -
getTaskType
The type of task. -
setTaskType
The type of task. -
getWindowId
The ID of the maintenance window where the task is registered. -
setWindowId
The ID of the maintenance window where the task is registered. -
getCutoffBehavior
The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. -
setCutoffBehavior
The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. -
getDescription
A description of the task. -
setDescription
A description of the task. -
getLoggingInfo
Information about an Amazon S3 bucket to write Run Command task-level logs to. -
setLoggingInfo
Information about an Amazon S3 bucket to write Run Command task-level logs to. -
setLoggingInfo
@Stability(Stable) public void setLoggingInfo(@Nullable CfnMaintenanceWindowTask.LoggingInfoProperty value) Information about an Amazon S3 bucket to write Run Command task-level logs to. -
getMaxConcurrency
The maximum number of targets this task can be run for, in parallel. -
setMaxConcurrency
The maximum number of targets this task can be run for, in parallel. -
getMaxErrors
The maximum number of errors allowed before this task stops being scheduled. -
setMaxErrors
The maximum number of errors allowed before this task stops being scheduled. -
getName
The task name. -
setName
The task name. -
getServiceRoleArn
The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task. -
setServiceRoleArn
The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task. -
getTargets
The targets, either instances or window target IDs. -
setTargets
The targets, either instances or window target IDs. -
setTargets
The targets, either instances or window target IDs. -
getTaskInvocationParameters
The parameters to pass to the task when it runs. -
setTaskInvocationParameters
The parameters to pass to the task when it runs. -
setTaskInvocationParameters
@Stability(Stable) public void setTaskInvocationParameters(@Nullable CfnMaintenanceWindowTask.TaskInvocationParametersProperty value) The parameters to pass to the task when it runs. -
getTaskParameters
The parameters to pass to the task when it runs. -
setTaskParameters
The parameters to pass to the task when it runs.
-