MaintenanceWindowTask

public struct MaintenanceWindowTask : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • A description of the task.

    Declaration

    Swift

    public let description: String?
  • Information about an 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.

    Declaration

    Swift

    public let loggingInfo: LoggingInfo?
  • The maximum number of targets this task can be run for, in parallel.

    Declaration

    Swift

    public let maxConcurrency: String?
  • The maximum number of errors allowed before this task stops being scheduled.

    Declaration

    Swift

    public let maxErrors: String?
  • The task name.

    Declaration

    Swift

    public let name: String?
  • 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.

    Declaration

    Swift

    public let priority: Int?
  • The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

    Declaration

    Swift

    public let serviceRoleArn: String?
  • 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>.

    Declaration

    Swift

    public let targets: [Target]?
  • 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.

    Declaration

    Swift

    public let taskArn: String?
  • 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.

    Declaration

    Swift

    public let taskParameters: [String : MaintenanceWindowTaskParameterValueExpression]?
  • The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, LAMBDA, or STEP_FUNCTIONS.

    Declaration

    Swift

    public let type: MaintenanceWindowTaskType?
  • The ID of the maintenance window where the task is registered.

    Declaration

    Swift

    public let windowId: String?
  • The task ID.

    Declaration

    Swift

    public let windowTaskId: String?
  • Undocumented

    Declaration

    Swift

    public init(description: String? = nil, loggingInfo: LoggingInfo? = nil, maxConcurrency: String? = nil, maxErrors: String? = nil, name: String? = nil, priority: Int? = nil, serviceRoleArn: String? = nil, targets: [Target]? = nil, taskArn: String? = nil, taskParameters: [String : MaintenanceWindowTaskParameterValueExpression]? = nil, type: MaintenanceWindowTaskType? = nil, windowId: String? = nil, windowTaskId: String? = nil)