aws-sdk-ssmsap 1.1.0 → 1.3.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: fd5a096527f6621a6479df566bdf07980025c3af85e6151958711b15253901b9
4
- data.tar.gz: 5a6e86c206d360187355409fd7600d2aa61edb3890d189a49058ba93710c11d8
3
+ metadata.gz: 00e8dba0dc7672388a9ad568fdb85cd123089156c6e359bc551a67d1c8245407
4
+ data.tar.gz: 63e85cb9c2e04b79025fd105ac1256a180b7da4947ebec6b8c6bdef104276987
5
5
  SHA512:
6
- metadata.gz: b58229a79bafc531e36e780dae52a3ed2fd35d34b34d2cdd0a2e66e7e2796b6e63f579c0f48a97b001843f80d8ababc0587ad6ff888b7c2326e2869c5bddc24d
7
- data.tar.gz: 477b7072f83c4a8b15133bfe98a1bde7bb14a0755b83e072c9cd26f5b792e3e15341b5aa931780ae9c27d2a87b003582e25e240a56136d1a57a03ceaa611fd84
6
+ metadata.gz: 07340af43a664e5eaa8afbe3f1fbdc10c8c25a9c6f49fa20a0783eb333eabf8c1fff6c0404d7689df940f1089ccd267ab9e1c5070086147641df5c2126625ef9
7
+ data.tar.gz: 199cc1afaaa51e0a0744f778879a8e8d3cf9c7bf4435a77008b69eb7b7c43a9e9557ae8757ecc0fc270e9083bbc2b883e74fc2eae6209e9e8610303fa42db54d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2023-01-24)
5
+ ------------------
6
+
7
+ * Feature - This release provides updates to documentation and support for listing operations performed by AWS Systems Manager for SAP.
8
+
9
+ 1.2.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.1.0 (2022-11-18)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.3.0
@@ -371,10 +371,13 @@ module Aws::SsmSap
371
371
  # Removes permissions associated with the target database.
372
372
  #
373
373
  # @option params [String] :action_type
374
+ # Delete or restore the permissions on the target database.
374
375
  #
375
376
  # @option params [String] :source_resource_arn
377
+ # The Amazon Resource Name (ARN) of the source resource.
376
378
  #
377
379
  # @option params [required, String] :resource_arn
380
+ # The Amazon Resource Name (ARN) of the resource.
378
381
  #
379
382
  # @return [Types::DeleteResourcePermissionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
380
383
  #
@@ -406,6 +409,7 @@ module Aws::SsmSap
406
409
  # Amazon EC2.
407
410
  #
408
411
  # @option params [required, String] :application_id
412
+ # The ID of the application.
409
413
  #
410
414
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
411
415
  #
@@ -428,8 +432,13 @@ module Aws::SsmSap
428
432
  # also returns the components of the application.
429
433
  #
430
434
  # @option params [String] :application_id
435
+ # The ID of the application.
431
436
  #
432
437
  # @option params [String] :application_arn
438
+ # The Amazon Resource Name (ARN) of the application.
439
+ #
440
+ # @option params [String] :app_registry_arn
441
+ # The Amazon Resource Name (ARN) of the application registry.
433
442
  #
434
443
  # @return [Types::GetApplicationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
435
444
  #
@@ -441,6 +450,7 @@ module Aws::SsmSap
441
450
  # resp = client.get_application({
442
451
  # application_id: "ApplicationId",
443
452
  # application_arn: "SsmSapArn",
453
+ # app_registry_arn: "AppRegistryArn",
444
454
  # })
445
455
  #
446
456
  # @example Response structure
@@ -470,8 +480,10 @@ module Aws::SsmSap
470
480
  # Manager for SAP.
471
481
  #
472
482
  # @option params [required, String] :application_id
483
+ # The ID of the application.
473
484
  #
474
485
  # @option params [required, String] :component_id
486
+ # The ID of the component.
475
487
  #
476
488
  # @return [Types::GetComponentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
477
489
  #
@@ -513,12 +525,16 @@ module Aws::SsmSap
513
525
  # Systems Manager for SAP.
514
526
  #
515
527
  # @option params [String] :application_id
528
+ # The ID of the application.
516
529
  #
517
530
  # @option params [String] :component_id
531
+ # The ID of the component.
518
532
  #
519
533
  # @option params [String] :database_id
534
+ # The ID of the database.
520
535
  #
521
536
  # @option params [String] :database_arn
537
+ # The Amazon Resource Name (ARN) of the database.
522
538
  #
523
539
  # @return [Types::GetDatabaseOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
524
540
  #
@@ -565,6 +581,7 @@ module Aws::SsmSap
565
581
  # Gets the details of an operation by specifying the operation ID.
566
582
  #
567
583
  # @option params [required, String] :operation_id
584
+ # The ID of the operation.
568
585
  #
569
586
  # @return [Types::GetOperationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
570
587
  #
@@ -605,6 +622,7 @@ module Aws::SsmSap
605
622
  # @option params [String] :action_type
606
623
  #
607
624
  # @option params [required, String] :resource_arn
625
+ # The Amazon Resource Name (ARN) of the resource.
608
626
  #
609
627
  # @return [Types::GetResourcePermissionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
610
628
  #
@@ -634,8 +652,12 @@ module Aws::SsmSap
634
652
  # SAP.
635
653
  #
636
654
  # @option params [String] :next_token
655
+ # The token for the next page of results.
637
656
  #
638
657
  # @option params [Integer] :max_results
658
+ # The maximum number of results to return with a single call. To
659
+ # retrieve the remaining results, make another call with the returned
660
+ # nextToken value.
639
661
  #
640
662
  # @return [Types::ListApplicationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
641
663
  #
@@ -673,10 +695,18 @@ module Aws::SsmSap
673
695
  # Lists all the components registered with AWS Systems Manager for SAP.
674
696
  #
675
697
  # @option params [String] :application_id
698
+ # The ID of the application.
676
699
  #
677
700
  # @option params [String] :next_token
701
+ # The token for the next page of results.
678
702
  #
679
703
  # @option params [Integer] :max_results
704
+ # The maximum number of results to return with a single call. To
705
+ # retrieve the remaining results, make another call with the returned
706
+ # nextToken value.
707
+ #
708
+ # If you do not specify a value for MaxResults, the request returns 50
709
+ # items per page by default.
680
710
  #
681
711
  # @return [Types::ListComponentsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
682
712
  #
@@ -716,12 +746,19 @@ module Aws::SsmSap
716
746
  # Systems Manager for SAP.
717
747
  #
718
748
  # @option params [String] :application_id
749
+ # The ID of the application.
719
750
  #
720
751
  # @option params [String] :component_id
752
+ # The ID of the component.
721
753
  #
722
754
  # @option params [String] :next_token
755
+ # The token for the next page of results.
723
756
  #
724
757
  # @option params [Integer] :max_results
758
+ # The maximum number of results to return with a single call. To
759
+ # retrieve the remaining results, make another call with the returned
760
+ # nextToken value. If you do not specify a value for MaxResults, the
761
+ # request returns 50 items per page by default.
725
762
  #
726
763
  # @return [Types::ListDatabasesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
727
764
  #
@@ -760,10 +797,76 @@ module Aws::SsmSap
760
797
  req.send_request(options)
761
798
  end
762
799
 
800
+ # Lists the operations performed by AWS Systems Manager for SAP.
801
+ #
802
+ # @option params [required, String] :application_id
803
+ # The ID of the application.
804
+ #
805
+ # @option params [Integer] :max_results
806
+ # The maximum number of results to return with a single call. To
807
+ # retrieve the remaining results, make another call with the returned
808
+ # nextToken value. If you do not specify a value for MaxResults, the
809
+ # request returns 50 items per page by default.
810
+ #
811
+ # @option params [String] :next_token
812
+ # The token for the next page of results.
813
+ #
814
+ # @option params [Array<Types::Filter>] :filters
815
+ # The filters of an operation.
816
+ #
817
+ # @return [Types::ListOperationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
818
+ #
819
+ # * {Types::ListOperationsOutput#operations #operations} => Array&lt;Types::Operation&gt;
820
+ # * {Types::ListOperationsOutput#next_token #next_token} => String
821
+ #
822
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
823
+ #
824
+ # @example Request syntax with placeholder values
825
+ #
826
+ # resp = client.list_operations({
827
+ # application_id: "ApplicationId", # required
828
+ # max_results: 1,
829
+ # next_token: "NextToken",
830
+ # filters: [
831
+ # {
832
+ # name: "FilterName", # required
833
+ # value: "FilterValue", # required
834
+ # operator: "Equals", # required, accepts Equals, GreaterThanOrEquals, LessThanOrEquals
835
+ # },
836
+ # ],
837
+ # })
838
+ #
839
+ # @example Response structure
840
+ #
841
+ # resp.operations #=> Array
842
+ # resp.operations[0].id #=> String
843
+ # resp.operations[0].type #=> String
844
+ # resp.operations[0].status #=> String, one of "INPROGRESS", "SUCCESS", "ERROR"
845
+ # resp.operations[0].status_message #=> String
846
+ # resp.operations[0].properties #=> Hash
847
+ # resp.operations[0].properties["String"] #=> String
848
+ # resp.operations[0].resource_type #=> String
849
+ # resp.operations[0].resource_id #=> String
850
+ # resp.operations[0].resource_arn #=> String
851
+ # resp.operations[0].start_time #=> Time
852
+ # resp.operations[0].end_time #=> Time
853
+ # resp.operations[0].last_updated_time #=> Time
854
+ # resp.next_token #=> String
855
+ #
856
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-sap-2018-05-10/ListOperations AWS API Documentation
857
+ #
858
+ # @overload list_operations(params = {})
859
+ # @param [Hash] params ({})
860
+ def list_operations(params = {}, options = {})
861
+ req = build_request(:list_operations, params)
862
+ req.send_request(options)
863
+ end
864
+
763
865
  # Lists all tags on an SAP HANA application and/or database registered
764
866
  # with AWS Systems Manager for SAP.
765
867
  #
766
868
  # @option params [required, String] :resource_arn
869
+ # The Amazon Resource Name (ARN) of the resource.
767
870
  #
768
871
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
769
872
  #
@@ -835,18 +938,25 @@ module Aws::SsmSap
835
938
  # Secrets Manager to manage SAP applications and components.
836
939
  #
837
940
  # @option params [required, String] :application_id
941
+ # The ID of the application.
838
942
  #
839
943
  # @option params [required, String] :application_type
944
+ # The type of the application.
840
945
  #
841
946
  # @option params [required, Array<String>] :instances
947
+ # The Amazon EC2 instances on which your SAP application is running.
842
948
  #
843
949
  # @option params [String] :sap_instance_number
950
+ # The SAP instance number of the application.
844
951
  #
845
952
  # @option params [String] :sid
953
+ # The System ID of the application.
846
954
  #
847
955
  # @option params [Hash<String,String>] :tags
956
+ # The tags to be attached to the SAP application.
848
957
  #
849
958
  # @option params [required, Array<Types::ApplicationCredential>] :credentials
959
+ # The credentials of the SAP application.
850
960
  #
851
961
  # @return [Types::RegisterApplicationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
852
962
  #
@@ -898,8 +1008,10 @@ module Aws::SsmSap
898
1008
  # Creates tag for a resource by specifying the ARN.
899
1009
  #
900
1010
  # @option params [required, String] :resource_arn
1011
+ # The Amazon Resource Name (ARN) of the resource.
901
1012
  #
902
1013
  # @option params [required, Hash<String,String>] :tags
1014
+ # The tags on a resource.
903
1015
  #
904
1016
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
905
1017
  #
@@ -924,6 +1036,7 @@ module Aws::SsmSap
924
1036
  # Delete the tags for a resource.
925
1037
  #
926
1038
  # @option params [required, String] :resource_arn
1039
+ # The Amazon Resource Name (ARN) of the resource.
927
1040
  #
928
1041
  # @option params [required, Array<String>] :tag_keys
