aws-sdk-ssm 1.157.0 → 1.159.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
  SHA256:
3
- metadata.gz: 8121954d4713e2f6b450408e1e8547e81f6a1d0e5d66af8f3c2283fc4a8c7004
4
- data.tar.gz: c1ebc54ed498a39444f4e31262f46e62f6db2b628ea481c65a48dc3bb356f806
3
+ metadata.gz: 3006dcfcf648a05a23906827c0a56a059354d22eeb51794477c394f4befba9b8
4
+ data.tar.gz: c9113637b382d314ae97e86e8cfc376fc224f40d5eb491d72468404e4998f78c
5
5
  SHA512:
6
- metadata.gz: 177b39a7c8c04601c3a2a3c67c6e0ff18d3dad114c25d2c92d498422a3f6f07dbc6a69305fd3587a65065fcbaf1758de0c0f74ad892978d0f84b5840dcd3f7c6
7
- data.tar.gz: dbe9f2ef12be2ca31cc2ddeee0b6168ecfcf0a08ee65c053a72eb62176780200833e7f9975ac7bd820aad11ad17948c4f951f227f24fe22b1eb5c89245e2a9d1
6
+ metadata.gz: 8a244e5071f4b9090614245f3c5ea4e796e8ad0aa55f67b050a96f22fb520243a92bf1f0f896ca1322d03de393e1c517b9ff618142651084cd04ea067a87c1ec
7
+ data.tar.gz: c2eade71b73299425c1e49fb7454ec45fe71a1e7cbc2d9f78a4ea729c7fd581f6465b73d61da62f73e6155ef60a5f9b6ec8af4661db01e85a935eb9dd3ac0534
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.159.0 (2023-10-20)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new API: DeleteOpsItem. This allows deletion of an OpsItem.
8
+
9
+ 1.158.0 (2023-09-27)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.157.0 (2023-09-25)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.157.0
1
+ 1.159.0
@@ -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/insight`
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.157.0'
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?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
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
@@ -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
@@ -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/insight`
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/insight`
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/insight`
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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-ssm/customizations'
53
53
  # @!group service
54
54
  module Aws::SSM
55
55
 
56
- GEM_VERSION = '1.157.0'
56
+ GEM_VERSION = '1.159.0'
57
57
 
58
58
  end
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.157.0
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-09-25 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.177.0
22
+ version: 3.184.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.177.0
32
+ version: 3.184.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement