aws-sdk-ssm 1.165.0 → 1.167.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ssm/client.rb +211 -102
- data/lib/aws-sdk-ssm/client_api.rb +103 -0
- data/lib/aws-sdk-ssm/endpoints.rb +14 -0
- data/lib/aws-sdk-ssm/errors.rb +16 -0
- data/lib/aws-sdk-ssm/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ssm/types.rb +436 -156
- data/lib/aws-sdk-ssm.rb +1 -1
- data/sig/client.rbs +25 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +62 -0
- metadata +2 -2
@@ -38,6 +38,7 @@ module Aws::SSM
|
|
38
38
|
AlreadyExistsException = Shapes::StructureShape.new(name: 'AlreadyExistsException')
|
39
39
|
ApplyOnlyAtCronInterval = Shapes::BooleanShape.new(name: 'ApplyOnlyAtCronInterval')
|
40
40
|
ApproveAfterDays = Shapes::IntegerShape.new(name: 'ApproveAfterDays')
|
41
|
+
Architecture = Shapes::StringShape.new(name: 'Architecture')
|
41
42
|
AssociateOpsItemRelatedItemRequest = Shapes::StructureShape.new(name: 'AssociateOpsItemRelatedItemRequest')
|
42
43
|
AssociateOpsItemRelatedItemResponse = Shapes::StructureShape.new(name: 'AssociateOpsItemRelatedItemResponse')
|
43
44
|
AssociatedInstances = Shapes::StructureShape.new(name: 'AssociatedInstances')
|
@@ -289,6 +290,9 @@ module Aws::SSM
|
|
289
290
|
DescribeInstancePatchStatesResult = Shapes::StructureShape.new(name: 'DescribeInstancePatchStatesResult')
|
290
291
|
DescribeInstancePatchesRequest = Shapes::StructureShape.new(name: 'DescribeInstancePatchesRequest')
|
291
292
|
DescribeInstancePatchesResult = Shapes::StructureShape.new(name: 'DescribeInstancePatchesResult')
|
293
|
+
DescribeInstancePropertiesMaxResults = Shapes::IntegerShape.new(name: 'DescribeInstancePropertiesMaxResults')
|
294
|
+
DescribeInstancePropertiesRequest = Shapes::StructureShape.new(name: 'DescribeInstancePropertiesRequest')
|
295
|
+
DescribeInstancePropertiesResult = Shapes::StructureShape.new(name: 'DescribeInstancePropertiesResult')
|
292
296
|
DescribeInventoryDeletionsRequest = Shapes::StructureShape.new(name: 'DescribeInventoryDeletionsRequest')
|
293
297
|
DescribeInventoryDeletionsResult = Shapes::StructureShape.new(name: 'DescribeInventoryDeletionsResult')
|
294
298
|
DescribeMaintenanceWindowExecutionTaskInvocationsRequest = Shapes::StructureShape.new(name: 'DescribeMaintenanceWindowExecutionTaskInvocationsRequest')
|
@@ -485,6 +489,7 @@ module Aws::SSM
|
|
485
489
|
InstanceInformationStringFilter = Shapes::StructureShape.new(name: 'InstanceInformationStringFilter')
|
486
490
|
InstanceInformationStringFilterKey = Shapes::StringShape.new(name: 'InstanceInformationStringFilterKey')
|
487
491
|
InstanceInformationStringFilterList = Shapes::ListShape.new(name: 'InstanceInformationStringFilterList')
|
492
|
+
InstanceName = Shapes::StringShape.new(name: 'InstanceName')
|
488
493
|
InstancePatchState = Shapes::StructureShape.new(name: 'InstancePatchState')
|
489
494
|
InstancePatchStateFilter = Shapes::StructureShape.new(name: 'InstancePatchStateFilter')
|
490
495
|
InstancePatchStateFilterKey = Shapes::StringShape.new(name: 'InstancePatchStateFilterKey')
|
@@ -494,7 +499,21 @@ module Aws::SSM
|
|
494
499
|
InstancePatchStateList = Shapes::ListShape.new(name: 'InstancePatchStateList')
|
495
500
|
InstancePatchStateOperatorType = Shapes::StringShape.new(name: 'InstancePatchStateOperatorType')
|
496
501
|
InstancePatchStatesList = Shapes::ListShape.new(name: 'InstancePatchStatesList')
|
502
|
+
InstanceProperties = Shapes::ListShape.new(name: 'InstanceProperties')
|
503
|
+
InstanceProperty = Shapes::StructureShape.new(name: 'InstanceProperty')
|
504
|
+
InstancePropertyFilter = Shapes::StructureShape.new(name: 'InstancePropertyFilter')
|
505
|
+
InstancePropertyFilterKey = Shapes::StringShape.new(name: 'InstancePropertyFilterKey')
|
506
|
+
InstancePropertyFilterList = Shapes::ListShape.new(name: 'InstancePropertyFilterList')
|
507
|
+
InstancePropertyFilterOperator = Shapes::StringShape.new(name: 'InstancePropertyFilterOperator')
|
508
|
+
InstancePropertyFilterValue = Shapes::StringShape.new(name: 'InstancePropertyFilterValue')
|
509
|
+
InstancePropertyFilterValueSet = Shapes::ListShape.new(name: 'InstancePropertyFilterValueSet')
|
510
|
+
InstancePropertyStringFilter = Shapes::StructureShape.new(name: 'InstancePropertyStringFilter')
|
511
|
+
InstancePropertyStringFilterKey = Shapes::StringShape.new(name: 'InstancePropertyStringFilterKey')
|
512
|
+
InstancePropertyStringFilterList = Shapes::ListShape.new(name: 'InstancePropertyStringFilterList')
|
513
|
+
InstanceRole = Shapes::StringShape.new(name: 'InstanceRole')
|
514
|
+
InstanceState = Shapes::StringShape.new(name: 'InstanceState')
|
497
515
|
InstanceTagName = Shapes::StringShape.new(name: 'InstanceTagName')
|
516
|
+
InstanceType = Shapes::StringShape.new(name: 'InstanceType')
|
498
517
|
InstancesCount = Shapes::IntegerShape.new(name: 'InstancesCount')
|
499
518
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
500
519
|
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
@@ -522,6 +541,7 @@ module Aws::SSM
|
|
522
541
|
InvalidFilterValue = Shapes::StructureShape.new(name: 'InvalidFilterValue')
|
523
542
|
InvalidInstanceId = Shapes::StructureShape.new(name: 'InvalidInstanceId')
|
524
543
|
InvalidInstanceInformationFilterValue = Shapes::StructureShape.new(name: 'InvalidInstanceInformationFilterValue')
|
544
|
+
InvalidInstancePropertyFilterValue = Shapes::StructureShape.new(name: 'InvalidInstancePropertyFilterValue')
|
525
545
|
InvalidInventoryGroupException = Shapes::StructureShape.new(name: 'InvalidInventoryGroupException')
|
526
546
|
InvalidInventoryItemContextException = Shapes::StructureShape.new(name: 'InvalidInventoryItemContextException')
|
527
547
|
InvalidInventoryRequestException = Shapes::StructureShape.new(name: 'InvalidInventoryRequestException')
|
@@ -598,6 +618,7 @@ module Aws::SSM
|
|
598
618
|
ItemContentMismatchException = Shapes::StructureShape.new(name: 'ItemContentMismatchException')
|
599
619
|
ItemSizeLimitExceededException = Shapes::StructureShape.new(name: 'ItemSizeLimitExceededException')
|
600
620
|
KeyList = Shapes::ListShape.new(name: 'KeyList')
|
621
|
+
KeyName = Shapes::StringShape.new(name: 'KeyName')
|
601
622
|
LabelParameterVersionRequest = Shapes::StructureShape.new(name: 'LabelParameterVersionRequest')
|
602
623
|
LabelParameterVersionResult = Shapes::StructureShape.new(name: 'LabelParameterVersionResult')
|
603
624
|
LastResourceDataSyncMessage = Shapes::StringShape.new(name: 'LastResourceDataSyncMessage')
|
@@ -958,8 +979,10 @@ module Aws::SSM
|
|
958
979
|
PatchVendor = Shapes::StringShape.new(name: 'PatchVendor')
|
959
980
|
PatchVersion = Shapes::StringShape.new(name: 'PatchVersion')
|
960
981
|
PingStatus = Shapes::StringShape.new(name: 'PingStatus')
|
982
|
+
PlatformName = Shapes::StringShape.new(name: 'PlatformName')
|
961
983
|
PlatformType = Shapes::StringShape.new(name: 'PlatformType')
|
962
984
|
PlatformTypeList = Shapes::ListShape.new(name: 'PlatformTypeList')
|
985
|
+
PlatformVersion = Shapes::StringShape.new(name: 'PlatformVersion')
|
963
986
|
PoliciesLimitExceededException = Shapes::StructureShape.new(name: 'PoliciesLimitExceededException')
|
964
987
|
Policy = Shapes::StringShape.new(name: 'Policy')
|
965
988
|
PolicyHash = Shapes::StringShape.new(name: 'PolicyHash')
|
@@ -2132,6 +2155,16 @@ module Aws::SSM
|
|
2132
2155
|
DescribeInstancePatchesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
2133
2156
|
DescribeInstancePatchesResult.struct_class = Types::DescribeInstancePatchesResult
|
2134
2157
|
|
2158
|
+
DescribeInstancePropertiesRequest.add_member(:instance_property_filter_list, Shapes::ShapeRef.new(shape: InstancePropertyFilterList, location_name: "InstancePropertyFilterList"))
|
2159
|
+
DescribeInstancePropertiesRequest.add_member(:filters_with_operator, Shapes::ShapeRef.new(shape: InstancePropertyStringFilterList, location_name: "FiltersWithOperator"))
|
2160
|
+
DescribeInstancePropertiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeInstancePropertiesMaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
|
2161
|
+
DescribeInstancePropertiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
2162
|
+
DescribeInstancePropertiesRequest.struct_class = Types::DescribeInstancePropertiesRequest
|
2163
|
+
|
2164
|
+
DescribeInstancePropertiesResult.add_member(:instance_properties, Shapes::ShapeRef.new(shape: InstanceProperties, location_name: "InstanceProperties"))
|
2165
|
+
DescribeInstancePropertiesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
2166
|
+
DescribeInstancePropertiesResult.struct_class = Types::DescribeInstancePropertiesResult
|
2167
|
+
|
2135
2168
|
DescribeInventoryDeletionsRequest.add_member(:deletion_id, Shapes::ShapeRef.new(shape: UUID, location_name: "DeletionId"))
|
2136
2169
|
DescribeInventoryDeletionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
2137
2170
|
DescribeInventoryDeletionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
|
@@ -2915,6 +2948,51 @@ module Aws::SSM
|
|
2915
2948
|
|
2916
2949
|
InstancePatchStatesList.member = Shapes::ShapeRef.new(shape: InstancePatchState)
|
2917
2950
|
|
2951
|
+
InstanceProperties.member = Shapes::ShapeRef.new(shape: InstanceProperty)
|
2952
|
+
|
2953
|
+
InstanceProperty.add_member(:name, Shapes::ShapeRef.new(shape: InstanceName, location_name: "Name"))
|
2954
|
+
InstanceProperty.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
|
2955
|
+
InstanceProperty.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "InstanceType"))
|
2956
|
+
InstanceProperty.add_member(:instance_role, Shapes::ShapeRef.new(shape: InstanceRole, location_name: "InstanceRole"))
|
2957
|
+
InstanceProperty.add_member(:key_name, Shapes::ShapeRef.new(shape: KeyName, location_name: "KeyName"))
|
2958
|
+
InstanceProperty.add_member(:instance_state, Shapes::ShapeRef.new(shape: InstanceState, location_name: "InstanceState"))
|
2959
|
+
InstanceProperty.add_member(:architecture, Shapes::ShapeRef.new(shape: Architecture, location_name: "Architecture"))
|
2960
|
+
InstanceProperty.add_member(:ip_address, Shapes::ShapeRef.new(shape: IPAddress, location_name: "IPAddress"))
|
2961
|
+
InstanceProperty.add_member(:launch_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LaunchTime"))
|
2962
|
+
InstanceProperty.add_member(:ping_status, Shapes::ShapeRef.new(shape: PingStatus, location_name: "PingStatus"))
|
2963
|
+
InstanceProperty.add_member(:last_ping_date_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastPingDateTime"))
|
2964
|
+
InstanceProperty.add_member(:agent_version, Shapes::ShapeRef.new(shape: Version, location_name: "AgentVersion"))
|
2965
|
+
InstanceProperty.add_member(:platform_type, Shapes::ShapeRef.new(shape: PlatformType, location_name: "PlatformType"))
|
2966
|
+
InstanceProperty.add_member(:platform_name, Shapes::ShapeRef.new(shape: PlatformName, location_name: "PlatformName"))
|
2967
|
+
InstanceProperty.add_member(:platform_version, Shapes::ShapeRef.new(shape: PlatformVersion, location_name: "PlatformVersion"))
|
2968
|
+
InstanceProperty.add_member(:activation_id, Shapes::ShapeRef.new(shape: ActivationId, location_name: "ActivationId"))
|
2969
|
+
InstanceProperty.add_member(:iam_role, Shapes::ShapeRef.new(shape: IamRole, location_name: "IamRole"))
|
2970
|
+
InstanceProperty.add_member(:registration_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "RegistrationDate"))
|
2971
|
+
InstanceProperty.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
|
2972
|
+
InstanceProperty.add_member(:computer_name, Shapes::ShapeRef.new(shape: ComputerName, location_name: "ComputerName"))
|
2973
|
+
InstanceProperty.add_member(:association_status, Shapes::ShapeRef.new(shape: StatusName, location_name: "AssociationStatus"))
|
2974
|
+
InstanceProperty.add_member(:last_association_execution_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastAssociationExecutionDate"))
|
2975
|
+
InstanceProperty.add_member(:last_successful_association_execution_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastSuccessfulAssociationExecutionDate"))
|
2976
|
+
InstanceProperty.add_member(:association_overview, Shapes::ShapeRef.new(shape: InstanceAggregatedAssociationOverview, location_name: "AssociationOverview"))
|
2977
|
+
InstanceProperty.add_member(:source_id, Shapes::ShapeRef.new(shape: SourceId, location_name: "SourceId"))
|
2978
|
+
InstanceProperty.add_member(:source_type, Shapes::ShapeRef.new(shape: SourceType, location_name: "SourceType"))
|
2979
|
+
InstanceProperty.struct_class = Types::InstanceProperty
|
2980
|
+
|
2981
|
+
InstancePropertyFilter.add_member(:key, Shapes::ShapeRef.new(shape: InstancePropertyFilterKey, required: true, location_name: "key"))
|
2982
|
+
InstancePropertyFilter.add_member(:value_set, Shapes::ShapeRef.new(shape: InstancePropertyFilterValueSet, required: true, location_name: "valueSet"))
|
2983
|
+
InstancePropertyFilter.struct_class = Types::InstancePropertyFilter
|
2984
|
+
|
2985
|
+
InstancePropertyFilterList.member = Shapes::ShapeRef.new(shape: InstancePropertyFilter)
|
2986
|
+
|
2987
|
+
InstancePropertyFilterValueSet.member = Shapes::ShapeRef.new(shape: InstancePropertyFilterValue)
|
2988
|
+
|
2989
|
+
InstancePropertyStringFilter.add_member(:key, Shapes::ShapeRef.new(shape: InstancePropertyStringFilterKey, required: true, location_name: "Key"))
|
2990
|
+
InstancePropertyStringFilter.add_member(:values, Shapes::ShapeRef.new(shape: InstancePropertyFilterValueSet, required: true, location_name: "Values"))
|
2991
|
+
InstancePropertyStringFilter.add_member(:operator, Shapes::ShapeRef.new(shape: InstancePropertyFilterOperator, location_name: "Operator"))
|
2992
|
+
InstancePropertyStringFilter.struct_class = Types::InstancePropertyStringFilter
|
2993
|
+
|
2994
|
+
InstancePropertyStringFilterList.member = Shapes::ShapeRef.new(shape: InstancePropertyStringFilter)
|
2995
|
+
|
2918
2996
|
InternalServerError.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
2919
2997
|
InternalServerError.struct_class = Types::InternalServerError
|
2920
2998
|
|
@@ -2988,6 +3066,9 @@ module Aws::SSM
|
|
2988
3066
|
InvalidInstanceInformationFilterValue.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
2989
3067
|
InvalidInstanceInformationFilterValue.struct_class = Types::InvalidInstanceInformationFilterValue
|
2990
3068
|
|
3069
|
+
InvalidInstancePropertyFilterValue.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
3070
|
+
InvalidInstancePropertyFilterValue.struct_class = Types::InvalidInstancePropertyFilterValue
|
3071
|
+
|
2991
3072
|
InvalidInventoryGroupException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
2992
3073
|
InvalidInventoryGroupException.struct_class = Types::InvalidInventoryGroupException
|
2993
3074
|
|
@@ -4753,6 +4834,7 @@ module Aws::SSM
|
|
4753
4834
|
"endpointPrefix" => "ssm",
|
4754
4835
|
"jsonVersion" => "1.1",
|
4755
4836
|
"protocol" => "json",
|
4837
|
+
"protocols" => ["json"],
|
4756
4838
|
"serviceAbbreviation" => "Amazon SSM",
|
4757
4839
|
"serviceFullName" => "Amazon Simple Systems Manager (SSM)",
|
4758
4840
|
"serviceId" => "SSM",
|
@@ -5373,6 +5455,27 @@ module Aws::SSM
|
|
5373
5455
|
)
|
5374
5456
|
end)
|
5375
5457
|
|
5458
|
+
api.add_operation(:describe_instance_properties, Seahorse::Model::Operation.new.tap do |o|
|
5459
|
+
o.name = "DescribeInstanceProperties"
|
5460
|
+
o.http_method = "POST"
|
5461
|
+
o.http_request_uri = "/"
|
5462
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeInstancePropertiesRequest)
|
5463
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeInstancePropertiesResult)
|
5464
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
5465
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidFilterKey)
|
5466
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInstanceId)
|
5467
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidActivationId)
|
5468
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInstancePropertyFilterValue)
|
5469
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
5470
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidDocument)
|
5471
|
+
o[:pager] = Aws::Pager.new(
|
5472
|
+
limit_key: "max_results",
|
5473
|
+
tokens: {
|
5474
|
+
"next_token" => "next_token"
|
5475
|
+
}
|
5476
|
+
)
|
5477
|
+
end)
|
5478
|
+
|
5376
5479
|
api.add_operation(:describe_inventory_deletions, Seahorse::Model::Operation.new.tap do |o|
|
5377
5480
|
o.name = "DescribeInventoryDeletions"
|
5378
5481
|
o.http_method = "POST"
|
@@ -642,6 +642,20 @@ module Aws::SSM
|
|
642
642
|
end
|
643
643
|
end
|
644
644
|
|
645
|
+
class DescribeInstanceProperties
|
646
|
+
def self.build(context)
|
647
|
+
unless context.config.regional_endpoint
|
648
|
+
endpoint = context.config.endpoint.to_s
|
649
|
+
end
|
650
|
+
Aws::SSM::EndpointParameters.new(
|
651
|
+
region: context.config.region,
|
652
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
653
|
+
use_fips: context.config.use_fips_endpoint,
|
654
|
+
endpoint: endpoint,
|
655
|
+
)
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
645
659
|
class DescribeInventoryDeletions
|
646
660
|
def self.build(context)
|
647
661
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ssm/errors.rb
CHANGED
@@ -80,6 +80,7 @@ module Aws::SSM
|
|
80
80
|
# * {InvalidFilterValue}
|
81
81
|
# * {InvalidInstanceId}
|
82
82
|
# * {InvalidInstanceInformationFilterValue}
|
83
|
+
# * {InvalidInstancePropertyFilterValue}
|
83
84
|
# * {InvalidInventoryGroupException}
|
84
85
|
# * {InvalidInventoryItemContextException}
|
85
86
|
# * {InvalidInventoryRequestException}
|
@@ -931,6 +932,21 @@ module Aws::SSM
|
|
931
932
|
end
|
932
933
|
end
|
933
934
|
|
935
|
+
class InvalidInstancePropertyFilterValue < ServiceError
|
936
|
+
|
937
|
+
# @param [Seahorse::Client::RequestContext] context
|
938
|
+
# @param [String] message
|
939
|
+
# @param [Aws::SSM::Types::InvalidInstancePropertyFilterValue] data
|
940
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
941
|
+
super(context, message, data)
|
942
|
+
end
|
943
|
+
|
944
|
+
# @return [String]
|
945
|
+
def message
|
946
|
+
@message || @data[:message]
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
934
950
|
class InvalidInventoryGroupException < ServiceError
|
935
951
|
|
936
952
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -148,6 +148,8 @@ module Aws::SSM
|
|
148
148
|
Aws::SSM::Endpoints::DescribeInstancePatchStatesForPatchGroup.build(context)
|
149
149
|
when :describe_instance_patches
|
150
150
|
Aws::SSM::Endpoints::DescribeInstancePatches.build(context)
|
151
|
+
when :describe_instance_properties
|
152
|
+
Aws::SSM::Endpoints::DescribeInstanceProperties.build(context)
|
151
153
|
when :describe_inventory_deletions
|
152
154
|
Aws::SSM::Endpoints::DescribeInventoryDeletions.build(context)
|
153
155
|
when :describe_maintenance_window_execution_task_invocations
|