aws-sdk-ssm 1.65.0 → 1.66.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50f58884017108c879cbe1f1d515c3680d0a4f9f
4
- data.tar.gz: 70a847f9fac2c7ad03aa423fe0c416125bc3ecc3
3
+ metadata.gz: 55621a516e080270748b9c62030ecfcc9ffc3e66
4
+ data.tar.gz: 77e6a71d6b0b833760a5ac5f071b44d390f601d7
5
5
  SHA512:
6
- metadata.gz: bb2e031710a655b32d9e467c971c21d4c879d57353db8fe2132343ff73f34f9ff3f1e2e800606f356b4eb2effdbb4d0df8eda1c5bc9420633f631cb588ba810f
7
- data.tar.gz: 826f06e229264ad500287e0dd3885075453b438a3eb9f898fb2351a1a2490de6ef9baad5be4f9f28978dc3b928a86ef63b2ebff3eee3ee5d7fe760e4909ca59c
6
+ metadata.gz: 530ce42ec7e0c408d21e064b9f2446d36e61b4d807392ab33ce02c71b39bc50bd0fc2034d5e6365e448b87ff376d02fae37e25f95d7f10619845acd906640726
7
+ data.tar.gz: 1e850d8f3dbdd4c96c5b36d71d6dab6638ff0b84ab4372d1baf56451b9cfef2d7990e2d591e9e56506977cfe85dfa1b87e3e4691ddea9708aeffba1dfff5c9cc
data/lib/aws-sdk-ssm.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-ssm/customizations'
42
42
  # @service
43
43
  module Aws::SSM
44
44
 
45
- GEM_VERSION = '1.65.0'
45
+ GEM_VERSION = '1.66.0'
46
46
 
47
47
  end
@@ -907,8 +907,8 @@ module Aws::SSM
907
907
  # ],
908
908
  # name: "DocumentName", # required
909
909
  # version_name: "DocumentVersionName",
910
- # document_type: "Command", # accepts Command, Policy, Automation, Session, Package, ApplicationConfiguration, ApplicationConfigurationSchema, DeploymentStrategy
911
- # document_format: "YAML", # accepts YAML, JSON
910
+ # document_type: "Command", # accepts Command, Policy, Automation, Session, Package, ApplicationConfiguration, ApplicationConfigurationSchema, DeploymentStrategy, ChangeCalendar
911
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
912
912
  # target_type: "TargetType",
913
913
  # tags: [
914
914
  # {
@@ -938,11 +938,11 @@ module Aws::SSM
938
938
  # resp.document_description.parameters[0].default_value #=> String
939
939
  # resp.document_description.platform_types #=> Array
940
940
  # resp.document_description.platform_types[0] #=> String, one of "Windows", "Linux"
941
- # resp.document_description.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy"
941
+ # resp.document_description.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", "ChangeCalendar"
942
942
  # resp.document_description.schema_version #=> String
943
943
  # resp.document_description.latest_version #=> String
944
944
  # resp.document_description.default_version #=> String
945
- # resp.document_description.document_format #=> String, one of "YAML", "JSON"
945
+ # resp.document_description.document_format #=> String, one of "YAML", "JSON", "TEXT"
946
946
  # resp.document_description.target_type #=> String
947
947
  # resp.document_description.tags #=> Array
948
948
  # resp.document_description.tags[0].key #=> String
@@ -2507,11 +2507,11 @@ module Aws::SSM
2507
2507
  # resp.document.parameters[0].default_value #=> String
2508
2508
  # resp.document.platform_types #=> Array
2509
2509
  # resp.document.platform_types[0] #=> String, one of "Windows", "Linux"
2510
- # resp.document.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy"
2510
+ # resp.document.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", "ChangeCalendar"
2511
2511
  # resp.document.schema_version #=> String
2512
2512
  # resp.document.latest_version #=> String
2513
2513
  # resp.document.default_version #=> String