929
1042
  # Adds/updates or removes credentials for applications registered with
@@ -947,11 +1060,17 @@ module Aws::SsmSap
947
1060
  req.send_request(options)
948
1061
  end
949
1062
 
1063
+ # Updates the settings of an application registered with AWS Systems
1064
+ # Manager for SAP.
1065
+ #
950
1066
  # @option params [required, String] :application_id
1067
+ # The ID of the application.
951
1068
  #
952
1069
  # @option params [Array<Types::ApplicationCredential>] :credentials_to_add_or_update
1070
+ # The credentials to be added or updated.
953
1071
  #
954
1072
  # @option params [Array<Types::ApplicationCredential>] :credentials_to_remove
1073
+ # The credentials to be removed.
955
1074
  #
956
1075
  # @return [Types::UpdateApplicationSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
957
1076
  #
@@ -1006,7 +1125,7 @@ module Aws::SsmSap
1006
1125
  params: params,
1007
1126
  config: config)
1008
1127
  context[:gem_name] = 'aws-sdk-ssmsap'
1009
- context[:gem_version] = '1.1.0'
1128
+ context[:gem_version] = '1.3.0'
1010
1129
  Seahorse::Client::Request.new(handlers, context)
1011
1130
  end
1012
1131
 
@@ -44,6 +44,11 @@ module Aws::SsmSap
44
44
  DeleteResourcePermissionOutput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionOutput')
45
45
  DeregisterApplicationInput = Shapes::StructureShape.new(name: 'DeregisterApplicationInput')
46
46
  DeregisterApplicationOutput = Shapes::StructureShape.new(name: 'DeregisterApplicationOutput')
47
+ Filter = Shapes::StructureShape.new(name: 'Filter')
48
+ FilterList = Shapes::ListShape.new(name: 'FilterList')
49
+ FilterName = Shapes::StringShape.new(name: 'FilterName')
50
+ FilterOperator = Shapes::StringShape.new(name: 'FilterOperator')
51
+ FilterValue = Shapes::StringShape.new(name: 'FilterValue')
47
52
  GetApplicationInput = Shapes::StructureShape.new(name: 'GetApplicationInput')
48
53
  GetApplicationOutput = Shapes::StructureShape.new(name: 'GetApplicationOutput')
49
54
  GetComponentInput = Shapes::StructureShape.new(name: 'GetComponentInput')
@@ -67,6 +72,8 @@ module Aws::SsmSap
67
72
  ListComponentsOutput = Shapes::StructureShape.new(name: 'ListComponentsOutput')
68
73
  ListDatabasesInput = Shapes::StructureShape.new(name: 'ListDatabasesInput')
69
74
  ListDatabasesOutput = Shapes::StructureShape.new(name: 'ListDatabasesOutput')
75
+ ListOperationsInput = Shapes::StructureShape.new(name: 'ListOperationsInput')
76
+ ListOperationsOutput = Shapes::StructureShape.new(name: 'ListOperationsOutput')
70
77
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
71
78
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
72
79
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
@@ -74,6 +81,7 @@ module Aws::SsmSap
74
81
  Operation = Shapes::StructureShape.new(name: 'Operation')
75
82
  OperationId = Shapes::StringShape.new(name: 'OperationId')
76
83
  OperationIdList = Shapes::ListShape.new(name: 'OperationIdList')
84
+ OperationList = Shapes::ListShape.new(name: 'OperationList')
77
85
  OperationProperties = Shapes::MapShape.new(name: 'OperationProperties')
78
86
  OperationStatus = Shapes::StringShape.new(name: 'OperationStatus')
79
87
  OperationType = Shapes::StringShape.new(name: 'OperationType')
@@ -189,8 +197,16 @@ module Aws::SsmSap
189
197
 
190
198
  DeregisterApplicationOutput.struct_class = Types::DeregisterApplicationOutput
191
199
 
