aws-sdk-ssm 1.0.0.rc13 → 1.0.0.rc14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ssm.rb +1 -1
- data/lib/aws-sdk-ssm/client.rb +842 -9
- data/lib/aws-sdk-ssm/client_api.rb +418 -0
- data/lib/aws-sdk-ssm/types.rb +1616 -57
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c057299528c1faacb3bf6a3810a99a369b8f6fd
|
4
|
+
data.tar.gz: d9a34ae8ece0cba490598efba8fcb4b83413ed11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbe07c185634f847429ffd80c8b581a5a8864b0cc8180d9ceba2566150c1773c0f62b3261d3435cd13c38655adfa3aeeb34fda7121adf930504f902fc1c3045d
|
7
|
+
data.tar.gz: 079ad412259c56742127b9fe77375e36c15f1f58eccd391b481d8fc5136b7eac14dbb84de86152704fa0feb56f1f8cb016a7def418f7bc507523ab561de6e492
|
data/lib/aws-sdk-ssm.rb
CHANGED
data/lib/aws-sdk-ssm/client.rb
CHANGED
@@ -580,6 +580,11 @@ module Aws::SSM
|
|
580
580
|
# @option params [required, String] :name
|
581
581
|
# The name of the Maintenance Window.
|
582
582
|
#
|
583
|
+
# @option params [String] :description
|
584
|
+
# An optional description for the Maintenance Window. We recommend
|
585
|
+
# specifying a description to help your organize your Maintenance
|
586
|
+
# Windows.
|
587
|
+
#
|
583
588
|
# @option params [required, String] :schedule
|
584
589
|
# The schedule of the Maintenance Window in the form of a cron or rate
|
585
590
|
# expression.
|
@@ -609,6 +614,7 @@ module Aws::SSM
|
|
609
614
|
#
|
610
615
|
# resp = client.create_maintenance_window({
|
611
616
|
# name: "MaintenanceWindowName", # required
|
617
|
+
# description: "MaintenanceWindowDescription",
|
612
618
|
# schedule: "MaintenanceWindowSchedule", # required
|
613
619
|
# duration: 1, # required
|
614
620
|
# cutoff: 1, # required
|
@@ -1062,6 +1068,11 @@ module Aws::SSM
|
|
1062
1068
|
# @option params [required, String] :window_target_id
|
1063
1069
|
# The ID of the target definition to remove.
|
1064
1070
|
#
|
1071
|
+
# @option params [Boolean] :safe
|
1072
|
+
# The system checks if the target is being referenced by a task. If the
|
1073
|
+
# target is being referenced, the system returns and error and does not
|
1074
|
+
# deregister the target from the Maintenance Window.
|
1075
|
+
#
|
1065
1076
|
# @return [Types::DeregisterTargetFromMaintenanceWindowResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1066
1077
|
#
|
1067
1078
|
# * {Types::DeregisterTargetFromMaintenanceWindowResult#window_id #window_id} => String
|
@@ -1072,6 +1083,7 @@ module Aws::SSM
|
|
1072
1083
|
# resp = client.deregister_target_from_maintenance_window({
|
1073
1084
|
# window_id: "MaintenanceWindowId", # required
|
1074
1085
|
# window_target_id: "MaintenanceWindowTargetId", # required
|
1086
|
+
# safe: false,
|
1075
1087
|
# })
|
1076
1088
|
#
|
1077
1089
|
# @example Response structure
|
@@ -1918,6 +1930,7 @@ module Aws::SSM
|
|
1918
1930
|
# resp.window_execution_task_invocation_identities[0].task_execution_id #=> String
|
1919
1931
|
# resp.window_execution_task_invocation_identities[0].invocation_id #=> String
|
1920
1932
|
# resp.window_execution_task_invocation_identities[0].execution_id #=> String
|
1933
|
+
# resp.window_execution_task_invocation_identities[0].task_type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
1921
1934
|
# resp.window_execution_task_invocation_identities[0].parameters #=> String
|
1922
1935
|
# resp.window_execution_task_invocation_identities[0].status #=> String, one of "PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "TIMED_OUT", "CANCELLING", "CANCELLED", "SKIPPED_OVERLAPPING"
|
1923
1936
|
# resp.window_execution_task_invocation_identities[0].status_details #=> String
|
@@ -1986,7 +1999,7 @@ module Aws::SSM
|
|
1986
1999
|
# resp.window_execution_task_identities[0].start_time #=> Time
|
1987
2000
|
# resp.window_execution_task_identities[0].end_time #=> Time
|
1988
2001
|
# resp.window_execution_task_identities[0].task_arn #=> String
|
1989
|
-
# resp.window_execution_task_identities[0].task_type #=> String, one of "RUN_COMMAND"
|
2002
|
+
# resp.window_execution_task_identities[0].task_type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
1990
2003
|
# resp.next_token #=> String
|
1991
2004
|
#
|
1992
2005
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasks AWS API Documentation
|
@@ -1998,10 +2011,10 @@ module Aws::SSM
|
|
1998
2011
|
req.send_request(options)
|
1999
2012
|
end
|
2000
2013
|
|
2001
|
-
# Lists the executions of a Maintenance Window
|
2002
|
-
# about when the Maintenance Window was scheduled to be
|
2003
|
-
# information about tasks registered and run with the
|
2004
|
-
# Window
|
2014
|
+
# Lists the executions of a Maintenance Window. This includes
|
2015
|
+
# information about when the Maintenance Window was scheduled to be
|
2016
|
+
# active, and information about tasks registered and run with the
|
2017
|
+
# Maintenance Window.
|
2005
2018
|
#
|
2006
2019
|
# @option params [required, String] :window_id
|
2007
2020
|
# The ID of the Maintenance Window whose executions should be retrieved.
|
@@ -2113,6 +2126,8 @@ module Aws::SSM
|
|
2113
2126
|
# resp.targets[0].targets[0].values #=> Array
|
2114
2127
|
# resp.targets[0].targets[0].values[0] #=> String
|
2115
2128
|
# resp.targets[0].owner_information #=> String
|
2129
|
+
# resp.targets[0].name #=> String
|
2130
|
+
# resp.targets[0].description #=> String
|
2116
2131
|
# resp.next_token #=> String
|
2117
2132
|
#
|
2118
2133
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargets AWS API Documentation
|
@@ -2168,7 +2183,7 @@ module Aws::SSM
|
|
2168
2183
|
# resp.tasks[0].window_id #=> String
|
2169
2184
|
# resp.tasks[0].window_task_id #=> String
|
2170
2185
|
# resp.tasks[0].task_arn #=> String
|
2171
|
-
# resp.tasks[0].type #=> String, one of "RUN_COMMAND"
|
2186
|
+
# resp.tasks[0].type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
2172
2187
|
# resp.tasks[0].targets #=> Array
|
2173
2188
|
# resp.tasks[0].targets[0].key #=> String
|
2174
2189
|
# resp.tasks[0].targets[0].values #=> Array
|
@@ -2183,6 +2198,8 @@ module Aws::SSM
|
|
2183
2198
|
# resp.tasks[0].service_role_arn #=> String
|
2184
2199
|
# resp.tasks[0].max_concurrency #=> String
|
2185
2200
|
# resp.tasks[0].max_errors #=> String
|
2201
|
+
# resp.tasks[0].name #=> String
|
2202
|
+
# resp.tasks[0].description #=> String
|
2186
2203
|
# resp.next_token #=> String
|
2187
2204
|
#
|
2188
2205
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasks AWS API Documentation
|
@@ -2232,6 +2249,7 @@ module Aws::SSM
|
|
2232
2249
|
# resp.window_identities #=> Array
|
2233
2250
|
# resp.window_identities[0].window_id #=> String
|
2234
2251
|
# resp.window_identities[0].name #=> String
|
2252
|
+
# resp.window_identities[0].description #=> String
|
2235
2253
|
# resp.window_identities[0].enabled #=> Boolean
|
2236
2254
|
# resp.window_identities[0].duration #=> Integer
|
2237
2255
|
# resp.window_identities[0].cutoff #=> Integer
|
@@ -2784,6 +2802,9 @@ module Aws::SSM
|
|
2784
2802
|
# returns a token that you can specify in a subsequent call to get the
|
2785
2803
|
# next set of results.
|
2786
2804
|
#
|
2805
|
+
# @option params [Boolean] :sub_type
|
2806
|
+
# Returns the sub-type schema for a specified inventory type.
|
2807
|
+
#
|
2787
2808
|
# @return [Types::GetInventorySchemaResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2788
2809
|
#
|
2789
2810
|
# * {Types::GetInventorySchemaResult#schemas #schemas} => Array<Types::InventoryItemSchema>
|
@@ -2795,6 +2816,7 @@ module Aws::SSM
|
|
2795
2816
|
# type_name: "InventoryItemTypeNameFilter",
|
2796
2817
|
# next_token: "NextToken",
|
2797
2818
|
# max_results: 1,
|
2819
|
+
# sub_type: false,
|
2798
2820
|
# })
|
2799
2821
|
#
|
2800
2822
|
# @example Response structure
|
@@ -2825,6 +2847,7 @@ module Aws::SSM
|
|
2825
2847
|
#
|
2826
2848
|
# * {Types::GetMaintenanceWindowResult#window_id #window_id} => String
|
2827
2849
|
# * {Types::GetMaintenanceWindowResult#name #name} => String
|
2850
|
+
# * {Types::GetMaintenanceWindowResult#description #description} => String
|
2828
2851
|
# * {Types::GetMaintenanceWindowResult#schedule #schedule} => String
|
2829
2852
|
# * {Types::GetMaintenanceWindowResult#duration #duration} => Integer
|
2830
2853
|
# * {Types::GetMaintenanceWindowResult#cutoff #cutoff} => Integer
|
@@ -2843,6 +2866,7 @@ module Aws::SSM
|
|
2843
2866
|
#
|
2844
2867
|
# resp.window_id #=> String
|
2845
2868
|
# resp.name #=> String
|
2869
|
+
# resp.description #=> String
|
2846
2870
|
# resp.schedule #=> String
|
2847
2871
|
# resp.duration #=> Integer
|
2848
2872
|
# resp.cutoff #=> Integer
|
@@ -2939,7 +2963,7 @@ module Aws::SSM
|
|
2939
2963
|
# resp.task_execution_id #=> String
|
2940
2964
|
# resp.task_arn #=> String
|
2941
2965
|
# resp.service_role #=> String
|
2942
|
-
# resp.type #=> String, one of "RUN_COMMAND"
|
2966
|
+
# resp.type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
2943
2967
|
# resp.task_parameters #=> Array
|
2944
2968
|
# resp.task_parameters[0] #=> Hash
|
2945
2969
|
# resp.task_parameters[0]["MaintenanceWindowTaskParameterName"].values #=> Array
|
@@ -2961,6 +2985,154 @@ module Aws::SSM
|
|
2961
2985
|
req.send_request(options)
|
2962
2986
|
end
|
2963
2987
|
|
2988
|
+
# Retrieves a task invocation. A task invocation is a specific task
|
2989
|
+
# executing on a specific target. Maintenance Windows report status for
|
2990
|
+
# all invocations.
|
2991
|
+
#
|
2992
|
+
# @option params [required, String] :window_execution_id
|
2993
|
+
# The ID of the Maintenance Window execution the task is part of.
|
2994
|
+
#
|
2995
|
+
# @option params [required, String] :task_id
|
2996
|
+
# The ID of the specific task in the Maintenance Window task that should
|
2997
|
+
# be retrieved.
|
2998
|
+
#
|
2999
|
+
# @option params [required, String] :invocation_id
|
3000
|
+
# The invocation ID to retrieve.
|
3001
|
+
#
|
3002
|
+
# @return [Types::GetMaintenanceWindowExecutionTaskInvocationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3003
|
+
#
|
3004
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#window_execution_id #window_execution_id} => String
|
3005
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#task_execution_id #task_execution_id} => String
|
3006
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#invocation_id #invocation_id} => String
|
3007
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#execution_id #execution_id} => String
|
3008
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#task_type #task_type} => String
|
3009
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#parameters #parameters} => String
|
3010
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#status #status} => String
|
3011
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#status_details #status_details} => String
|
3012
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#start_time #start_time} => Time
|
3013
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#end_time #end_time} => Time
|
3014
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#owner_information #owner_information} => String
|
3015
|
+
# * {Types::GetMaintenanceWindowExecutionTaskInvocationResult#window_target_id #window_target_id} => String
|
3016
|
+
#
|
3017
|
+
# @example Request syntax with placeholder values
|
3018
|
+
#
|
3019
|
+
# resp = client.get_maintenance_window_execution_task_invocation({
|
3020
|
+
# window_execution_id: "MaintenanceWindowExecutionId", # required
|
3021
|
+
# task_id: "MaintenanceWindowExecutionTaskId", # required
|
3022
|
+
# invocation_id: "MaintenanceWindowExecutionTaskInvocationId", # required
|
3023
|
+
# })
|
3024
|
+
#
|
3025
|
+
# @example Response structure
|
3026
|
+
#
|
3027
|
+
# resp.window_execution_id #=> String
|
3028
|
+
# resp.task_execution_id #=> String
|
3029
|
+
# resp.invocation_id #=> String
|
3030
|
+
# resp.execution_id #=> String
|
3031
|
+
# resp.task_type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
3032
|
+
# resp.parameters #=> String
|
3033
|
+
# resp.status #=> String, one of "PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "TIMED_OUT", "CANCELLING", "CANCELLED", "SKIPPED_OVERLAPPING"
|
3034
|
+
# resp.status_details #=> String
|
3035
|
+
# resp.start_time #=> Time
|
3036
|
+
# resp.end_time #=> Time
|
3037
|
+
# resp.owner_information #=> String
|
3038
|
+
# resp.window_target_id #=> String
|
3039
|
+
#
|
3040
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTaskInvocation AWS API Documentation
|
3041
|
+
#
|
3042
|
+
# @overload get_maintenance_window_execution_task_invocation(params = {})
|
3043
|
+
# @param [Hash] params ({})
|
3044
|
+
def get_maintenance_window_execution_task_invocation(params = {}, options = {})
|
3045
|
+
req = build_request(:get_maintenance_window_execution_task_invocation, params)
|
3046
|
+
req.send_request(options)
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
# Lists the tasks in a Maintenance Window.
|
3050
|
+
#
|
3051
|
+
# @option params [required, String] :window_id
|
3052
|
+
# The Maintenance Window ID that includes the task to retrieve.
|
3053
|
+
#
|
3054
|
+
# @option params [required, String] :window_task_id
|
3055
|
+
# The Maintenance Window task ID to retrieve.
|
3056
|
+
#
|
3057
|
+
# @return [Types::GetMaintenanceWindowTaskResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3058
|
+
#
|
3059
|
+
# * {Types::GetMaintenanceWindowTaskResult#window_id #window_id} => String
|
3060
|
+
# * {Types::GetMaintenanceWindowTaskResult#window_task_id #window_task_id} => String
|
3061
|
+
# * {Types::GetMaintenanceWindowTaskResult#targets #targets} => Array<Types::Target>
|
3062
|
+
# * {Types::GetMaintenanceWindowTaskResult#task_arn #task_arn} => String
|
3063
|
+
# * {Types::GetMaintenanceWindowTaskResult#service_role_arn #service_role_arn} => String
|
3064
|
+
# * {Types::GetMaintenanceWindowTaskResult#task_type #task_type} => String
|
3065
|
+
# * {Types::GetMaintenanceWindowTaskResult#task_parameters #task_parameters} => Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>
|
3066
|
+
# * {Types::GetMaintenanceWindowTaskResult#task_invocation_parameters #task_invocation_parameters} => Types::MaintenanceWindowTaskInvocationParameters
|
3067
|
+
# * {Types::GetMaintenanceWindowTaskResult#priority #priority} => Integer
|
3068
|
+
# * {Types::GetMaintenanceWindowTaskResult#max_concurrency #max_concurrency} => String
|
3069
|
+
# * {Types::GetMaintenanceWindowTaskResult#max_errors #max_errors} => String
|
3070
|
+
# * {Types::GetMaintenanceWindowTaskResult#logging_info #logging_info} => Types::LoggingInfo
|
3071
|
+
# * {Types::GetMaintenanceWindowTaskResult#name #name} => String
|
3072
|
+
# * {Types::GetMaintenanceWindowTaskResult#description #description} => String
|
3073
|
+
#
|
3074
|
+
# @example Request syntax with placeholder values
|
3075
|
+
#
|
3076
|
+
# resp = client.get_maintenance_window_task({
|
3077
|
+
# window_id: "MaintenanceWindowId", # required
|
3078
|
+
# window_task_id: "MaintenanceWindowTaskId", # required
|
3079
|
+
# })
|
3080
|
+
#
|
3081
|
+
# @example Response structure
|
3082
|
+
#
|
3083
|
+
# resp.window_id #=> String
|
3084
|
+
# resp.window_task_id #=> String
|
3085
|
+
# resp.targets #=> Array
|
3086
|
+
# resp.targets[0].key #=> String
|
3087
|
+
# resp.targets[0].values #=> Array
|
3088
|
+
# resp.targets[0].values[0] #=> String
|
3089
|
+
# resp.task_arn #=> String
|
3090
|
+
# resp.service_role_arn #=> String
|
3091
|
+
# resp.task_type #=> String, one of "RUN_COMMAND", "AUTOMATION", "STEP_FUNCTIONS", "LAMBDA"
|
3092
|
+
# resp.task_parameters #=> Hash
|
3093
|
+
# resp.task_parameters["MaintenanceWindowTaskParameterName"].values #=> Array
|
3094
|
+
# resp.task_parameters["MaintenanceWindowTaskParameterName"].values[0] #=> String
|
3095
|
+
# resp.task_invocation_parameters.run_command.comment #=> String
|
3096
|
+
# resp.task_invocation_parameters.run_command.document_hash #=> String
|
3097
|
+
# resp.task_invocation_parameters.run_command.document_hash_type #=> String, one of "Sha256", "Sha1"
|
3098
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_arn #=> String
|
3099
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_events #=> Array
|
3100
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_events[0] #=> String, one of "All", "InProgress", "Success", "TimedOut", "Cancelled", "Failed"
|
3101
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_type #=> String, one of "Command", "Invocation"
|
3102
|
+
# resp.task_invocation_parameters.run_command.output_s3_bucket_name #=> String
|
3103
|
+
# resp.task_invocation_parameters.run_command.output_s3_key_prefix #=> String
|
3104
|
+
# resp.task_invocation_parameters.run_command.parameters #=> Hash
|
3105
|
+
# resp.task_invocation_parameters.run_command.parameters["ParameterName"] #=> Array
|
3106
|
+
# resp.task_invocation_parameters.run_command.parameters["ParameterName"][0] #=> String
|
3107
|
+
# resp.task_invocation_parameters.run_command.service_role_arn #=> String
|
3108
|
+
# resp.task_invocation_parameters.run_command.timeout_seconds #=> Integer
|
3109
|
+
# resp.task_invocation_parameters.automation.document_version #=> String
|
3110
|
+
# resp.task_invocation_parameters.automation.parameters #=> Hash
|
3111
|
+
# resp.task_invocation_parameters.automation.parameters["AutomationParameterKey"] #=> Array
|
3112
|
+
# resp.task_invocation_parameters.automation.parameters["AutomationParameterKey"][0] #=> String
|
3113
|
+
# resp.task_invocation_parameters.step_functions.input #=> String
|
3114
|
+
# resp.task_invocation_parameters.step_functions.name #=> String
|
3115
|
+
# resp.task_invocation_parameters.lambda.client_context #=> String
|
3116
|
+
# resp.task_invocation_parameters.lambda.qualifier #=> String
|
3117
|
+
# resp.task_invocation_parameters.lambda.payload #=> String
|
3118
|
+
# resp.priority #=> Integer
|
3119
|
+
# resp.max_concurrency #=> String
|
3120
|
+
# resp.max_errors #=> String
|
3121
|
+
# resp.logging_info.s3_bucket_name #=> String
|
3122
|
+
# resp.logging_info.s3_key_prefix #=> String
|
3123
|
+
# resp.logging_info.s3_region #=> String
|
3124
|
+
# resp.name #=> String
|
3125
|
+
# resp.description #=> String
|
3126
|
+
#
|
3127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowTask AWS API Documentation
|
3128
|
+
#
|
3129
|
+
# @overload get_maintenance_window_task(params = {})
|
3130
|
+
# @param [Hash] params ({})
|
3131
|
+
def get_maintenance_window_task(params = {}, options = {})
|
3132
|
+
req = build_request(:get_maintenance_window_task, params)
|
3133
|
+
req.send_request(options)
|
3134
|
+
end
|
3135
|
+
|
2964
3136
|
# Get information about a parameter by using the parameter name.
|
2965
3137
|
#
|
2966
3138
|
# @option params [required, String] :name
|
@@ -3510,6 +3682,146 @@ module Aws::SSM
|
|
3510
3682
|
req.send_request(options)
|
3511
3683
|
end
|
3512
3684
|
|
3685
|
+
# For a specified resource ID, this API returns a list of compliance
|
3686
|
+
# statuses for different resource types. Currently, you can only specify
|
3687
|
+
# one resource ID per call. List results depend on the criteria
|
3688
|
+
# specified in the filter.
|
3689
|
+
#
|
3690
|
+
# @option params [Array<Types::ComplianceStringFilter>] :filters
|
3691
|
+
# One or more compliance filters. Use a filter to return a more specific
|
3692
|
+
# list of results.
|
3693
|
+
#
|
3694
|
+
# @option params [Array<String>] :resource_ids
|
3695
|
+
# The ID for the resources from which you want to get compliance
|
3696
|
+
# information. Currently, you can only specify one resource ID.
|
3697
|
+
#
|
3698
|
+
# @option params [Array<String>] :resource_types
|
3699
|
+
# The type of resource from which you want to get compliance
|
3700
|
+
# information. Currently, the only supported resource type is
|
3701
|
+
# `ManagedInstance`.
|
3702
|
+
#
|
3703
|
+
# @option params [String] :next_token
|
3704
|
+
# A token to start the list. Use this token to get the next set of
|
3705
|
+
# results.
|
3706
|
+
#
|
3707
|
+
# @option params [Integer] :max_results
|
3708
|
+
# The maximum number of items to return for this call. The call also
|
3709
|
+
# returns a token that you can specify in a subsequent call to get the
|
3710
|
+
# next set of results.
|
3711
|
+
#
|
3712
|
+
# @return [Types::ListComplianceItemsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3713
|
+
#
|
3714
|
+
# * {Types::ListComplianceItemsResult#compliance_items #compliance_items} => Array<Types::ComplianceItem>
|
3715
|
+
# * {Types::ListComplianceItemsResult#next_token #next_token} => String
|
3716
|
+
#
|
3717
|
+
# @example Request syntax with placeholder values
|
3718
|
+
#
|
3719
|
+
# resp = client.list_compliance_items({
|
3720
|
+
# filters: [
|
3721
|
+
# {
|
3722
|
+
# key: "ComplianceStringFilterKey",
|
3723
|
+
# values: ["ComplianceFilterValue"],
|
3724
|
+
# type: "EQUAL", # accepts EQUAL, NOT_EQUAL, BEGIN_WITH, LESS_THAN, GREATER_THAN
|
3725
|
+
# },
|
3726
|
+
# ],
|
3727
|
+
# resource_ids: ["ComplianceResourceId"],
|
3728
|
+
# resource_types: ["ComplianceResourceType"],
|
3729
|
+
# next_token: "NextToken",
|
3730
|
+
# max_results: 1,
|
3731
|
+
# })
|
3732
|
+
#
|
3733
|
+
# @example Response structure
|
3734
|
+
#
|
3735
|
+
# resp.compliance_items #=> Array
|
3736
|
+
# resp.compliance_items[0].compliance_type #=> String
|
3737
|
+
# resp.compliance_items[0].resource_type #=> String
|
3738
|
+
# resp.compliance_items[0].resource_id #=> String
|
3739
|
+
# resp.compliance_items[0].id #=> String
|
3740
|
+
# resp.compliance_items[0].title #=> String
|
3741
|
+
# resp.compliance_items[0].status #=> String, one of "COMPLIANT", "NON_COMPLIANT"
|
3742
|
+
# resp.compliance_items[0].severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL", "UNSPECIFIED"
|
3743
|
+
# resp.compliance_items[0].execution_summary.execution_time #=> Time
|
3744
|
+
# resp.compliance_items[0].execution_summary.execution_id #=> String
|
3745
|
+
# resp.compliance_items[0].execution_summary.execution_type #=> String
|
3746
|
+
# resp.compliance_items[0].details #=> Hash
|
3747
|
+
# resp.compliance_items[0].details["AttributeName"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
3748
|
+
# resp.next_token #=> String
|
3749
|
+
#
|
3750
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListComplianceItems AWS API Documentation
|
3751
|
+
#
|
3752
|
+
# @overload list_compliance_items(params = {})
|
3753
|
+
# @param [Hash] params ({})
|
3754
|
+
def list_compliance_items(params = {}, options = {})
|
3755
|
+
req = build_request(:list_compliance_items, params)
|
3756
|
+
req.send_request(options)
|
3757
|
+
end
|
3758
|
+
|
3759
|
+
# Returns a summary count of compliant and non-compliant resources for a
|
3760
|
+
# compliance type. For example, this call can return State Manager
|
3761
|
+
# associations, patches, or custom compliance types according to the
|
3762
|
+
# filter criteria you specify.
|
3763
|
+
#
|
3764
|
+
# @option params [Array<Types::ComplianceStringFilter>] :filters
|
3765
|
+
# One or more compliance or inventory filters. Use a filter to return a
|
3766
|
+
# more specific list of results.
|
3767
|
+
#
|
3768
|
+
# @option params [String] :next_token
|
3769
|
+
# A token to start the list. Use this token to get the next set of
|
3770
|
+
# results.
|
3771
|
+
#
|
3772
|
+
# @option params [Integer] :max_results
|
3773
|
+
# The maximum number of items to return for this call. Currently, you
|
3774
|
+
# can specify null or 50. The call also returns a token that you can
|
3775
|
+
# specify in a subsequent call to get the next set of results.
|
3776
|
+
#
|
3777
|
+
# @return [Types::ListComplianceSummariesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3778
|
+
#
|
3779
|
+
# * {Types::ListComplianceSummariesResult#compliance_summary_items #compliance_summary_items} => Array<Types::ComplianceSummaryItem>
|
3780
|
+
# * {Types::ListComplianceSummariesResult#next_token #next_token} => String
|
3781
|
+
#
|
3782
|
+
# @example Request syntax with placeholder values
|
3783
|
+
#
|
3784
|
+
# resp = client.list_compliance_summaries({
|
3785
|
+
# filters: [
|
3786
|
+
# {
|
3787
|
+
# key: "ComplianceStringFilterKey",
|
3788
|
+
# values: ["ComplianceFilterValue"],
|
3789
|
+
# type: "EQUAL", # accepts EQUAL, NOT_EQUAL, BEGIN_WITH, LESS_THAN, GREATER_THAN
|
3790
|
+
# },
|
3791
|
+
# ],
|
3792
|
+
# next_token: "NextToken",
|
3793
|
+
# max_results: 1,
|
3794
|
+
# })
|
3795
|
+
#
|
3796
|
+
# @example Response structure
|
3797
|
+
#
|
3798
|
+
# resp.compliance_summary_items #=> Array
|
3799
|
+
# resp.compliance_summary_items[0].compliance_type #=> String
|
3800
|
+
# resp.compliance_summary_items[0].compliant_summary.compliant_count #=> Integer
|
3801
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.critical_count #=> Integer
|
3802
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.high_count #=> Integer
|
3803
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.medium_count #=> Integer
|
3804
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.low_count #=> Integer
|
3805
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.informational_count #=> Integer
|
3806
|
+
# resp.compliance_summary_items[0].compliant_summary.severity_summary.unspecified_count #=> Integer
|
3807
|
+
# resp.compliance_summary_items[0].non_compliant_summary.non_compliant_count #=> Integer
|
3808
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.critical_count #=> Integer
|
3809
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.high_count #=> Integer
|
3810
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.medium_count #=> Integer
|
3811
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.low_count #=> Integer
|
3812
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.informational_count #=> Integer
|
3813
|
+
# resp.compliance_summary_items[0].non_compliant_summary.severity_summary.unspecified_count #=> Integer
|
3814
|
+
# resp.next_token #=> String
|
3815
|
+
#
|
3816
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListComplianceSummaries AWS API Documentation
|
3817
|
+
#
|
3818
|
+
# @overload list_compliance_summaries(params = {})
|
3819
|
+
# @param [Hash] params ({})
|
3820
|
+
def list_compliance_summaries(params = {}, options = {})
|
3821
|
+
req = build_request(:list_compliance_summaries, params)
|
3822
|
+
req.send_request(options)
|
3823
|
+
end
|
3824
|
+
|
3513
3825
|
# List all versions for a document.
|
3514
3826
|
#
|
3515
3827
|
# @option params [required, String] :name
|
@@ -3675,6 +3987,79 @@ module Aws::SSM
|
|
3675
3987
|
req.send_request(options)
|
3676
3988
|
end
|
3677
3989
|
|
3990
|
+
# Returns a resource-level summary count. The summary includes
|
3991
|
+
# information about compliant and non-compliant statuses and detailed
|
3992
|
+
# compliance-item severity counts, according to the filter criteria you
|
3993
|
+
# specify.
|
3994
|
+
#
|
3995
|
+
# @option params [Array<Types::ComplianceStringFilter>] :filters
|
3996
|
+
# One or more filters. Use a filter to return a more specific list of
|
3997
|
+
# results.
|
3998
|
+
#
|
3999
|
+
# @option params [String] :next_token
|
4000
|
+
# A token to start the list. Use this token to get the next set of
|
4001
|
+
# results.
|
4002
|
+
#
|
4003
|
+
# @option params [Integer] :max_results
|
4004
|
+
# The maximum number of items to return for this call. The call also
|
4005
|
+
# returns a token that you can specify in a subsequent call to get the
|
4006
|
+
# next set of results.
|
4007
|
+
#
|
4008
|
+
# @return [Types::ListResourceComplianceSummariesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4009
|
+
#
|
4010
|
+
# * {Types::ListResourceComplianceSummariesResult#resource_compliance_summary_items #resource_compliance_summary_items} => Array<Types::ResourceComplianceSummaryItem>
|
4011
|
+
# * {Types::ListResourceComplianceSummariesResult#next_token #next_token} => String
|
4012
|
+
#
|
4013
|
+
# @example Request syntax with placeholder values
|
4014
|
+
#
|
4015
|
+
# resp = client.list_resource_compliance_summaries({
|
4016
|
+
# filters: [
|
4017
|
+
# {
|
4018
|
+
# key: "ComplianceStringFilterKey",
|
4019
|
+
# values: ["ComplianceFilterValue"],
|
4020
|
+
# type: "EQUAL", # accepts EQUAL, NOT_EQUAL, BEGIN_WITH, LESS_THAN, GREATER_THAN
|
4021
|
+
# },
|
4022
|
+
# ],
|
4023
|
+
# next_token: "NextToken",
|
4024
|
+
# max_results: 1,
|
4025
|
+
# })
|
4026
|
+
#
|
4027
|
+
# @example Response structure
|
4028
|
+
#
|
4029
|
+
# resp.resource_compliance_summary_items #=> Array
|
4030
|
+
# resp.resource_compliance_summary_items[0].compliance_type #=> String
|
4031
|
+
# resp.resource_compliance_summary_items[0].resource_type #=> String
|
4032
|
+
# resp.resource_compliance_summary_items[0].resource_id #=> String
|
4033
|
+
# resp.resource_compliance_summary_items[0].status #=> String, one of "COMPLIANT", "NON_COMPLIANT"
|
4034
|
+
# resp.resource_compliance_summary_items[0].overall_severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL", "UNSPECIFIED"
|
4035
|
+
# resp.resource_compliance_summary_items[0].execution_summary.execution_time #=> Time
|
4036
|
+
# resp.resource_compliance_summary_items[0].execution_summary.execution_id #=> String
|
4037
|
+
# resp.resource_compliance_summary_items[0].execution_summary.execution_type #=> String
|
4038
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.compliant_count #=> Integer
|
4039
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.critical_count #=> Integer
|
4040
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.high_count #=> Integer
|
4041
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.medium_count #=> Integer
|
4042
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.low_count #=> Integer
|
4043
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.informational_count #=> Integer
|
4044
|
+
# resp.resource_compliance_summary_items[0].compliant_summary.severity_summary.unspecified_count #=> Integer
|
4045
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.non_compliant_count #=> Integer
|
4046
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.critical_count #=> Integer
|
4047
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.high_count #=> Integer
|
4048
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.medium_count #=> Integer
|
4049
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.low_count #=> Integer
|
4050
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.informational_count #=> Integer
|
4051
|
+
# resp.resource_compliance_summary_items[0].non_compliant_summary.severity_summary.unspecified_count #=> Integer
|
4052
|
+
# resp.next_token #=> String
|
4053
|
+
#
|
4054
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListResourceComplianceSummaries AWS API Documentation
|
4055
|
+
#
|
4056
|
+
# @overload list_resource_compliance_summaries(params = {})
|
4057
|
+
# @param [Hash] params ({})
|
4058
|
+
def list_resource_compliance_summaries(params = {}, options = {})
|
4059
|
+
req = build_request(:list_resource_compliance_summaries, params)
|
4060
|
+
req.send_request(options)
|
4061
|
+
end
|
4062
|
+
|
3678
4063
|
# Lists your resource data sync configurations. Includes information
|
3679
4064
|
# about the last time a sync attempted to start, the last sync status,
|
3680
4065
|
# and the last time a sync successfully completed.
|
@@ -3809,6 +4194,76 @@ module Aws::SSM
|
|
3809
4194
|
req.send_request(options)
|
3810
4195
|
end
|
3811
4196
|
|
4197
|
+
# Registers a compliance type and other compliance details on a
|
4198
|
+
# designated resource. This API lets you register custom compliance
|
4199
|
+
# details with a resource. This call overwrites existing compliance
|
4200
|
+
# information on the resource, so you must provide a full list of
|
4201
|
+
# compliance items each time you send the request.
|
4202
|
+
#
|
4203
|
+
# @option params [required, String] :resource_id
|
4204
|
+
# Specify an ID for this resource. For a managed instance, this is the
|
4205
|
+
# instance ID.
|
4206
|
+
#
|
4207
|
+
# @option params [required, String] :resource_type
|
4208
|
+
# Specify the type of resource. `ManagedInstance` is currently the only
|
4209
|
+
# supported resource type.
|
4210
|
+
#
|
4211
|
+
# @option params [required, String] :compliance_type
|
4212
|
+
# Specify the compliance type. For example, specify Association (for a
|
4213
|
+
# State Manager association), Patch, or Custom:`string`.
|
4214
|
+
#
|
4215
|
+
# @option params [required, Types::ComplianceExecutionSummary] :execution_summary
|
4216
|
+
# A summary of the call execution that includes an execution ID, the
|
4217
|
+
# type of execution (for example, `Command`), and the date/time of the
|
4218
|
+
# execution using a datetime object that is saved in the following
|
4219
|
+
# format: yyyy-MM-dd'T'HH:mm:ss'Z'.
|
4220
|
+
#
|
4221
|
+
# @option params [required, Array<Types::ComplianceItemEntry>] :items
|
4222
|
+
# Information about the compliance as defined by the resource type. For
|
4223
|
+
# example, for a patch compliance type, `Items` includes information
|
4224
|
+
# about the PatchSeverity, Classification, etc.
|
4225
|
+
#
|
4226
|
+
# @option params [String] :item_content_hash
|
4227
|
+
# MD5 or Sha256 content hash. The content hash is used to determine if
|
4228
|
+
# existing information should be overwritten or ignored. If the content
|
4229
|
+
# hashes match, ,the request to put compliance information is ignored.
|
4230
|
+
#
|
4231
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4232
|
+
#
|
4233
|
+
# @example Request syntax with placeholder values
|
4234
|
+
#
|
4235
|
+
# resp = client.put_compliance_items({
|
4236
|
+
# resource_id: "ComplianceResourceId", # required
|
4237
|
+
# resource_type: "ComplianceResourceType", # required
|
4238
|
+
# compliance_type: "ComplianceTypeName", # required
|
4239
|
+
# execution_summary: { # required
|
4240
|
+
# execution_time: Time.now, # required
|
4241
|
+
# execution_id: "ComplianceExecutionId",
|
4242
|
+
# execution_type: "ComplianceExecutionType",
|
4243
|
+
# },
|
4244
|
+
# items: [ # required
|
4245
|
+
# {
|
4246
|
+
# id: "ComplianceItemId",
|
4247
|
+
# title: "ComplianceItemTitle",
|
4248
|
+
# severity: "CRITICAL", # required, accepts CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED
|
4249
|
+
# status: "COMPLIANT", # required, accepts COMPLIANT, NON_COMPLIANT
|
4250
|
+
# details: {
|
4251
|
+
# "AttributeName" => "AttributeValue",
|
4252
|
+
# },
|
4253
|
+
# },
|
4254
|
+
# ],
|
4255
|
+
# item_content_hash: "ComplianceItemContentHash",
|
4256
|
+
# })
|
4257
|
+
#
|
4258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutComplianceItems AWS API Documentation
|
4259
|
+
#
|
4260
|
+
# @overload put_compliance_items(params = {})
|
4261
|
+
# @param [Hash] params ({})
|
4262
|
+
def put_compliance_items(params = {}, options = {})
|
4263
|
+
req = build_request(:put_compliance_items, params)
|
4264
|
+
req.send_request(options)
|
4265
|
+
end
|
4266
|
+
|
3812
4267
|
# Bulk update custom inventory items on one more instance. The request
|
3813
4268
|
# adds an inventory item, if it doesn't already exist, or updates an
|
3814
4269
|
# inventory item, if it does exist.
|
@@ -3837,6 +4292,9 @@ module Aws::SSM
|
|
3837
4292
|
# "AttributeName" => "AttributeValue",
|
3838
4293
|
# },
|
3839
4294
|
# ],
|
4295
|
+
# context: {
|
4296
|
+
# "AttributeName" => "AttributeValue",
|
4297
|
+
# },
|
3840
4298
|
# },
|
3841
4299
|
# ],
|
3842
4300
|
# })
|
@@ -3983,6 +4441,12 @@ module Aws::SSM
|
|
3983
4441
|
# raised while running tasks for these targets in this Maintenance
|
3984
4442
|
# Window.
|
3985
4443
|
#
|
4444
|
+
# @option params [String] :name
|
4445
|
+
# An optional name for the target.
|
4446
|
+
#
|
4447
|
+
# @option params [String] :description
|
4448
|
+
# An optional description for the target.
|
4449
|
+
#
|
3986
4450
|
# @option params [String] :client_token
|
3987
4451
|
# User-provided idempotency token.
|
3988
4452
|
#
|
@@ -4005,6 +4469,8 @@ module Aws::SSM
|
|
4005
4469
|
# },
|
4006
4470
|
# ],
|
4007
4471
|
# owner_information: "OwnerInformation",
|
4472
|
+
# name: "MaintenanceWindowName",
|
4473
|
+
# description: "MaintenanceWindowDescription",
|
4008
4474
|
# client_token: "ClientToken",
|
4009
4475
|
# })
|
4010
4476
|
#
|
@@ -4043,6 +4509,10 @@ module Aws::SSM
|
|
4043
4509
|
# @option params [Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>] :task_parameters
|
4044
4510
|
# The parameters that should be passed to the task when it is executed.
|
4045
4511
|
#
|
4512
|
+
# @option params [Types::MaintenanceWindowTaskInvocationParameters] :task_invocation_parameters
|
4513
|
+
# Parameters the task should use during execution. Populate only the
|
4514
|
+
# fields that match the task type. All other fields should be empty.
|
4515
|
+
#
|
4046
4516
|
# @option params [Integer] :priority
|
4047
4517
|
# The priority of the task in the Maintenance Window, the lower the
|
4048
4518
|
# number the higher the priority. Tasks in a Maintenance Window are
|
@@ -4060,6 +4530,12 @@ module Aws::SSM
|
|
4060
4530
|
# A structure containing information about an Amazon S3 bucket to write
|
4061
4531
|
# instance-level logs to.
|
4062
4532
|
#
|
4533
|
+
# @option params [String] :name
|
4534
|
+
# An optional name for the task.
|
4535
|
+
#
|
4536
|
+
# @option params [String] :description
|
4537
|
+
# An optional description for the task.
|
4538
|
+
#
|
4063
4539
|
# @option params [String] :client_token
|
4064
4540
|
# User-provided idempotency token.
|
4065
4541
|
#
|
@@ -4082,12 +4558,46 @@ module Aws::SSM
|
|
4082
4558
|
# ],
|
4083
4559
|
# task_arn: "MaintenanceWindowTaskArn", # required
|
4084
4560
|
# service_role_arn: "ServiceRole", # required
|
4085
|
-
# task_type: "RUN_COMMAND", # required, accepts RUN_COMMAND
|
4561
|
+
# task_type: "RUN_COMMAND", # required, accepts RUN_COMMAND, AUTOMATION, STEP_FUNCTIONS, LAMBDA
|
4086
4562
|
# task_parameters: {
|
4087
4563
|
# "MaintenanceWindowTaskParameterName" => {
|
4088
4564
|
# values: ["MaintenanceWindowTaskParameterValue"],
|
4089
4565
|
# },
|
4090
4566
|
# },
|
4567
|
+
# task_invocation_parameters: {
|
4568
|
+
# run_command: {
|
4569
|
+
# comment: "Comment",
|
4570
|
+
# document_hash: "DocumentHash",
|
4571
|
+
# document_hash_type: "Sha256", # accepts Sha256, Sha1
|
4572
|
+
# notification_config: {
|
4573
|
+
# notification_arn: "NotificationArn",
|
4574
|
+
# notification_events: ["All"], # accepts All, InProgress, Success, TimedOut, Cancelled, Failed
|
4575
|
+
# notification_type: "Command", # accepts Command, Invocation
|
4576
|
+
# },
|
4577
|
+
# output_s3_bucket_name: "S3BucketName",
|
4578
|
+
# output_s3_key_prefix: "S3KeyPrefix",
|
4579
|
+
# parameters: {
|
4580
|
+
# "ParameterName" => ["ParameterValue"],
|
4581
|
+
# },
|
4582
|
+
# service_role_arn: "ServiceRole",
|
4583
|
+
# timeout_seconds: 1,
|
4584
|
+
# },
|
4585
|
+
# automation: {
|
4586
|
+
# document_version: "DocumentVersion",
|
4587
|
+
# parameters: {
|
4588
|
+
# "AutomationParameterKey" => ["AutomationParameterValue"],
|
4589
|
+
# },
|
4590
|
+
# },
|
4591
|
+
# step_functions: {
|
4592
|
+
# input: "MaintenanceWindowStepFunctionsInput",
|
4593
|
+
# name: "MaintenanceWindowStepFunctionsName",
|
4594
|
+
# },
|
4595
|
+
# lambda: {
|
4596
|
+
# client_context: "MaintenanceWindowLambdaClientContext",
|
4597
|
+
# qualifier: "MaintenanceWindowLambdaQualifier",
|
4598
|
+
# payload: "data",
|
4599
|
+
# },
|
4600
|
+
# },
|
4091
4601
|
# priority: 1,
|
4092
4602
|
# max_concurrency: "MaxConcurrency", # required
|
4093
4603
|
# max_errors: "MaxErrors", # required
|
@@ -4096,6 +4606,8 @@ module Aws::SSM
|
|
4096
4606
|
# s3_key_prefix: "S3KeyPrefix",
|
4097
4607
|
# s3_region: "S3Region", # required
|
4098
4608
|
# },
|
4609
|
+
# name: "MaintenanceWindowName",
|
4610
|
+
# description: "MaintenanceWindowDescription",
|
4099
4611
|
# client_token: "ClientToken",
|
4100
4612
|
# })
|
4101
4613
|
#
|
@@ -4674,6 +5186,9 @@ module Aws::SSM
|
|
4674
5186
|
# @option params [String] :name
|
4675
5187
|
# The name of the Maintenance Window.
|
4676
5188
|
#
|
5189
|
+
# @option params [String] :description
|
5190
|
+
# An optional description for the update request.
|
5191
|
+
#
|
4677
5192
|
# @option params [String] :schedule
|
4678
5193
|
# The schedule of the Maintenance Window in the form of a cron or rate
|
4679
5194
|
# expression.
|
@@ -4692,10 +5207,16 @@ module Aws::SSM
|
|
4692
5207
|
# @option params [Boolean] :enabled
|
4693
5208
|
# Whether the Maintenance Window is enabled.
|
4694
5209
|
#
|
5210
|
+
# @option params [Boolean] :replace
|
5211
|
+
# If you specify True, then all fields that are required by the
|
5212
|
+
# CreateMaintenanceWindow API are also required for this API request.
|
5213
|
+
# Optional fields that are not specified will be set to null.
|
5214
|
+
#
|
4695
5215
|
# @return [Types::UpdateMaintenanceWindowResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4696
5216
|
#
|
4697
5217
|
# * {Types::UpdateMaintenanceWindowResult#window_id #window_id} => String
|
4698
5218
|
# * {Types::UpdateMaintenanceWindowResult#name #name} => String
|
5219
|
+
# * {Types::UpdateMaintenanceWindowResult#description #description} => String
|
4699
5220
|
# * {Types::UpdateMaintenanceWindowResult#schedule #schedule} => String
|
4700
5221
|
# * {Types::UpdateMaintenanceWindowResult#duration #duration} => Integer
|
4701
5222
|
# * {Types::UpdateMaintenanceWindowResult#cutoff #cutoff} => Integer
|
@@ -4707,17 +5228,20 @@ module Aws::SSM
|
|
4707
5228
|
# resp = client.update_maintenance_window({
|
4708
5229
|
# window_id: "MaintenanceWindowId", # required
|
4709
5230
|
# name: "MaintenanceWindowName",
|
5231
|
+
# description: "MaintenanceWindowDescription",
|
4710
5232
|
# schedule: "MaintenanceWindowSchedule",
|
4711
5233
|
# duration: 1,
|
4712
5234
|
# cutoff: 1,
|
4713
5235
|
# allow_unassociated_targets: false,
|
4714
5236
|
# enabled: false,
|
5237
|
+
# replace: false,
|
4715
5238
|
# })
|
4716
5239
|
#
|
4717
5240
|
# @example Response structure
|
4718
5241
|
#
|
4719
5242
|
# resp.window_id #=> String
|
4720
5243
|
# resp.name #=> String
|
5244
|
+
# resp.description #=> String
|
4721
5245
|
# resp.schedule #=> String
|
4722
5246
|
# resp.duration #=> Integer
|
4723
5247
|
# resp.cutoff #=> Integer
|
@@ -4733,6 +5257,315 @@ module Aws::SSM
|
|
4733
5257
|
req.send_request(options)
|
4734
5258
|
end
|
4735
5259
|
|
5260
|
+
# Modifies the target of an existing Maintenance Window. You can't
|
5261
|
+
# change the target type, but you can change the following:
|
5262
|
+
#
|
5263
|
+
# The target from being an ID target to a Tag target, or a Tag target to
|
5264
|
+
# an ID target.
|
5265
|
+
#
|
5266
|
+
# The IDs of an ID target.
|
5267
|
+
#
|
5268
|
+
# The tags of a Tag target.
|
5269
|
+
#
|
5270
|
+
# The Owner.
|
5271
|
+
#
|
5272
|
+
# The Name.
|
5273
|
+
#
|
5274
|
+
# The Description.
|
5275
|
+
#
|
5276
|
+
# Also note that if a parameter is null, then the corresponding field is
|
5277
|
+
# not modified.
|
5278
|
+
#
|
5279
|
+
# @option params [required, String] :window_id
|
5280
|
+
# The Maintenance Window ID for which you want to modify the target.
|
5281
|
+
#
|
5282
|
+
# @option params [required, String] :window_target_id
|
5283
|
+
# The target ID that you want to modify.
|
5284
|
+
#
|
5285
|
+
# @option params [Array<Types::Target>] :targets
|
5286
|
+
# The targets that you want to add or replace.
|
5287
|
+
#
|
5288
|
+
# @option params [String] :owner_information
|
5289
|
+
# User-provided value that will be included in any CloudWatch events
|
5290
|
+
# raised while running tasks for these targets in this Maintenance
|
5291
|
+
# Window.
|
5292
|
+
#
|
5293
|
+
# @option params [String] :name
|
5294
|
+
# A name for the update.
|
5295
|
+
#
|
5296
|
+
# @option params [String] :description
|
5297
|
+
# An optional description for the update.
|
5298
|
+
#
|
5299
|
+
# @option params [Boolean] :replace
|
5300
|
+
# If you specify True, then all fields that are required by the
|
5301
|
+
# RegisterTargetWithMaintenanceWindow API are also required for this API
|
5302
|
+
# request. Optional fields that are not specified will be set to null.
|
5303
|
+
#
|
5304
|
+
# @return [Types::UpdateMaintenanceWindowTargetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5305
|
+
#
|
5306
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#window_id #window_id} => String
|
5307
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#window_target_id #window_target_id} => String
|
5308
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#targets #targets} => Array<Types::Target>
|
5309
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#owner_information #owner_information} => String
|
5310
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#name #name} => String
|
5311
|
+
# * {Types::UpdateMaintenanceWindowTargetResult#description #description} => String
|
5312
|
+
#
|
5313
|
+
# @example Request syntax with placeholder values
|
5314
|
+
#
|
5315
|
+
# resp = client.update_maintenance_window_target({
|
5316
|
+
# window_id: "MaintenanceWindowId", # required
|
5317
|
+
# window_target_id: "MaintenanceWindowTargetId", # required
|
5318
|
+
# targets: [
|
5319
|
+
# {
|
5320
|
+
# key: "TargetKey",
|
5321
|
+
# values: ["TargetValue"],
|
5322
|
+
# },
|
5323
|
+
# ],
|
5324
|
+
# owner_information: "OwnerInformation",
|
5325
|
+
# name: "MaintenanceWindowName",
|
5326
|
+
# description: "MaintenanceWindowDescription",
|
5327
|
+
# replace: false,
|
5328
|
+
# })
|
5329
|
+
#
|
5330
|
+
# @example Response structure
|
5331
|
+
#
|
5332
|
+
# resp.window_id #=> String
|
5333
|
+
# resp.window_target_id #=> String
|
5334
|
+
# resp.targets #=> Array
|
5335
|
+
# resp.targets[0].key #=> String
|
5336
|
+
# resp.targets[0].values #=> Array
|
5337
|
+
# resp.targets[0].values[0] #=> String
|
5338
|
+
# resp.owner_information #=> String
|
5339
|
+
# resp.name #=> String
|
5340
|
+
# resp.description #=> String
|
5341
|
+
#
|
5342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowTarget AWS API Documentation
|
5343
|
+
#
|
5344
|
+
# @overload update_maintenance_window_target(params = {})
|
5345
|
+
# @param [Hash] params ({})
|
5346
|
+
def update_maintenance_window_target(params = {}, options = {})
|
5347
|
+
req = build_request(:update_maintenance_window_target, params)
|
5348
|
+
req.send_request(options)
|
5349
|
+
end
|
5350
|
+
|
5351
|
+
# Modifies a task assigned to a Maintenance Window. You can't change
|
5352
|
+
# the task type, but you can change the following:
|
5353
|
+
#
|
5354
|
+
# The Task Arn. For example, you can change a RUN\_COMMAND task from
|
5355
|
+
# AWS-RunPowerShellScript to AWS-RunShellScript.
|
5356
|
+
#
|
5357
|
+
# The service role ARN.
|
5358
|
+
#
|
5359
|
+
# The task parameters.
|
5360
|
+
#
|
5361
|
+
# The task priority.
|
5362
|
+
#
|
5363
|
+
# The task MaxConcurrency and MaxErrors.
|
5364
|
+
#
|
5365
|
+
# The log location.
|
5366
|
+
#
|
5367
|
+
# If a parameter is null, then the corresponding field is not modified.
|
5368
|
+
# Also, if you set Replace to true, then all fields required by the
|
5369
|
+
# RegisterTaskWithMaintenanceWindow operation are required for this
|
5370
|
+
# request. Optional fields that aren't specified are be set to null.
|
5371
|
+
#
|
5372
|
+
# @option params [required, String] :window_id
|
5373
|
+
# The Maintenance Window ID that contains the task that you want to
|
5374
|
+
# modify.
|
5375
|
+
#
|
5376
|
+
# @option params [required, String] :window_task_id
|
5377
|
+
# The task ID that you want to modify.
|
5378
|
+
#
|
5379
|
+
# @option params [Array<Types::Target>] :targets
|
5380
|
+
# The targets (either instances or tags) that you want to modify.
|
5381
|
+
# Instances are specified using
|
5382
|
+
# Key=instanceids,Values=instanceID\_1,instanceID\_2. Tags are specified
|
5383
|
+
# using Key=tag\_name,Values=tag\_value.
|
5384
|
+
#
|
5385
|
+
# @option params [String] :task_arn
|
5386
|
+
# The task ARN that you want to modify.
|
5387
|
+
#
|
5388
|
+
# @option params [String] :service_role_arn
|
5389
|
+
# The IAM service role ARN that you want to modify. The system assumes
|
5390
|
+
# this role during task exectuion.
|
5391
|
+
#
|
5392
|
+
# @option params [Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>] :task_parameters
|
5393
|
+
# The parameters that you want to modify. The map has the following
|
5394
|
+
# format:
|
5395
|
+
#
|
5396
|
+
# Key: string, between 1 and 255 characters
|
5397
|
+
#
|
5398
|
+
# Value: an array of strings, each string is between 1 and 255
|
5399
|
+
# characters
|
5400
|
+
#
|
5401
|
+
# @option params [Types::MaintenanceWindowTaskInvocationParameters] :task_invocation_parameters
|
5402
|
+
# Parameters the task should use during execution. Populate only the
|
5403
|
+
# fields that match the task type. All other fields should be empty.
|
5404
|
+
#
|
5405
|
+
# @option params [Integer] :priority
|
5406
|
+
# The new task priority that you want to specify. The lower the number,
|
5407
|
+
# the higher the priority. Tasks that have the same priority are
|
5408
|
+
# scheduled in parallel.
|
5409
|
+
#
|
5410
|
+
# @option params [String] :max_concurrency
|
5411
|
+
# The new `MaxConcurrency` value you want to specify. `MaxConcurrency`
|
5412
|
+
# is the number of targets that are allowed to run this task in
|
5413
|
+
# parallel.
|
5414
|
+
#
|
5415
|
+
# @option params [String] :max_errors
|
5416
|
+
# The new `MaxErrors` value you want to specify. `MaxErrors` is the
|
5417
|
+
# maximum number of errors that are allowed before the task stops being
|
5418
|
+
# scheduled.
|
5419
|
+
#
|
5420
|
+
# @option params [Types::LoggingInfo] :logging_info
|
5421
|
+
# The new logging location in Amazon S3 that you want to specify.
|
5422
|
+
#
|
5423
|
+
# @option params [String] :name
|
5424
|
+
# The new task name that you want to specify.
|
5425
|
+
#
|
5426
|
+
# @option params [String] :description
|
5427
|
+
# The new task description that you want to specify.
|
5428
|
+
#
|
5429
|
+
# @option params [Boolean] :replace
|
5430
|
+
# If you specify True, then all fields that are required by the
|
5431
|
+
# RegisterTaskWithMaintenanceWndow API are also required for this API
|
5432
|
+
# request. Optional fields that are not specified will be set to null.
|
5433
|
+
#
|
5434
|
+
# @return [Types::UpdateMaintenanceWindowTaskResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5435
|
+
#
|
5436
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#window_id #window_id} => String
|
5437
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#window_task_id #window_task_id} => String
|
5438
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#targets #targets} => Array<Types::Target>
|
5439
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#task_arn #task_arn} => String
|
5440
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#service_role_arn #service_role_arn} => String
|
5441
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#task_parameters #task_parameters} => Hash<String,Types::MaintenanceWindowTaskParameterValueExpression>
|
5442
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#task_invocation_parameters #task_invocation_parameters} => Types::MaintenanceWindowTaskInvocationParameters
|
5443
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#priority #priority} => Integer
|
5444
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#max_concurrency #max_concurrency} => String
|
5445
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#max_errors #max_errors} => String
|
5446
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#logging_info #logging_info} => Types::LoggingInfo
|
5447
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#name #name} => String
|
5448
|
+
# * {Types::UpdateMaintenanceWindowTaskResult#description #description} => String
|
5449
|
+
#
|
5450
|
+
# @example Request syntax with placeholder values
|
5451
|
+
#
|
5452
|
+
# resp = client.update_maintenance_window_task({
|
5453
|
+
# window_id: "MaintenanceWindowId", # required
|
5454
|
+
# window_task_id: "MaintenanceWindowTaskId", # required
|
5455
|
+
# targets: [
|
5456
|
+
# {
|
5457
|
+
# key: "TargetKey",
|
5458
|
+
# values: ["TargetValue"],
|
5459
|
+
# },
|
5460
|
+
# ],
|
5461
|
+
# task_arn: "MaintenanceWindowTaskArn",
|
5462
|
+
# service_role_arn: "ServiceRole",
|
5463
|
+
# task_parameters: {
|
5464
|
+
# "MaintenanceWindowTaskParameterName" => {
|
5465
|
+
# values: ["MaintenanceWindowTaskParameterValue"],
|
5466
|
+
# },
|
5467
|
+
# },
|
5468
|
+
# task_invocation_parameters: {
|
5469
|
+
# run_command: {
|
5470
|
+
# comment: "Comment",
|
5471
|
+
# document_hash: "DocumentHash",
|
5472
|
+
# document_hash_type: "Sha256", # accepts Sha256, Sha1
|
5473
|
+
# notification_config: {
|
5474
|
+
# notification_arn: "NotificationArn",
|
5475
|
+
# notification_events: ["All"], # accepts All, InProgress, Success, TimedOut, Cancelled, Failed
|
5476
|
+
# notification_type: "Command", # accepts Command, Invocation
|
5477
|
+
# },
|
5478
|
+
# output_s3_bucket_name: "S3BucketName",
|
5479
|
+
# output_s3_key_prefix: "S3KeyPrefix",
|
5480
|
+
# parameters: {
|
5481
|
+
# "ParameterName" => ["ParameterValue"],
|
5482
|
+
# },
|
5483
|
+
# service_role_arn: "ServiceRole",
|
5484
|
+
# timeout_seconds: 1,
|
5485
|
+
# },
|
5486
|
+
# automation: {
|
5487
|
+
# document_version: "DocumentVersion",
|
5488
|
+
# parameters: {
|
5489
|
+
# "AutomationParameterKey" => ["AutomationParameterValue"],
|
5490
|
+
# },
|
5491
|
+
# },
|
5492
|
+
# step_functions: {
|
5493
|
+
# input: "MaintenanceWindowStepFunctionsInput",
|
5494
|
+
# name: "MaintenanceWindowStepFunctionsName",
|
5495
|
+
# },
|
5496
|
+
# lambda: {
|
5497
|
+
# client_context: "MaintenanceWindowLambdaClientContext",
|
5498
|
+
# qualifier: "MaintenanceWindowLambdaQualifier",
|
5499
|
+
# payload: "data",
|
5500
|
+
# },
|
5501
|
+
# },
|
5502
|
+
# priority: 1,
|
5503
|
+
# max_concurrency: "MaxConcurrency",
|
5504
|
+
# max_errors: "MaxErrors",
|
5505
|
+
# logging_info: {
|
5506
|
+
# s3_bucket_name: "S3BucketName", # required
|
5507
|
+
# s3_key_prefix: "S3KeyPrefix",
|
5508
|
+
# s3_region: "S3Region", # required
|
5509
|
+
# },
|
5510
|
+
# name: "MaintenanceWindowName",
|
5511
|
+
# description: "MaintenanceWindowDescription",
|
5512
|
+
# replace: false,
|
5513
|
+
# })
|
5514
|
+
#
|
5515
|
+
# @example Response structure
|
5516
|
+
#
|
5517
|
+
# resp.window_id #=> String
|
5518
|
+
# resp.window_task_id #=> String
|
5519
|
+
# resp.targets #=> Array
|
5520
|
+
# resp.targets[0].key #=> String
|
5521
|
+
# resp.targets[0].values #=> Array
|
5522
|
+
# resp.targets[0].values[0] #=> String
|
5523
|
+
# resp.task_arn #=> String
|
5524
|
+
# resp.service_role_arn #=> String
|
5525
|
+
# resp.task_parameters #=> Hash
|
5526
|
+
# resp.task_parameters["MaintenanceWindowTaskParameterName"].values #=> Array
|
5527
|
+
# resp.task_parameters["MaintenanceWindowTaskParameterName"].values[0] #=> String
|
5528
|
+
# resp.task_invocation_parameters.run_command.comment #=> String
|
5529
|
+
# resp.task_invocation_parameters.run_command.document_hash #=> String
|
5530
|
+
# resp.task_invocation_parameters.run_command.document_hash_type #=> String, one of "Sha256", "Sha1"
|
5531
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_arn #=> String
|
5532
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_events #=> Array
|
5533
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_events[0] #=> String, one of "All", "InProgress", "Success", "TimedOut", "Cancelled", "Failed"
|
5534
|
+
# resp.task_invocation_parameters.run_command.notification_config.notification_type #=> String, one of "Command", "Invocation"
|
5535
|
+
# resp.task_invocation_parameters.run_command.output_s3_bucket_name #=> String
|
5536
|
+
# resp.task_invocation_parameters.run_command.output_s3_key_prefix #=> String
|
5537
|
+
# resp.task_invocation_parameters.run_command.parameters #=> Hash
|
5538
|
+
# resp.task_invocation_parameters.run_command.parameters["ParameterName"] #=> Array
|
5539
|
+
# resp.task_invocation_parameters.run_command.parameters["ParameterName"][0] #=> String
|
5540
|
+
# resp.task_invocation_parameters.run_command.service_role_arn #=> String
|
5541
|
+
# resp.task_invocation_parameters.run_command.timeout_seconds #=> Integer
|
5542
|
+
# resp.task_invocation_parameters.automation.document_version #=> String
|
5543
|
+
# resp.task_invocation_parameters.automation.parameters #=> Hash
|
5544
|
+
# resp.task_invocation_parameters.automation.parameters["AutomationParameterKey"] #=> Array
|
5545
|
+
# resp.task_invocation_parameters.automation.parameters["AutomationParameterKey"][0] #=> String
|
5546
|
+
# resp.task_invocation_parameters.step_functions.input #=> String
|
5547
|
+
# resp.task_invocation_parameters.step_functions.name #=> String
|
5548
|
+
# resp.task_invocation_parameters.lambda.client_context #=> String
|
5549
|
+
# resp.task_invocation_parameters.lambda.qualifier #=> String
|
5550
|
+
# resp.task_invocation_parameters.lambda.payload #=> String
|
5551
|
+
# resp.priority #=> Integer
|
5552
|
+
# resp.max_concurrency #=> String
|
5553
|
+
# resp.max_errors #=> String
|
5554
|
+
# resp.logging_info.s3_bucket_name #=> String
|
5555
|
+
# resp.logging_info.s3_key_prefix #=> String
|
5556
|
+
# resp.logging_info.s3_region #=> String
|
5557
|
+
# resp.name #=> String
|
5558
|
+
# resp.description #=> String
|
5559
|
+
#
|
5560
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowTask AWS API Documentation
|
5561
|
+
#
|
5562
|
+
# @overload update_maintenance_window_task(params = {})
|
5563
|
+
# @param [Hash] params ({})
|
5564
|
+
def update_maintenance_window_task(params = {}, options = {})
|
5565
|
+
req = build_request(:update_maintenance_window_task, params)
|
5566
|
+
req.send_request(options)
|
5567
|
+
end
|
5568
|
+
|
4736
5569
|
# Assigns or changes an Amazon Identity and Access Management (IAM) role
|
4737
5570
|
# to the managed instance.
|
4738
5571
|
#
|
@@ -4883,7 +5716,7 @@ module Aws::SSM
|
|
4883
5716
|
params: params,
|
4884
5717
|
config: config)
|
4885
5718
|
context[:gem_name] = 'aws-sdk-ssm'
|
4886
|
-
context[:gem_version] = '1.0.0.
|
5719
|
+
context[:gem_version] = '1.0.0.rc14'
|
4887
5720
|
Seahorse::Client::Request.new(handlers, context)
|
4888
5721
|
end
|
4889
5722
|
|