2514
- # resp.document.document_format #=> String, one of "YAML", "JSON"
2514
+ # resp.document.document_format #=> String, one of "YAML", "JSON", "TEXT"
2515
2515
  # resp.document.target_type #=> String
2516
2516
  # resp.document.tags #=> Array
2517
2517
  # resp.document.tags[0].key #=> String
@@ -4219,6 +4219,62 @@ module Aws::SSM
4219
4219
  req.send_request(options)
4220
4220
  end
4221
4221
 
4222
+ # Gets the state of the AWS Systems Manager Change Calendar at an
4223
+ # optional, specified time. If you specify a time, `GetCalendarState`
4224
+ # returns the state of the calendar at a specific time, and returns the
4225
+ # next time that the Change Calendar state will transition. If you do
4226
+ # not specify a time, `GetCalendarState` assumes the current time.
4227
+ # Change Calendar entries have two possible states: `OPEN` or `CLOSED`.
4228
+ # For more information about Systems Manager Change Calendar, see [AWS
4229
+ # Systems Manager Change Calendar][1] in the *AWS Systems Manager User
4230
+ # Guide*.
4231
+ #
4232
+ #
4233
+ #
4234
+ # [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar.html
4235
+ #
4236
+ # @option params [required, Array<String>] :calendar_names
4237
+ # The names or Amazon Resource Names (ARNs) of the Systems Manager
4238
+ # documents that represent the calendar entries for which you want to
4239
+ # get the state.
4240
+ #
4241
+ # @option params [String] :at_time
4242
+ # (Optional) The specific time for which you want to get calendar state
4243
+ # information, in [ISO 8601][1] format. If you do not add `AtTime`, the
4244
+ # current time is assumed.
4245
+ #
4246
+ #
4247
+ #
4248
+ # [1]: https://en.wikipedia.org/wiki/ISO_8601
4249
+ #
4250
+ # @return [Types::GetCalendarStateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4251
+ #
4252
+ # * {Types::GetCalendarStateResponse#state #state} => String
4253
+ # * {Types::GetCalendarStateResponse#at_time #at_time} => String
4254
+ # * {Types::GetCalendarStateResponse#next_transition_time #next_transition_time} => String
4255
+ #
4256
+ # @example Request syntax with placeholder values
4257
+ #
4258
+ # resp = client.get_calendar_state({
4259
+ # calendar_names: ["CalendarNameOrARN"], # required
4260
+ # at_time: "ISO8601String",
4261
+ # })
4262
+ #
4263
+ # @example Response structure
4264
+ #
4265
+ # resp.state #=> String, one of "OPEN", "CLOSED"
4266
+ # resp.at_time #=> String
4267
+ # resp.next_transition_time #=> String
4268
+ #
4269
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCalendarState AWS API Documentation
4270
+ #
4271
+ # @overload get_calendar_state(params = {})
4272
+ # @param [Hash] params ({})
4273
+ def get_calendar_state(params = {}, options = {})
4274
+ req = build_request(:get_calendar_state, params)
4275
+ req.send_request(options)
4276
+ end
4277
+
4222
4278
  # Returns detailed information about command execution for an invocation
4223
4279
  # or plugin.
4224
4280
  #
@@ -4437,7 +4493,7 @@ module Aws::SSM
4437
4493
  # name: "DocumentARN", # required
4438
4494
  # version_name: "DocumentVersionName",
4439
4495
  # document_version: "DocumentVersion",
4440
- # document_format: "YAML", # accepts YAML, JSON
4496
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
4441
4497
  # })
4442
4498
  #
4443
4499
  # @example Response structure
@@ -4448,8 +4504,8 @@ module Aws::SSM
4448
4504
  # resp.status #=> String, one of "Creating", "Active", "Updating", "Deleting", "Failed"
4449
4505
  # resp.status_information #=> String
4450
4506
  # resp.content #=> String
