aws-sdk-ssm 1.158.0 → 1.159.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ssm/client.rb +51 -2
- data/lib/aws-sdk-ssm/client_api.rb +24 -0
- data/lib/aws-sdk-ssm/endpoint_provider.rb +2 -2
- 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 +32 -3
- data/lib/aws-sdk-ssm.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3006dcfcf648a05a23906827c0a56a059354d22eeb51794477c394f4befba9b8
|
4
|
+
data.tar.gz: c9113637b382d314ae97e86e8cfc376fc224f40d5eb491d72468404e4998f78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a244e5071f4b9090614245f3c5ea4e796e8ad0aa55f67b050a96f22fb520243a92bf1f0f896ca1322d03de393e1c517b9ff618142651084cd04ea067a87c1ec
|
7
|
+
data.tar.gz: c2eade71b73299425c1e49fb7454ec45fe71a1e7cbc2d9f78a4ea729c7fd581f6465b73d61da62f73e6155ef60a5f9b6ec8af4661db01e85a935eb9dd3ac0534
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.159.0
|
data/lib/aws-sdk-ssm/client.rb
CHANGED
@@ -1691,7 +1691,7 @@ module Aws::SSM
|
|
1691
1691
|
# This type of OpsItem is used by Change Manager for reviewing and
|
1692
1692
|
# approving or rejecting change requests.
|
1693
1693
|
#
|
1694
|
-
# * `/aws/
|
1694
|
+
# * `/aws/insights`
|
1695
1695
|
#
|
1696
1696
|
# This type of OpsItem is used by OpsCenter for aggregating and
|
1697
1697
|
# reporting on duplicate OpsItems.
|
@@ -2401,6 +2401,55 @@ module Aws::SSM
|
|
2401
2401
|
req.send_request(options)
|
2402
2402
|
end
|
2403
2403
|
|
2404
|
+
# Delete an OpsItem. You must have permission in Identity and Access
|
2405
|
+
# Management (IAM) to delete an OpsItem.
|
2406
|
+
#
|
2407
|
+
# Note the following important information about this operation.
|
2408
|
+
#
|
2409
|
+
# * Deleting an OpsItem is irreversible. You can't restore a deleted
|
2410
|
+
# OpsItem.
|
2411
|
+
#
|
2412
|
+
# * This operation uses an *eventual consistency model*, which means the
|
2413
|
+
# system can take a few minutes to complete this operation. If you
|
2414
|
+
# delete an OpsItem and immediately call, for example, GetOpsItem, the
|
2415
|
+
# deleted OpsItem might still appear in the response.
|
2416
|
+
#
|
2417
|
+
# * This operation is idempotent. The system doesn't throw an exception
|
2418
|
+
# if you repeatedly call this operation for the same OpsItem. If the
|
2419
|
+
# first call is successful, all additional calls return the same
|
2420
|
+
# successful response as the first call.
|
2421
|
+
#
|
2422
|
+
# * This operation doesn't support cross-account calls. A delegated
|
2423
|
+
# administrator or management account can't delete OpsItems in other
|
2424
|
+
# accounts, even if OpsCenter has been set up for cross-account
|
2425
|
+
# administration. For more information about cross-account
|
2426
|
+
# administration, see [Setting up OpsCenter to centrally manage
|
2427
|
+
# OpsItems across accounts][1] in the *Systems Manager User Guide*.
|
2428
|
+
#
|
2429
|
+
#
|
2430
|
+
#
|
2431
|
+
# [1]: https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setting-up-cross-account.html
|
2432
|
+
#
|
2433
|
+
# @option params [required, String] :ops_item_id
|
2434
|
+
# The ID of the OpsItem that you want to delete.
|
2435
|
+
#
|
2436
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2437
|
+
#
|
2438
|
+
# @example Request syntax with placeholder values
|
2439
|
+
#
|
2440
|
+
# resp = client.delete_ops_item({
|
2441
|
+
# ops_item_id: "OpsItemId", # required
|
2442
|
+
# })
|
2443
|
+
#
|
2444
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteOpsItem AWS API Documentation
|
2445
|
+
#
|
2446
|
+
# @overload delete_ops_item(params = {})
|
2447
|
+
# @param [Hash] params ({})
|
2448
|
+
def delete_ops_item(params = {}, options = {})
|
2449
|
+
req = build_request(:delete_ops_item, params)
|
2450
|
+
req.send_request(options)
|
2451
|
+
end
|
2452
|
+
|
2404
2453
|
# Delete OpsMetadata related to an application.
|
2405
2454
|
#
|
2406
2455
|
# @option params [required, String] :ops_metadata_arn
|
@@ -12184,7 +12233,7 @@ module Aws::SSM
|
|
12184
12233
|
params: params,
|
12185
12234
|
config: config)
|
12186
12235
|
context[:gem_name] = 'aws-sdk-ssm'
|
12187
|
-
context[:gem_version] = '1.
|
12236
|
+
context[:gem_version] = '1.159.0'
|
12188
12237
|
Seahorse::Client::Request.new(handlers, context)
|
12189
12238
|
end
|
12190
12239
|
|
@@ -231,6 +231,8 @@ module Aws::SSM
|
|
231
231
|
DeleteInventoryResult = Shapes::StructureShape.new(name: 'DeleteInventoryResult')
|
232
232
|
DeleteMaintenanceWindowRequest = Shapes::StructureShape.new(name: 'DeleteMaintenanceWindowRequest')
|
233
233
|
DeleteMaintenanceWindowResult = Shapes::StructureShape.new(name: 'DeleteMaintenanceWindowResult')
|
234
|
+
DeleteOpsItemRequest = Shapes::StructureShape.new(name: 'DeleteOpsItemRequest')
|
235
|
+
DeleteOpsItemResponse = Shapes::StructureShape.new(name: 'DeleteOpsItemResponse')
|
234
236
|
DeleteOpsMetadataRequest = Shapes::StructureShape.new(name: 'DeleteOpsMetadataRequest')
|
235
237
|
DeleteOpsMetadataResult = Shapes::StructureShape.new(name: 'DeleteOpsMetadataResult')
|
236
238
|
DeleteParameterRequest = Shapes::StructureShape.new(name: 'DeleteParameterRequest')
|
@@ -752,6 +754,7 @@ module Aws::SSM
|
|
752
754
|
OpsItemAlreadyExistsException = Shapes::StructureShape.new(name: 'OpsItemAlreadyExistsException')
|
753
755
|
OpsItemArn = Shapes::StringShape.new(name: 'OpsItemArn')
|
754
756
|
OpsItemCategory = Shapes::StringShape.new(name: 'OpsItemCategory')
|
757
|
+
OpsItemConflictException = Shapes::StructureShape.new(name: 'OpsItemConflictException')
|
755
758
|
OpsItemDataKey = Shapes::StringShape.new(name: 'OpsItemDataKey')
|
756
759
|
OpsItemDataType = Shapes::StringShape.new(name: 'OpsItemDataType')
|
757
760
|
OpsItemDataValue = Shapes::StructureShape.new(name: 'OpsItemDataValue')
|
@@ -1888,6 +1891,11 @@ module Aws::SSM
|
|
1888
1891
|
DeleteMaintenanceWindowResult.add_member(:window_id, Shapes::ShapeRef.new(shape: MaintenanceWindowId, location_name: "WindowId"))
|
1889
1892
|
DeleteMaintenanceWindowResult.struct_class = Types::DeleteMaintenanceWindowResult
|
1890
1893
|
|
1894
|
+
DeleteOpsItemRequest.add_member(:ops_item_id, Shapes::ShapeRef.new(shape: OpsItemId, required: true, location_name: "OpsItemId"))
|
1895
|
+
DeleteOpsItemRequest.struct_class = Types::DeleteOpsItemRequest
|
1896
|
+
|
1897
|
+
DeleteOpsItemResponse.struct_class = Types::DeleteOpsItemResponse
|
1898
|
+
|
1891
1899
|
DeleteOpsMetadataRequest.add_member(:ops_metadata_arn, Shapes::ShapeRef.new(shape: OpsMetadataArn, required: true, location_name: "OpsMetadataArn"))
|
1892
1900
|
DeleteOpsMetadataRequest.struct_class = Types::DeleteOpsMetadataRequest
|
1893
1901
|
|
@@ -3569,6 +3577,9 @@ module Aws::SSM
|
|
3569
3577
|
OpsItemAlreadyExistsException.add_member(:ops_item_id, Shapes::ShapeRef.new(shape: String, location_name: "OpsItemId"))
|
3570
3578
|
OpsItemAlreadyExistsException.struct_class = Types::OpsItemAlreadyExistsException
|
3571
3579
|
|
3580
|
+
OpsItemConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
3581
|
+
OpsItemConflictException.struct_class = Types::OpsItemConflictException
|
3582
|
+
|
3572
3583
|
OpsItemDataValue.add_member(:value, Shapes::ShapeRef.new(shape: OpsItemDataValueString, location_name: "Value"))
|
3573
3584
|
OpsItemDataValue.add_member(:type, Shapes::ShapeRef.new(shape: OpsItemDataType, location_name: "Type"))
|
3574
3585
|
OpsItemDataValue.struct_class = Types::OpsItemDataValue
|
@@ -4743,6 +4754,7 @@ module Aws::SSM
|
|
4743
4754
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemLimitExceededException)
|
4744
4755
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemInvalidParameterException)
|
4745
4756
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemRelatedItemAlreadyExistsException)
|
4757
|
+
o.errors << Shapes::ShapeRef.new(shape: OpsItemConflictException)
|
4746
4758
|
end)
|
4747
4759
|
|
4748
4760
|
api.add_operation(:cancel_command, Seahorse::Model::Operation.new.tap do |o|
|
@@ -4951,6 +4963,16 @@ module Aws::SSM
|
|
4951
4963
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
4952
4964
|
end)
|
4953
4965
|
|
4966
|
+
api.add_operation(:delete_ops_item, Seahorse::Model::Operation.new.tap do |o|
|
4967
|
+
o.name = "DeleteOpsItem"
|
4968
|
+
o.http_method = "POST"
|
4969
|
+
o.http_request_uri = "/"
|
4970
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteOpsItemRequest)
|
4971
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteOpsItemResponse)
|
4972
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
4973
|
+
o.errors << Shapes::ShapeRef.new(shape: OpsItemInvalidParameterException)
|
4974
|
+
end)
|
4975
|
+
|
4954
4976
|
api.add_operation(:delete_ops_metadata, Seahorse::Model::Operation.new.tap do |o|
|
4955
4977
|
o.name = "DeleteOpsMetadata"
|
4956
4978
|
o.http_method = "POST"
|
@@ -5575,6 +5597,7 @@ module Aws::SSM
|
|
5575
5597
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemRelatedItemAssociationNotFoundException)
|
5576
5598
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemNotFoundException)
|
5577
5599
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemInvalidParameterException)
|
5600
|
+
o.errors << Shapes::ShapeRef.new(shape: OpsItemConflictException)
|
5578
5601
|
end)
|
5579
5602
|
|
5580
5603
|
api.add_operation(:get_automation_execution, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6570,6 +6593,7 @@ module Aws::SSM
|
|
6570
6593
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemLimitExceededException)
|
6571
6594
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemInvalidParameterException)
|
6572
6595
|
o.errors << Shapes::ShapeRef.new(shape: OpsItemAccessDeniedException)
|
6596
|
+
o.errors << Shapes::ShapeRef.new(shape: OpsItemConflictException)
|
6573
6597
|
end)
|
6574
6598
|
|
6575
6599
|
api.add_operation(:update_ops_metadata, Seahorse::Model::Operation.new.tap do |o|
|
@@ -32,8 +32,8 @@ module Aws::SSM
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://ssm.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
39
|
return Aws::Endpoints::Endpoint.new(url: "https://ssm-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
@@ -264,6 +264,20 @@ module Aws::SSM
|
|
264
264
|
end
|
265
265
|
end
|
266
266
|
|
267
|
+
class DeleteOpsItem
|
268
|
+
def self.build(context)
|
269
|
+
unless context.config.regional_endpoint
|
270
|
+
endpoint = context.config.endpoint.to_s
|
271
|
+
end
|
272
|
+
Aws::SSM::EndpointParameters.new(
|
273
|
+
region: context.config.region,
|
274
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
275
|
+
use_fips: context.config.use_fips_endpoint,
|
276
|
+
endpoint: endpoint,
|
277
|
+
)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
267
281
|
class DeleteOpsMetadata
|
268
282
|
def self.build(context)
|
269
283
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ssm/errors.rb
CHANGED
@@ -111,6 +111,7 @@ module Aws::SSM
|
|
111
111
|
# * {MaxDocumentSizeExceeded}
|
112
112
|
# * {OpsItemAccessDeniedException}
|
113
113
|
# * {OpsItemAlreadyExistsException}
|
114
|
+
# * {OpsItemConflictException}
|
114
115
|
# * {OpsItemInvalidParameterException}
|
115
116
|
# * {OpsItemLimitExceededException}
|
116
117
|
# * {OpsItemNotFoundException}
|
@@ -1382,6 +1383,21 @@ module Aws::SSM
|
|
1382
1383
|
end
|
1383
1384
|
end
|
1384
1385
|
|
1386
|
+
class OpsItemConflictException < ServiceError
|
1387
|
+
|
1388
|
+
# @param [Seahorse::Client::RequestContext] context
|
1389
|
+
# @param [String] message
|
1390
|
+
# @param [Aws::SSM::Types::OpsItemConflictException] data
|
1391
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1392
|
+
super(context, message, data)
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
# @return [String]
|
1396
|
+
def message
|
1397
|
+
@message || @data[:message]
|
1398
|
+
end
|
1399
|
+
end
|
1400
|
+
|
1385
1401
|
class OpsItemInvalidParameterException < ServiceError
|
1386
1402
|
|
1387
1403
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -92,6 +92,8 @@ module Aws::SSM
|
|
92
92
|
Aws::SSM::Endpoints::DeleteInventory.build(context)
|
93
93
|
when :delete_maintenance_window
|
94
94
|
Aws::SSM::Endpoints::DeleteMaintenanceWindow.build(context)
|
95
|
+
when :delete_ops_item
|
96
|
+
Aws::SSM::Endpoints::DeleteOpsItem.build(context)
|
95
97
|
when :delete_ops_metadata
|
96
98
|
Aws::SSM::Endpoints::DeleteOpsMetadata.build(context)
|
97
99
|
when :delete_parameter
|
data/lib/aws-sdk-ssm/types.rb
CHANGED
@@ -3535,7 +3535,7 @@ module Aws::SSM
|
|
3535
3535
|
# This type of OpsItem is used by Change Manager for reviewing and
|
3536
3536
|
# approving or rejecting change requests.
|
3537
3537
|
#
|
3538
|
-
# * `/aws/
|
3538
|
+
# * `/aws/insights`
|
3539
3539
|
#
|
3540
3540
|
# This type of OpsItem is used by OpsCenter for aggregating and
|
3541
3541
|
# reporting on duplicate OpsItems.
|
@@ -4128,6 +4128,22 @@ module Aws::SSM
|
|
4128
4128
|
include Aws::Structure
|
4129
4129
|
end
|
4130
4130
|
|
4131
|
+
# @!attribute [rw] ops_item_id
|
4132
|
+
# The ID of the OpsItem that you want to delete.
|
4133
|
+
# @return [String]
|
4134
|
+
#
|
4135
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteOpsItemRequest AWS API Documentation
|
4136
|
+
#
|
4137
|
+
class DeleteOpsItemRequest < Struct.new(
|
4138
|
+
:ops_item_id)
|
4139
|
+
SENSITIVE = []
|
4140
|
+
include Aws::Structure
|
4141
|
+
end
|
4142
|
+
|
4143
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteOpsItemResponse AWS API Documentation
|
4144
|
+
#
|
4145
|
+
class DeleteOpsItemResponse < Aws::EmptyStructure; end
|
4146
|
+
|
4131
4147
|
# @!attribute [rw] ops_metadata_arn
|
4132
4148
|
# The Amazon Resource Name (ARN) of an OpsMetadata Object to delete.
|
4133
4149
|
# @return [String]
|
@@ -12708,7 +12724,7 @@ module Aws::SSM
|
|
12708
12724
|
# This type of OpsItem is used by Change Manager for reviewing and
|
12709
12725
|
# approving or rejecting change requests.
|
12710
12726
|
#
|
12711
|
-
# * `/aws/
|
12727
|
+
# * `/aws/insights`
|
12712
12728
|
#
|
12713
12729
|
# This type of OpsItem is used by OpsCenter for aggregating and
|
12714
12730
|
# reporting on duplicate OpsItems.
|
@@ -12906,6 +12922,19 @@ module Aws::SSM
|
|
12906
12922
|
include Aws::Structure
|
12907
12923
|
end
|
12908
12924
|
|
12925
|
+
# The specified OpsItem is in the process of being deleted.
|
12926
|
+
#
|
12927
|
+
# @!attribute [rw] message
|
12928
|
+
# @return [String]
|
12929
|
+
#
|
12930
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/OpsItemConflictException AWS API Documentation
|
12931
|
+
#
|
12932
|
+
class OpsItemConflictException < Struct.new(
|
12933
|
+
:message)
|
12934
|
+
SENSITIVE = []
|
12935
|
+
include Aws::Structure
|
12936
|
+
end
|
12937
|
+
|
12909
12938
|
# An object that defines the value of the key and its type in the
|
12910
12939
|
# OperationalData map.
|
12911
12940
|
#
|
@@ -13299,7 +13328,7 @@ module Aws::SSM
|
|
13299
13328
|
# This type of OpsItem is used by Change Manager for reviewing and
|
13300
13329
|
# approving or rejecting change requests.
|
13301
13330
|
#
|
13302
|
-
# * `/aws/
|
13331
|
+
# * `/aws/insights`
|
13303
13332
|
#
|
13304
13333
|
# This type of OpsItem is used by OpsCenter for aggregating and
|
13305
13334
|
# reporting on duplicate OpsItems.
|
data/lib/aws-sdk-ssm.rb
CHANGED
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.
|
4
|
+
version: 1.159.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: 2023-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|