Class: Aws::SSM::Types::RegisterTaskWithMaintenanceWindowRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::SSM::Types::RegisterTaskWithMaintenanceWindowRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-ssm/types.rb
Overview
When making an API call, you may pass RegisterTaskWithMaintenanceWindowRequest data as a hash:
{
window_id: "MaintenanceWindowId", # required
targets: [ # required
{
key: "TargetKey",
values: ["TargetValue"],
},
],
task_arn: "MaintenanceWindowTaskArn", # required
service_role_arn: "ServiceRole",
task_type: "RUN_COMMAND", # required, accepts RUN_COMMAND, AUTOMATION, STEP_FUNCTIONS, LAMBDA
task_parameters: {
"MaintenanceWindowTaskParameterName" => {
values: ["MaintenanceWindowTaskParameterValue"],
},
},
task_invocation_parameters: {
run_command: {
comment: "Comment",
document_hash: "DocumentHash",
document_hash_type: "Sha256", # accepts Sha256, Sha1
notification_config: {
notification_arn: "NotificationArn",
notification_events: ["All"], # accepts All, InProgress, Success, TimedOut, Cancelled, Failed
notification_type: "Command", # accepts Command, Invocation
},
output_s3_bucket_name: "S3BucketName",
output_s3_key_prefix: "S3KeyPrefix",
parameters: {
"ParameterName" => ["ParameterValue"],
},
service_role_arn: "ServiceRole",
timeout_seconds: 1,
},
automation: {
document_version: "DocumentVersion",
parameters: {
"AutomationParameterKey" => ["AutomationParameterValue"],
},
},
step_functions: {
input: "MaintenanceWindowStepFunctionsInput",
name: "MaintenanceWindowStepFunctionsName",
},
lambda: {
client_context: "MaintenanceWindowLambdaClientContext",
qualifier: "MaintenanceWindowLambdaQualifier",
payload: "data",
},
},
priority: 1,
max_concurrency: "MaxConcurrency", # required
max_errors: "MaxErrors", # required
logging_info: {
s3_bucket_name: "S3BucketName", # required
s3_key_prefix: "S3KeyPrefix",
s3_region: "S3Region", # required
},
name: "MaintenanceWindowName",
description: "MaintenanceWindowDescription",
client_token: "ClientToken",
}
Instance Attribute Summary collapse
-
#client_token ⇒ String
User-provided idempotency token.
-
#description ⇒ String
An optional description for the task.
-
#logging_info ⇒ Types::LoggingInfo
A structure containing information about an Amazon S3 bucket to write instance-level logs to.
-
#max_concurrency ⇒ String
The maximum number of targets this task can be run for in parallel.
-
#max_errors ⇒ String
The maximum number of errors allowed before this task stops being scheduled.
-
#name ⇒ String
An optional name for the task.
-
#priority ⇒ Integer
The priority of the task in the Maintenance Window, the lower the number the higher the priority.
-
#service_role_arn ⇒ String
The role to assume when running the Maintenance Window task.
-
#targets ⇒ Array<Types::Target>
The targets (either instances or Maintenance Window targets).
-
#task_arn ⇒ String
The ARN of the task to execute.
-
#task_invocation_parameters ⇒ Types::MaintenanceWindowTaskInvocationParameters
The parameters that the task should use during execution.
-
#task_parameters ⇒ Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>
The parameters that should be passed to the task when it is executed.
-
#task_type ⇒ String
The type of task being registered.
-
#window_id ⇒ String
The ID of the Maintenance Window the task should be added to.
Instance Attribute Details
#client_token ⇒ String
User-provided idempotency token.
**A suitable default value is auto-generated.** You should normally not need to pass this option.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#description ⇒ String
An optional description for the task.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#logging_info ⇒ Types::LoggingInfo
A structure containing information about an Amazon S3 bucket to write instance-level logs to.
<note markdown=“1”> ‘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.
</note>
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#max_concurrency ⇒ String
The maximum number of targets this task can be run for in parallel.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#max_errors ⇒ String
The maximum number of errors allowed before this task stops being scheduled.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#name ⇒ String
An optional name for the task.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#priority ⇒ Integer
The priority of the task in the Maintenance Window, the lower the number the higher the priority. Tasks in a Maintenance Window are scheduled in priority order with tasks that have the same priority scheduled in parallel.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#service_role_arn ⇒ String
The role to assume when running the Maintenance Window task.
If you do not specify a service role ARN, Systems Manager will use your account’s service-linked role for Systems Manager by default. If no service-linked role for Systems Manager exists in your account, it will be created when you run ‘RegisterTaskWithMaintenanceWindow` without specifying a service role ARN.
For more information, see [Service-Linked Role Permissions for Systems Manager] and [Should I Use a Service-Linked Role or a Custom Service Role to Run Maintenance Window Tasks? ][2] in the *AWS Systems Manager User Guide*.
[1]: docs.aws.amazon.com/systems-manager/latest/userguide/using-service-linked-roles.html#slr-permissions [2]: docs.aws.amazon.com/systems-manager/latest/userguide/sysman-maintenance-permissions.html#maintenance-window-tasks-service-role
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#targets ⇒ Array<Types::Target>
The targets (either instances or Maintenance Window targets).
Specify instances using the following format:
‘Key=InstanceIds,Values=<instance-id-1>,<instance-id-2>`
Specify Maintenance Window targets using the following format:
‘Key=<WindowTargetIds>,Values=<window-target-id-1>,<window-target-id-2>`
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#task_arn ⇒ String
The ARN of the task to execute
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#task_invocation_parameters ⇒ Types::MaintenanceWindowTaskInvocationParameters
The parameters that the task should use during execution. Populate only the fields that match the task type. All other fields should be empty.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#task_parameters ⇒ Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>
The parameters that should be passed to the task when it is executed.
<note markdown=“1”> ‘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.
</note>
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#task_type ⇒ String
The type of task being registered.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |
#window_id ⇒ String
The ID of the Maintenance Window the task should be added to.
11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 |
# File 'lib/aws-sdk-ssm/types.rb', line 11413 class RegisterTaskWithMaintenanceWindowRequest < Struct.new( :window_id, :targets, :task_arn, :service_role_arn, :task_type, :task_parameters, :task_invocation_parameters, :priority, :max_concurrency, :max_errors, :logging_info, :name, :description, :client_token) include Aws::Structure end |