4451
- # resp.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy"
4452
- # resp.document_format #=> String, one of "YAML", "JSON"
4507
+ # resp.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", "ChangeCalendar"
4508
+ # resp.document_format #=> String, one of "YAML", "JSON", "TEXT"
4453
4509
  # resp.requires #=> Array
4454
4510
  # resp.requires[0].name #=> String
4455
4511
  # resp.requires[0].version #=> String
@@ -6029,7 +6085,7 @@ module Aws::SSM
6029
6085
  # resp.document_versions[0].version_name #=> String
6030
6086
  # resp.document_versions[0].created_date #=> Time
6031
6087
  # resp.document_versions[0].is_default_version #=> Boolean
6032
- # resp.document_versions[0].document_format #=> String, one of "YAML", "JSON"
6088
+ # resp.document_versions[0].document_format #=> String, one of "YAML", "JSON", "TEXT"
6033
6089
  # resp.document_versions[0].status #=> String, one of "Creating", "Active", "Updating", "Deleting", "Failed"
6034
6090
  # resp.document_versions[0].status_information #=> String
6035
6091
  # resp.next_token #=> String
@@ -6095,9 +6151,9 @@ module Aws::SSM
6095
6151
  # resp.document_identifiers[0].platform_types #=> Array
6096
6152
  # resp.document_identifiers[0].platform_types[0] #=> String, one of "Windows", "Linux"
6097
6153
  # resp.document_identifiers[0].document_version #=> String
6098
- # resp.document_identifiers[0].document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy"
6154
+ # resp.document_identifiers[0].document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", "ChangeCalendar"
6099
6155
  # resp.document_identifiers[0].schema_version #=> String
6100
- # resp.document_identifiers[0].document_format #=> String, one of "YAML", "JSON"
6156
+ # resp.document_identifiers[0].document_format #=> String, one of "YAML", "JSON", "TEXT"
6101
6157
  # resp.document_identifiers[0].target_type #=> String
6102
6158
  # resp.document_identifiers[0].tags #=> Array
6103
6159
  # resp.document_identifiers[0].tags[0].key #=> String
@@ -8136,7 +8192,7 @@ module Aws::SSM
8136
8192
  # name: "DocumentName", # required
8137
8193
  # version_name: "DocumentVersionName",
8138
8194
  # document_version: "DocumentVersion",
8139
- # document_format: "YAML", # accepts YAML, JSON
8195
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
8140
8196
  # target_type: "TargetType",
8141
8197
  # })
8142
8198
  #
@@ -8160,11 +8216,11 @@ module Aws::SSM
8160
8216
  # resp.document_description.parameters[0].default_value #=> String
8161
8217
  # resp.document_description.platform_types #=> Array
8162
8218
  # resp.document_description.platform_types[0] #=> String, one of "Windows", "Linux"
8163
- # resp.document_description.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy"
8219
+ # resp.document_description.document_type #=> String, one of "Command", "Policy", "Automation", "Session", "Package", "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", "ChangeCalendar"
8164
8220
  # resp.document_description.schema_version #=> String
8165
8221
  # resp.document_description.latest_version #=> String
8166
8222
  # resp.document_description.default_version #=> String
8167
- # resp.document_description.document_format #=> String, one of "YAML", "JSON"
8223
+ # resp.document_description.document_format #=> String, one of "YAML", "JSON", "TEXT"
8168
8224
  # resp.document_description.target_type #=> String
8169
8225
  # resp.document_description.tags #=> Array
8170
8226
  # resp.document_description.tags[0].key #=> String
@@ -9140,7 +9196,7 @@ module Aws::SSM
9140
9196
  params: params,
9141
9197
  config: config)
9142
9198
  context[:gem_name] = 'aws-sdk-ssm'
9143
- context[:gem_version] = '1.65.0'
9199
+ context[:gem_version] = '1.66.0'
9144
9200
  Seahorse::Client::Request.new(handlers, context)
