aws-sdk-servicediscovery 1.49.0 → 1.50.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-servicediscovery/client.rb +1 -1
- data/lib/aws-sdk-servicediscovery/client_api.rb +24 -0
- data/lib/aws-sdk-servicediscovery/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-servicediscovery/endpoint_provider.rb +25 -28
- data/lib/aws-sdk-servicediscovery.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: 3ee2cf3c4dd347f59f6de230fdd0e7d7e0207805f81e5c0a5349a368d3730c0a
|
4
|
+
data.tar.gz: 142acadd047ae84aaa9ae1a889186c4b28c161b6b4e986ad52d6a7a7b8dbe7e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7296ca6faf3991c53c8cc44e212294fa3bfd219a925b2850dd0db2ceadc448b0d7d690bec3ab6d35be430f54face255cc6d7e473df6fc2fb737730b1bb81fb
|
7
|
+
data.tar.gz: b8e595e5f2b6ad9480c5e2f3967a53a104b0daa5f5cfa6e59a45e0ad6f37431252c7b773c42ef407f7cab250017f210ac4dfc52f0eb22d7a5638213ccd4551d7
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
@@ -2641,7 +2641,7 @@ module Aws::ServiceDiscovery
|
|
2641
2641
|
params: params,
|
2642
2642
|
config: config)
|
2643
2643
|
context[:gem_name] = 'aws-sdk-servicediscovery'
|
2644
|
-
context[:gem_version] = '1.
|
2644
|
+
context[:gem_version] = '1.50.0'
|
2645
2645
|
Seahorse::Client::Request.new(handlers, context)
|
2646
2646
|
end
|
2647
2647
|
|
@@ -666,6 +666,7 @@ module Aws::ServiceDiscovery
|
|
666
666
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
667
667
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
668
668
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
669
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
669
670
|
end)
|
670
671
|
|
671
672
|
api.add_operation(:create_private_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -679,6 +680,7 @@ module Aws::ServiceDiscovery
|
|
679
680
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
680
681
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
681
682
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
683
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
682
684
|
end)
|
683
685
|
|
684
686
|
api.add_operation(:create_public_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -692,6 +694,7 @@ module Aws::ServiceDiscovery
|
|
692
694
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
693
695
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
694
696
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
697
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
695
698
|
end)
|
696
699
|
|
697
700
|
api.add_operation(:create_service, Seahorse::Model::Operation.new.tap do |o|
|
@@ -705,6 +708,7 @@ module Aws::ServiceDiscovery
|
|
705
708
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
706
709
|
o.errors << Shapes::ShapeRef.new(shape: ServiceAlreadyExists)
|
707
710
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
711
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
708
712
|
end)
|
709
713
|
|
710
714
|
api.add_operation(:delete_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -717,6 +721,7 @@ module Aws::ServiceDiscovery
|
|
717
721
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
718
722
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
719
723
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
724
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
720
725
|
end)
|
721
726
|
|
722
727
|
api.add_operation(:delete_service, Seahorse::Model::Operation.new.tap do |o|
|
@@ -728,6 +733,7 @@ module Aws::ServiceDiscovery
|
|
728
733
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
729
734
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
730
735
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
736
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
731
737
|
end)
|
732
738
|
|
733
739
|
api.add_operation(:deregister_instance, Seahorse::Model::Operation.new.tap do |o|
|
@@ -741,6 +747,7 @@ module Aws::ServiceDiscovery
|
|
741
747
|
o.errors << Shapes::ShapeRef.new(shape: InstanceNotFound)
|
742
748
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
743
749
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
750
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
744
751
|
end)
|
745
752
|
|
746
753
|
api.add_operation(:discover_instances, Seahorse::Model::Operation.new.tap do |o|
|
@@ -767,6 +774,7 @@ module Aws::ServiceDiscovery
|
|
767
774
|
o.errors << Shapes::ShapeRef.new(shape: InstanceNotFound)
|
768
775
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
769
776
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
777
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
770
778
|
end)
|
771
779
|
|
772
780
|
api.add_operation(:get_instances_health_status, Seahorse::Model::Operation.new.tap do |o|
|
@@ -778,6 +786,7 @@ module Aws::ServiceDiscovery
|
|
778
786
|
o.errors << Shapes::ShapeRef.new(shape: InstanceNotFound)
|
779
787
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
780
788
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
789
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
781
790
|
o[:pager] = Aws::Pager.new(
|
782
791
|
limit_key: "max_results",
|
783
792
|
tokens: {
|
@@ -804,6 +813,7 @@ module Aws::ServiceDiscovery
|
|
804
813
|
o.output = Shapes::ShapeRef.new(shape: GetOperationResponse)
|
805
814
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
806
815
|
o.errors << Shapes::ShapeRef.new(shape: OperationNotFound)
|
816
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
807
817
|
end)
|
808
818
|
|
809
819
|
api.add_operation(:get_service, Seahorse::Model::Operation.new.tap do |o|
|
@@ -814,6 +824,7 @@ module Aws::ServiceDiscovery
|
|
814
824
|
o.output = Shapes::ShapeRef.new(shape: GetServiceResponse)
|
815
825
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
816
826
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
827
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
817
828
|
end)
|
818
829
|
|
819
830
|
api.add_operation(:list_instances, Seahorse::Model::Operation.new.tap do |o|
|
@@ -824,6 +835,7 @@ module Aws::ServiceDiscovery
|
|
824
835
|
o.output = Shapes::ShapeRef.new(shape: ListInstancesResponse)
|
825
836
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
826
837
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
838
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
827
839
|
o[:pager] = Aws::Pager.new(
|
828
840
|
limit_key: "max_results",
|
829
841
|
tokens: {
|
@@ -839,6 +851,7 @@ module Aws::ServiceDiscovery
|
|
839
851
|
o.input = Shapes::ShapeRef.new(shape: ListNamespacesRequest)
|
840
852
|
o.output = Shapes::ShapeRef.new(shape: ListNamespacesResponse)
|
841
853
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
854
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
842
855
|
o[:pager] = Aws::Pager.new(
|
843
856
|
limit_key: "max_results",
|
844
857
|
tokens: {
|
@@ -854,6 +867,7 @@ module Aws::ServiceDiscovery
|
|
854
867
|
o.input = Shapes::ShapeRef.new(shape: ListOperationsRequest)
|
855
868
|
o.output = Shapes::ShapeRef.new(shape: ListOperationsResponse)
|
856
869
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
870
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
857
871
|
o[:pager] = Aws::Pager.new(
|
858
872
|
limit_key: "max_results",
|
859
873
|
tokens: {
|
@@ -869,6 +883,7 @@ module Aws::ServiceDiscovery
|
|
869
883
|
o.input = Shapes::ShapeRef.new(shape: ListServicesRequest)
|
870
884
|
o.output = Shapes::ShapeRef.new(shape: ListServicesResponse)
|
871
885
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
886
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
872
887
|
o[:pager] = Aws::Pager.new(
|
873
888
|
limit_key: "max_results",
|
874
889
|
tokens: {
|
@@ -885,6 +900,7 @@ module Aws::ServiceDiscovery
|
|
885
900
|
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
886
901
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
887
902
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
903
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
888
904
|
end)
|
889
905
|
|
890
906
|
api.add_operation(:register_instance, Seahorse::Model::Operation.new.tap do |o|
|
@@ -898,6 +914,7 @@ module Aws::ServiceDiscovery
|
|
898
914
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
899
915
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceeded)
|
900
916
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
917
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
901
918
|
end)
|
902
919
|
|
903
920
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -909,6 +926,7 @@ module Aws::ServiceDiscovery
|
|
909
926
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
910
927
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
911
928
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
929
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
912
930
|
end)
|
913
931
|
|
914
932
|
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -919,6 +937,7 @@ module Aws::ServiceDiscovery
|
|
919
937
|
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
920
938
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
921
939
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
940
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
922
941
|
end)
|
923
942
|
|
924
943
|
api.add_operation(:update_http_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -931,6 +950,7 @@ module Aws::ServiceDiscovery
|
|
931
950
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
932
951
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
933
952
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
953
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
934
954
|
end)
|
935
955
|
|
936
956
|
api.add_operation(:update_instance_custom_health_status, Seahorse::Model::Operation.new.tap do |o|
|
@@ -943,6 +963,7 @@ module Aws::ServiceDiscovery
|
|
943
963
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
944
964
|
o.errors << Shapes::ShapeRef.new(shape: CustomHealthNotFound)
|
945
965
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
966
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
946
967
|
end)
|
947
968
|
|
948
969
|
api.add_operation(:update_private_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -955,6 +976,7 @@ module Aws::ServiceDiscovery
|
|
955
976
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
956
977
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
957
978
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
979
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
958
980
|
end)
|
959
981
|
|
960
982
|
api.add_operation(:update_public_dns_namespace, Seahorse::Model::Operation.new.tap do |o|
|
@@ -967,6 +989,7 @@ module Aws::ServiceDiscovery
|
|
967
989
|
o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
|
968
990
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUse)
|
969
991
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
992
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
970
993
|
end)
|
971
994
|
|
972
995
|
api.add_operation(:update_service, Seahorse::Model::Operation.new.tap do |o|
|
@@ -978,6 +1001,7 @@ module Aws::ServiceDiscovery
|
|
978
1001
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequest)
|
979
1002
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
980
1003
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
1004
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
|
981
1005
|
end)
|
982
1006
|
end
|
983
1007
|
|
@@ -50,9 +50,6 @@ module Aws::ServiceDiscovery
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,42 +14,39 @@ module Aws::ServiceDiscovery
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
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: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery-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"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
39
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
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
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
37
|
end
|
41
|
-
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
39
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
45
|
end
|
49
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
50
47
|
end
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
53
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
54
51
|
|
55
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-servicediscovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.50.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-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|