200
+ Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, required: true, location_name: "Name"))
201
+ Filter.add_member(:value, Shapes::ShapeRef.new(shape: FilterValue, required: true, location_name: "Value"))
202
+ Filter.add_member(:operator, Shapes::ShapeRef.new(shape: FilterOperator, required: true, location_name: "Operator"))
203
+ Filter.struct_class = Types::Filter
204
+
205
+ FilterList.member = Shapes::ShapeRef.new(shape: Filter)
206
+
192
207
  GetApplicationInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, location_name: "ApplicationId"))
193
208
  GetApplicationInput.add_member(:application_arn, Shapes::ShapeRef.new(shape: SsmSapArn, location_name: "ApplicationArn"))
209
+ GetApplicationInput.add_member(:app_registry_arn, Shapes::ShapeRef.new(shape: AppRegistryArn, location_name: "AppRegistryArn"))
194
210
  GetApplicationInput.struct_class = Types::GetApplicationInput
195
211
 
196
212
  GetApplicationOutput.add_member(:application, Shapes::ShapeRef.new(shape: Application, location_name: "Application"))
@@ -267,6 +283,16 @@ module Aws::SsmSap
267
283
  ListDatabasesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
268
284
  ListDatabasesOutput.struct_class = Types::ListDatabasesOutput
269
285
 
286
+ ListOperationsInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "ApplicationId"))
287
+ ListOperationsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
288
+ ListOperationsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
289
+ ListOperationsInput.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
290
+ ListOperationsInput.struct_class = Types::ListOperationsInput
291
+
292
+ ListOperationsOutput.add_member(:operations, Shapes::ShapeRef.new(shape: OperationList, location_name: "Operations"))
293
+ ListOperationsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
294
+ ListOperationsOutput.struct_class = Types::ListOperationsOutput
295
+
270
296
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SsmSapArn, required: true, location: "uri", location_name: "resourceArn"))
271
297
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
272
298
 
@@ -288,6 +314,8 @@ module Aws::SsmSap
288
314
 
289
315
  OperationIdList.member = Shapes::ShapeRef.new(shape: OperationId)
290
316
 
317
+ OperationList.member = Shapes::ShapeRef.new(shape: Operation)
318
+
291
319
  OperationProperties.key = Shapes::ShapeRef.new(shape: String)
292
320
  OperationProperties.value = Shapes::ShapeRef.new(shape: String)
293
321
 
@@ -486,6 +514,22 @@ module Aws::SsmSap
486
514
  )
487
515
  end)
488
516
 
517
+ api.add_operation(:list_operations, Seahorse::Model::Operation.new.tap do |o|
518
+ o.name = "ListOperations"
519
+ o.http_method = "POST"
520
+ o.http_request_uri = "/list-operations"
521
+ o.input = Shapes::ShapeRef.new(shape: ListOperationsInput)
522
+ o.output = Shapes::ShapeRef.new(shape: ListOperationsOutput)
523
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
524
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
525
+ o[:pager] = Aws::Pager.new(
526
+ limit_key: "max_results",
527
+ tokens: {
528
+ "next_token" => "next_token"
529
+ }
530
+ )
531
+ end)
532
+
489
533
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
490
534
  o.name = "ListTagsForResource"
491
535
  o.http_method = "GET"
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::SsmSap
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://ssm-sap-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://ssm-sap-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://ssm-sap.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://ssm-sap.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
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IjoiaHR0cHM6Ly9zc20tc2FwLntSZWdp
105
- b259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMi
106
- Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -151,6 +151,20 @@ module Aws::SsmSap
151
151
  end
152
152
  end
153
153
 
154
+ class ListOperations
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::SsmSap::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
154
168
  class ListTagsForResource
155
169
  def self.build(context)
156
170
  unless context.config.regional_endpoint
@@ -76,6 +76,8 @@ module Aws::SsmSap
76
76
  Aws::SsmSap::Endpoints::ListComponents.build(context)
77
77
  when :list_databases
78
78
  Aws::SsmSap::Endpoints::ListDatabases.build(context)
79
+ when :list_operations
80
+ Aws::SsmSap::Endpoints::ListOperations.build(context)
79
81
  when :list_tags_for_resource
80
82
  Aws::SsmSap::Endpoints::ListTagsForResource.build(context)
81
83
  when :put_resource_permission