9145
9201
  end
9146
9202
 
@@ -113,6 +113,9 @@ module Aws::SSM
113
113
  BaselineName = Shapes::StringShape.new(name: 'BaselineName')
114
114
  BatchErrorMessage = Shapes::StringShape.new(name: 'BatchErrorMessage')
115
115
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
116
+ CalendarNameOrARN = Shapes::StringShape.new(name: 'CalendarNameOrARN')
117
+ CalendarNameOrARNList = Shapes::ListShape.new(name: 'CalendarNameOrARNList')
118
+ CalendarState = Shapes::StringShape.new(name: 'CalendarState')
116
119
  CancelCommandRequest = Shapes::StructureShape.new(name: 'CancelCommandRequest')
117
120
  CancelCommandResult = Shapes::StructureShape.new(name: 'CancelCommandResult')
118
121
  CancelMaintenanceWindowExecutionRequest = Shapes::StructureShape.new(name: 'CancelMaintenanceWindowExecutionRequest')
@@ -352,6 +355,8 @@ module Aws::SSM
352
355
  FeatureNotAvailableException = Shapes::StructureShape.new(name: 'FeatureNotAvailableException')
353
356
  GetAutomationExecutionRequest = Shapes::StructureShape.new(name: 'GetAutomationExecutionRequest')
354
357
  GetAutomationExecutionResult = Shapes::StructureShape.new(name: 'GetAutomationExecutionResult')
358
+ GetCalendarStateRequest = Shapes::StructureShape.new(name: 'GetCalendarStateRequest')
359
+ GetCalendarStateResponse = Shapes::StructureShape.new(name: 'GetCalendarStateResponse')
355
360
  GetCommandInvocationRequest = Shapes::StructureShape.new(name: 'GetCommandInvocationRequest')
356
361
  GetCommandInvocationResult = Shapes::StructureShape.new(name: 'GetCommandInvocationResult')
357
362
  GetConnectionStatusRequest = Shapes::StructureShape.new(name: 'GetConnectionStatusRequest')
@@ -399,6 +404,7 @@ module Aws::SSM
399
404
  HierarchyLevelLimitExceededException = Shapes::StructureShape.new(name: 'HierarchyLevelLimitExceededException')
400
405
  HierarchyTypeMismatchException = Shapes::StructureShape.new(name: 'HierarchyTypeMismatchException')
401
406
  IPAddress = Shapes::StringShape.new(name: 'IPAddress')
407
+ ISO8601String = Shapes::StringShape.new(name: 'ISO8601String')
402
408
  IamRole = Shapes::StringShape.new(name: 'IamRole')
403
409
  IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
404
410
  IdempotentParameterMismatch = Shapes::StructureShape.new(name: 'IdempotentParameterMismatch')
@@ -455,6 +461,7 @@ module Aws::SSM
455
461
  InvalidDocumentContent = Shapes::StructureShape.new(name: 'InvalidDocumentContent')
456
462
  InvalidDocumentOperation = Shapes::StructureShape.new(name: 'InvalidDocumentOperation')
457
463
  InvalidDocumentSchemaVersion = Shapes::StructureShape.new(name: 'InvalidDocumentSchemaVersion')
464
+ InvalidDocumentType = Shapes::StructureShape.new(name: 'InvalidDocumentType')
458
465
  InvalidDocumentVersion = Shapes::StructureShape.new(name: 'InvalidDocumentVersion')
459
466
  InvalidFilter = Shapes::StructureShape.new(name: 'InvalidFilter')
460
467
  InvalidFilterKey = Shapes::StructureShape.new(name: 'InvalidFilterKey')
@@ -990,6 +997,7 @@ module Aws::SSM
990
997
  TooManyUpdates = Shapes::StructureShape.new(name: 'TooManyUpdates')
991
998
  TotalCount = Shapes::IntegerShape.new(name: 'TotalCount')
