Class CfnMaintenanceWindowTaskProps.Jsii$Proxy
- All Implemented Interfaces:
CfnMaintenanceWindowTaskProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnMaintenanceWindowTaskProps
CfnMaintenanceWindowTaskProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTaskProps
CfnMaintenanceWindowTaskProps.Builder, CfnMaintenanceWindowTaskProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnMaintenanceWindowTaskProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringThe specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.final StringA description of the task.final Objectfinal StringThe maximum number of targets this task can be run for, in parallel.final StringThe maximum number of errors allowed before this task stops being scheduled.final StringgetName()The task name.final NumberThe priority of the task in the maintenance window.final StringThe Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.final ObjectThe targets, either instances or window target IDs.final StringThe resource that the task uses during execution.final ObjectThe parameters to pass to the task when it runs.final Objectfinal StringThe type of task.final StringThe ID of the maintenance window where the task is registered.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnMaintenanceWindowTaskProps.Builder.
-
-
Method Details
-
getPriority
Description copied from interface:CfnMaintenanceWindowTaskPropsThe 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.
- Specified by:
getPriorityin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getTaskArn
Description copied from interface:CfnMaintenanceWindowTaskPropsThe resource that the task uses during execution.For
RUN_COMMANDandAUTOMATIONtask types,TaskArnis the SSM document name or Amazon Resource Name (ARN).For
LAMBDAtasks,TaskArnis the function name or ARN.For
STEP_FUNCTIONStasks,TaskArnis the state machine ARN.- Specified by:
getTaskArnin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getTaskType
Description copied from interface:CfnMaintenanceWindowTaskPropsThe type of task.Valid values:
RUN_COMMAND,AUTOMATION,LAMBDA,STEP_FUNCTIONS.- Specified by:
getTaskTypein interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getWindowId
Description copied from interface:CfnMaintenanceWindowTaskPropsThe ID of the maintenance window where the task is registered.- Specified by:
getWindowIdin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getCutoffBehavior
Description copied from interface:CfnMaintenanceWindowTaskPropsThe specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.- Specified by:
getCutoffBehaviorin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getDescription
Description copied from interface:CfnMaintenanceWindowTaskPropsA description of the task.- Specified by:
getDescriptionin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getLoggingInfo
Description copied from interface:CfnMaintenanceWindowTaskPropsLoggingInfohas been deprecated.To specify an Amazon S3 bucket to contain logs for Run Command tasks, instead use the
OutputS3BucketNameandOutputS3KeyPrefixoptions in theTaskInvocationParametersstructure. For information about how Systems Manager handles these options for the supported maintenance window task types, see AWS ::SSM::MaintenanceWindowTask MaintenanceWindowRunCommandParameters .Information about an Amazon S3 bucket to write Run Command task-level logs to.
Returns union: either
IResolvableorCfnMaintenanceWindowTask.LoggingInfoProperty- Specified by:
getLoggingInfoin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getMaxConcurrency
Description copied from interface:CfnMaintenanceWindowTaskPropsThe 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.- Specified by:
getMaxConcurrencyin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getMaxErrors
Description copied from interface:CfnMaintenanceWindowTaskPropsThe 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.- Specified by:
getMaxErrorsin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getName
Description copied from interface:CfnMaintenanceWindowTaskPropsThe task name.- Specified by:
getNamein interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getServiceRoleArn
Description copied from interface:CfnMaintenanceWindowTaskPropsThe Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run
RegisterTaskWithMaintenanceWindow.However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permissions needed for your particular maintenance window tasks. For more information, see Setting up Maintenance Windows in the in the AWS Systems Manager User Guide .
- Specified by:
getServiceRoleArnin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getTargets
Description copied from interface:CfnMaintenanceWindowTaskPropsThe targets, either instances or window target IDs.- Specify instances using
Key=InstanceIds,Values= *instanceid1* , *instanceid2*. - Specify window target IDs using
Key=WindowTargetIds,Values= *window-target-id-1* , *window-target-id-2*.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMaintenanceWindowTask.TargetProperty>- Specified by:
getTargetsin interfaceCfnMaintenanceWindowTaskProps- See Also:
- Specify instances using
-
getTaskInvocationParameters
Description copied from interface:CfnMaintenanceWindowTaskPropsThe 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.Returns union: either
IResolvableorCfnMaintenanceWindowTask.TaskInvocationParametersProperty- Specified by:
getTaskInvocationParametersin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
getTaskParameters
Description copied from interface:CfnMaintenanceWindowTaskPropsTaskParametershas been deprecated.To specify parameters to pass to a task when it runs, instead use the
Parametersoption in theTaskInvocationParametersstructure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters .The parameters to pass to the task when it runs.
- Specified by:
getTaskParametersin interfaceCfnMaintenanceWindowTaskProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-