992
999
  TotalSizeLimitExceededException = Shapes::StructureShape.new(name: 'TotalSizeLimitExceededException')
1000
+ UnsupportedCalendarException = Shapes::StructureShape.new(name: 'UnsupportedCalendarException')
993
1001
  UnsupportedFeatureRequiredException = Shapes::StructureShape.new(name: 'UnsupportedFeatureRequiredException')
994
1002
  UnsupportedInventoryItemContextException = Shapes::StructureShape.new(name: 'UnsupportedInventoryItemContextException')
995
1003
  UnsupportedInventorySchemaVersionException = Shapes::StructureShape.new(name: 'UnsupportedInventorySchemaVersionException')
@@ -1287,6 +1295,8 @@ module Aws::SSM
1287
1295
  AutomationStepNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1288
1296
  AutomationStepNotFoundException.struct_class = Types::AutomationStepNotFoundException
1289
1297
 
1298
+ CalendarNameOrARNList.member = Shapes::ShapeRef.new(shape: CalendarNameOrARN)
1299
+
1290
1300
  CancelCommandRequest.add_member(:command_id, Shapes::ShapeRef.new(shape: CommandId, required: true, location_name: "CommandId"))
1291
1301
  CancelCommandRequest.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdList, location_name: "InstanceIds"))
1292
1302
  CancelCommandRequest.struct_class = Types::CancelCommandRequest
@@ -2097,6 +2107,15 @@ module Aws::SSM
2097
2107
  GetAutomationExecutionResult.add_member(:automation_execution, Shapes::ShapeRef.new(shape: AutomationExecution, location_name: "AutomationExecution"))
2098
2108
  GetAutomationExecutionResult.struct_class = Types::GetAutomationExecutionResult
2099
2109
 
2110
+ GetCalendarStateRequest.add_member(:calendar_names, Shapes::ShapeRef.new(shape: CalendarNameOrARNList, required: true, location_name: "CalendarNames"))
2111
+ GetCalendarStateRequest.add_member(:at_time, Shapes::ShapeRef.new(shape: ISO8601String, location_name: "AtTime"))
2112
+ GetCalendarStateRequest.struct_class = Types::GetCalendarStateRequest
2113
+
2114
+ GetCalendarStateResponse.add_member(:state, Shapes::ShapeRef.new(shape: CalendarState, location_name: "State"))
2115
+ GetCalendarStateResponse.add_member(:at_time, Shapes::ShapeRef.new(shape: ISO8601String, location_name: "AtTime"))
2116
+ GetCalendarStateResponse.add_member(:next_transition_time, Shapes::ShapeRef.new(shape: ISO8601String, location_name: "NextTransitionTime"))
2117
+ GetCalendarStateResponse.struct_class = Types::GetCalendarStateResponse
2118
+
2100
2119
  GetCommandInvocationRequest.add_member(:command_id, Shapes::ShapeRef.new(shape: CommandId, required: true, location_name: "CommandId"))
2101
2120
  GetCommandInvocationRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
2102
2121
  GetCommandInvocationRequest.add_member(:plugin_name, Shapes::ShapeRef.new(shape: CommandPluginName, location_name: "PluginName"))
@@ -2533,6 +2552,9 @@ module Aws::SSM
2533
2552
  InvalidDocumentSchemaVersion.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
2534
2553
  InvalidDocumentSchemaVersion.struct_class = Types::InvalidDocumentSchemaVersion
2535
2554
 
2555
+ InvalidDocumentType.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
2556
+ InvalidDocumentType.struct_class = Types::InvalidDocumentType
2557
+
2536
2558
  InvalidDocumentVersion.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
2537
2559
  InvalidDocumentVersion.struct_class = Types::InvalidDocumentVersion
2538
2560
 
@@ -3746,6 +3768,9 @@ module Aws::SSM
3746
3768
  TotalSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
3747
3769
  TotalSizeLimitExceededException.struct_class = Types::TotalSizeLimitExceededException
3748
3770
 
3771
+ UnsupportedCalendarException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
3772
+ UnsupportedCalendarException.struct_class = Types::UnsupportedCalendarException
3773
+
3749
3774
  UnsupportedFeatureRequiredException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
3750
3775
  UnsupportedFeatureRequiredException.struct_class = Types::UnsupportedFeatureRequiredException
3751
3776
 
@@ -4621,6 +4646,18 @@ module Aws::SSM
4621
4646
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4622
4647
  end)
4623
4648
 
4649
+ api.add_operation(:get_calendar_state, Seahorse::Model::Operation.new.tap do |o|
4650
+ o.name = "GetCalendarState"
4651
+ o.http_method = "POST"
4652
+ o.http_request_uri = "/"
4653
+ o.input = Shapes::ShapeRef.new(shape: GetCalendarStateRequest)
4654
+ o.output = Shapes::ShapeRef.new(shape: GetCalendarStateResponse)
4655
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4656
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDocument)
4657
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDocumentType)
4658
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedCalendarException)
4659
+ end)
4660
+
4624
4661
  api.add_operation(:get_command_invocation, Seahorse::Model::Operation.new.tap do |o|
4625
4662
  o.name = "GetCommandInvocation"
4626
4663
  o.http_method = "POST"
@@ -634,6 +634,22 @@ module Aws::SSM
634
634
 
635
635
  end
636
636
 
637
+ class InvalidDocumentType < ServiceError
638
+
639
+ # @param [Seahorse::Client::RequestContext] context
640
+ # @param [String] message
641
+ # @param [Aws::SSM::Types::InvalidDocumentType] data
642
+ def initialize(context, message, data = Aws::EmptyStructure.new)
643
+ super(context, message, data)
644
+ end
645
+
646
+ # @return [String]
647
+ def message
648
+ @message || @data[:message]
649
+ end
650
+
651
+ end
652
+
637
653
  class InvalidDocumentVersion < ServiceError
638
654
 
639
655
  # @param [Seahorse::Client::RequestContext] context
@@ -1516,6 +1532,22 @@ module Aws::SSM
1516
1532
 
1517
1533
  end
1518
1534
 
1535
+ class UnsupportedCalendarException < ServiceError
1536
+
1537
+ # @param [Seahorse::Client::RequestContext] context
1538
+ # @param [String] message
1539
+ # @param [Aws::SSM::Types::UnsupportedCalendarException] data
1540
+ def initialize(context, message, data = Aws::EmptyStructure.new)
1541
+ super(context, message, data)
1542
+ end
1543
+
1544
+ # @return [String]
1545
+ def message
1546
+ @message || @data[:message]
1547
+ end
1548
+
1549
+ end
1550
+
1519
1551
  class UnsupportedFeatureRequiredException < ServiceError
1520
1552
 
1521
1553
  # @param [Seahorse::Client::RequestContext] context
@@ -2631,8 +2631,8 @@ module Aws::SSM
2631
2631
  # ],
2632
2632
  # name: "DocumentName", # required
2633
2633
  # version_name: "DocumentVersionName",
2634
- # document_type: "Command", # accepts Command, Policy, Automation, Session, Package, ApplicationConfiguration, ApplicationConfigurationSchema, DeploymentStrategy
2635
- # document_format: "YAML", # accepts YAML, JSON
2634
+ # document_type: "Command", # accepts Command, Policy, Automation, Session, Package, ApplicationConfiguration, ApplicationConfigurationSchema, DeploymentStrategy, ChangeCalendar
2635
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
2636
2636
  # target_type: "TargetType",
2637
2637
  # tags: [
2638
2638
  # {
@@ -5591,9 +5591,7 @@ module Aws::SSM
5591
5591
  # @return [Integer]
5592
5592
  #
5593
5593
  # @!attribute [rw] instances_with_installed_pending_reboot_patches
5594
- # The number of instances with patches installed that have not been
5595
- # rebooted after the patch installation. The status of these instances
5596
- # is NON\_COMPLIANT.
5594
+ # Reserved for future use.
5597
5595
  # @return [Integer]
5598
5596
  #
5599
5597
  # @!attribute [rw] instances_with_installed_rejected_patches
@@ -6484,6 +6482,74 @@ module Aws::SSM
6484
6482
  include Aws::Structure
6485
6483
  end
6486
6484
 
6485
+ # @note When making an API call, you may pass GetCalendarStateRequest
6486
+ # data as a hash:
6487
+ #
6488
+ # {
6489
+ # calendar_names: ["CalendarNameOrARN"], # required
6490
+ # at_time: "ISO8601String",
6491
+ # }
6492
+ #
6493
+ # @!attribute [rw] calendar_names
6494
+ # The names or Amazon Resource Names (ARNs) of the Systems Manager
6495
+ # documents that represent the calendar entries for which you want to
6496
+ # get the state.
6497
+ # @return [Array<String>]
6498
+ #
6499
+ # @!attribute [rw] at_time
6500
+ # (Optional) The specific time for which you want to get calendar
6501
+ # state information, in [ISO 8601][1] format. If you do not add
6502
+ # `AtTime`, the current time is assumed.
6503
+ #
6504
+ #
6505
+ #
6506
+ # [1]: https://en.wikipedia.org/wiki/ISO_8601
6507
+ # @return [String]
6508
+ #
6509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCalendarStateRequest AWS API Documentation
6510
+ #
6511
+ class GetCalendarStateRequest < Struct.new(
6512
+ :calendar_names,
6513
+ :at_time)
6514
+ include Aws::Structure
6515
+ end
6516
+
6517
+ # @!attribute [rw] state
6518
+ # The state of the calendar. An `OPEN` calendar indicates that actions
6519
+ # are allowed to proceed, and a `CLOSED` calendar indicates that
6520
+ # actions are not allowed to proceed.
6521
+ # @return [String]
6522
+ #
6523
+ # @!attribute [rw] at_time
6524
+ # The time, as an [ISO 8601][1] string, that you specified in your
6525
+ # command. If you did not specify a time, `GetCalendarState` uses the
6526
+ # current time.
6527
+ #
6528
+ #
6529
+ #
6530
+ # [1]: https://en.wikipedia.org/wiki/ISO_8601
6531
+ # @return [String]
6532
+ #
6533
+ # @!attribute [rw] next_transition_time
6534
+ # The time, as an [ISO 8601][1] string, that the calendar state will
6535
+ # change. If the current calendar state is `OPEN`,
6536
+ # `NextTransitionTime` indicates when the calendar state changes to
6537
+ # `CLOSED`, and vice-versa.
6538
+ #
6539
+ #
6540
+ #
6541
+ # [1]: https://en.wikipedia.org/wiki/ISO_8601
6542
+ # @return [String]
6543
+ #
6544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCalendarStateResponse AWS API Documentation
6545
+ #
6546
+ class GetCalendarStateResponse < Struct.new(
6547
+ :state,
6548
+ :at_time,
6549
+ :next_transition_time)
6550
+ include Aws::Structure
6551
+ end
6552
+
6487
6553
  # @note When making an API call, you may pass GetCommandInvocationRequest
6488
6554
  # data as a hash:
6489
6555
  #
@@ -6824,7 +6890,7 @@ module Aws::SSM
6824
6890
  # name: "DocumentARN", # required
6825
6891
  # version_name: "DocumentVersionName",
6826
6892
  # document_version: "DocumentVersion",
6827
- # document_format: "YAML", # accepts YAML, JSON
6893
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
6828
6894
  # }
6829
6895
  #
6830
6896
  # @!attribute [rw] name
@@ -8585,8 +8651,7 @@ module Aws::SSM
8585
8651
  # @return [Integer]
8586
8652
  #
8587
8653
  # @!attribute [rw] installed_pending_reboot_count
8588
- # The number of patches installed since the last time the instance was
8589
- # rebooted.
8654
+ # Reserved for future use.
8590
8655
  # @return [Integer]
8591
8656
  #
8592
8657
  # @!attribute [rw] installed_rejected_count
@@ -8643,26 +8708,11 @@ module Aws::SSM
8643
8708
  # @return [String]
8644
8709
  #
8645
8710
  # @!attribute [rw] last_no_reboot_install_operation_time
8646
- # The time of the last attempt to patch the instance with `NoReboot`
8647
- # specified as the reboot option.
8711
+ # Reserved for future use.
8648
8712
  # @return [Time]
8649
8713
  #
8650
8714
  # @!attribute [rw] reboot_option
8651
- # Indicates the reboot option specified in the patch baseline.
8652
- #
8653
- # <note markdown="1"> Reboot options apply to `Install` operations only. Reboots are not
8654
- # attempted for Patch Manager `Scan` operations.
8655
- #
8656
- # </note>
8657
- #
8658
- # * **RebootIfNeeded**\: Patch Manager tries to reboot the instance if
8659
- # it installed any patches, or if any patches are detected with a
8660
- # status of `InstalledPendingReboot`.
8661
- #
8662
- # * **NoReboot**\: Patch Manager attempts to install missing packages
8663
- # without trying to reboot the system. Patches installed with this
8664
- # option are assigned a status of `InstalledPendingReboot`. These
8665
- # patches might not be in effect until a reboot is performed.
8715
+ # Reserved for future use.
8666
8716
  # @return [String]
8667
8717
  #
8668
8718
  # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstancePatchState AWS API Documentation
@@ -8938,6 +8988,19 @@ module Aws::SSM
8938
8988
  include Aws::Structure
8939
8989
  end
8940
8990
 
8991
+ # The document type is not valid. Valid document types are described in
8992
+ # the `DocumentType` property.
8993
+ #
8994
+ # @!attribute [rw] message
8995
+ # @return [String]
8996
+ #
8997
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InvalidDocumentType AWS API Documentation
8998
+ #
8999
+ class InvalidDocumentType < Struct.new(
9000
+ :message)
9001
+ include Aws::Structure
9002
+ end
9003
+
8941
9004
  # The document version is not valid or does not exist.
8942
9005
  #
8943
9006
  # @!attribute [rw] message
@@ -15635,6 +15698,19 @@ module Aws::SSM
15635
15698
  include Aws::Structure
15636
15699
  end
15637
15700
 
15701
+ # The calendar entry contained in the specified Systems Manager document
15702
+ # is not supported.
15703
+ #
15704
+ # @!attribute [rw] message
15705
+ # @return [String]
15706
+ #
15707
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UnsupportedCalendarException AWS API Documentation
15708
+ #
15709
+ class UnsupportedCalendarException < Struct.new(
15710
+ :message)
15711
+ include Aws::Structure
15712
+ end
15713
+
15638
15714
  # Microsoft application patching is only available on EC2 instances and
15639
15715
  # Advanced Instances. To patch Microsoft applications on on-premises
15640
15716
  # servers and VMs, you must enable Advanced Instances. For more
@@ -15991,7 +16067,7 @@ module Aws::SSM
15991
16067
  # name: "DocumentName", # required
15992
16068
  # version_name: "DocumentVersionName",
15993
16069
  # document_version: "DocumentVersion",
15994
- # document_format: "YAML", # accepts YAML, JSON
16070
+ # document_format: "YAML", # accepts YAML, JSON, TEXT
15995
16071
  # target_type: "TargetType",
15996
16072
  # }
15997
16073
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ssm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.65.0
4
+ version: 1.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core