aws-sdk-dataexchange 1.26.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -582,7 +582,7 @@ module Aws::DataExchange
582
582
  ListRevisionAssetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
583
583
  ListRevisionAssetsResponse.struct_class = Types::ListRevisionAssetsResponse
584
584
 
585
- ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
585
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceArn"))
586
586
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
587
587
 
588
588
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
@@ -655,11 +655,11 @@ module Aws::DataExchange
655
655
  RevokeRevisionResponse.add_member(:data_set_id, Shapes::ShapeRef.new(shape: Id, location_name: "DataSetId"))
656
656
  RevokeRevisionResponse.add_member(:finalized, Shapes::ShapeRef.new(shape: __boolean, location_name: "Finalized"))
657
657
  RevokeRevisionResponse.add_member(:id, Shapes::ShapeRef.new(shape: Id, location_name: "Id"))
658
+ RevokeRevisionResponse.add_member(:source_id, Shapes::ShapeRef.new(shape: Id, location_name: "SourceId"))
659
+ RevokeRevisionResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
658
660
  RevokeRevisionResponse.add_member(:revocation_comment, Shapes::ShapeRef.new(shape: __stringMin10Max512, location_name: "RevocationComment"))
659
661
  RevokeRevisionResponse.add_member(:revoked, Shapes::ShapeRef.new(shape: __boolean, location_name: "Revoked"))
660
662
  RevokeRevisionResponse.add_member(:revoked_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "RevokedAt"))
661
- RevokeRevisionResponse.add_member(:source_id, Shapes::ShapeRef.new(shape: Id, location_name: "SourceId"))
662
- RevokeRevisionResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
663
663
  RevokeRevisionResponse.struct_class = Types::RevokeRevisionResponse
664
664
 
665
665
  S3SnapshotAsset.add_member(:size, Shapes::ShapeRef.new(shape: __doubleMin0, required: true, location_name: "Size"))
@@ -693,14 +693,14 @@ module Aws::DataExchange
693
693
 
694
694
  StartJobResponse.struct_class = Types::StartJobResponse
695
695
 
696
- TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
696
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceArn"))
697
697
  TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, required: true, location_name: "tags"))
698
698
  TagResourceRequest.struct_class = Types::TagResourceRequest
699
699
 
700
700
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
701
701
  ThrottlingException.struct_class = Types::ThrottlingException
702
702
 
703
- UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
703
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceArn"))
704
704
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: ListOf__string, required: true, location: "querystring", location_name: "tagKeys"))
705
705
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
706
706
 
@@ -800,9 +800,9 @@ module Aws::DataExchange
800
800
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
801
801
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
802
802
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
803
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
803
804
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
804
805
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
805
- o.errors << Shapes::ShapeRef.new(shape: ConflictException)
806
806
  end)
807
807
 
808
808
  api.add_operation(:create_data_set, Seahorse::Model::Operation.new.tap do |o|
@@ -811,11 +811,11 @@ module Aws::DataExchange
811
811
  o.http_request_uri = "/v1/data-sets"
812
812
  o.input = Shapes::ShapeRef.new(shape: CreateDataSetRequest)
813
813
  o.output = Shapes::ShapeRef.new(shape: CreateDataSetResponse)
814
+ o.errors << Shapes::ShapeRef.new(shape: ServiceLimitExceededException)
814
815
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
816
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
815
817
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
816
818
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
817
- o.errors << Shapes::ShapeRef.new(shape: ServiceLimitExceededException)
818
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
819
819
  end)
820
820
 
821
821
  api.add_operation(:create_event_action, Seahorse::Model::Operation.new.tap do |o|
@@ -824,11 +824,11 @@ module Aws::DataExchange
824
824
  o.http_request_uri = "/v1/event-actions"
825
825
  o.input = Shapes::ShapeRef.new(shape: CreateEventActionRequest)
826
826
  o.output = Shapes::ShapeRef.new(shape: CreateEventActionResponse)
827
+ o.errors << Shapes::ShapeRef.new(shape: ServiceLimitExceededException)
827
828
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
829
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
828
830
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
829
831
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
830
- o.errors << Shapes::ShapeRef.new(shape: ServiceLimitExceededException)
831
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
832
832
  end)
833
833
 
834
834
  api.add_operation(:create_job, Seahorse::Model::Operation.new.tap do |o|
@@ -839,10 +839,10 @@ module Aws::DataExchange
839
839
  o.output = Shapes::ShapeRef.new(shape: CreateJobResponse)
840
840
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
841
841
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
842
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
843
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
844
842
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
845
843
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
844
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
845
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
846
846
  end)
847
847
 
848
848
  api.add_operation(:create_revision, Seahorse::Model::Operation.new.tap do |o|
@@ -853,9 +853,9 @@ module Aws::DataExchange
853
853
  o.output = Shapes::ShapeRef.new(shape: CreateRevisionResponse)
854
854
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
855
855
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
856
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
856
857
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
857
858
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
858
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
859
859
  end)
860
860
 
861
861
  api.add_operation(:delete_asset, Seahorse::Model::Operation.new.tap do |o|
@@ -864,12 +864,12 @@ module Aws::DataExchange
864
864
  o.http_request_uri = "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"
865
865
  o.input = Shapes::ShapeRef.new(shape: DeleteAssetRequest)
866
866
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
867
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
868
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
869
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
870
867
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
871
868
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
869
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
872
870
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
871
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
872
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
873
873
  end)
874
874
 
875
875
  api.add_operation(:delete_data_set, Seahorse::Model::Operation.new.tap do |o|
@@ -878,12 +878,12 @@ module Aws::DataExchange
878
878
  o.http_request_uri = "/v1/data-sets/{DataSetId}"
879
879
  o.input = Shapes::ShapeRef.new(shape: DeleteDataSetRequest)
880
880
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
881
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
882
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
883
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
884
881
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
885
882
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
883
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
886
884
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
885
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
886
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
887
887
  end)
888
888
 
889
889
  api.add_operation(:delete_event_action, Seahorse::Model::Operation.new.tap do |o|
@@ -904,12 +904,12 @@ module Aws::DataExchange
904
904
  o.http_request_uri = "/v1/data-sets/{DataSetId}/revisions/{RevisionId}"
905
905
  o.input = Shapes::ShapeRef.new(shape: DeleteRevisionRequest)
906
906
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
907
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
908
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
909
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
910
907
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
911
908
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
909
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
912
910
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
911
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
912
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
913
913
  end)
914
914
 
915
915
  api.add_operation(:get_asset, Seahorse::Model::Operation.new.tap do |o|
@@ -1065,7 +1065,7 @@ module Aws::DataExchange
1065
1065
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1066
1066
  o.name = "ListTagsForResource"
1067
1067
  o.http_method = "GET"
1068
- o.http_request_uri = "/tags/{resource-arn}"
1068
+ o.http_request_uri = "/tags/{ResourceArn}"
1069
1069
  o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1070
1070
  o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1071
1071
  end)
@@ -1076,12 +1076,12 @@ module Aws::DataExchange
1076
1076
  o.http_request_uri = "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke"
1077
1077
  o.input = Shapes::ShapeRef.new(shape: RevokeRevisionRequest)
1078
1078
  o.output = Shapes::ShapeRef.new(shape: RevokeRevisionResponse)
1079
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1080
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1081
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1082
1079
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1083
1080
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1081
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1084
1082
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1083
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1084
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1085
1085
  end)
1086
1086
 
1087
1087
  api.add_operation(:send_api_asset, Seahorse::Model::Operation.new.tap do |o|
@@ -1095,9 +1095,9 @@ module Aws::DataExchange
1095
1095
  o.output = Shapes::ShapeRef.new(shape: SendApiAssetResponse)
1096
1096
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1097
1097
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1098
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1098
1099
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1099
1100
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1100
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1101
1101
  end)
1102
1102
 
1103
1103
  api.add_operation(:start_job, Seahorse::Model::Operation.new.tap do |o|
@@ -1106,18 +1106,18 @@ module Aws::DataExchange
1106
1106
  o.http_request_uri = "/v1/jobs/{JobId}"
1107
1107
  o.input = Shapes::ShapeRef.new(shape: StartJobRequest)
1108
1108
  o.output = Shapes::ShapeRef.new(shape: StartJobResponse)
1109
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1110
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1111
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1112
1109
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1113
1110
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1111
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1114
1112
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1113
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1114
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1115
1115
  end)
1116
1116
 
1117
1117
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1118
1118
  o.name = "TagResource"
1119
1119
  o.http_method = "POST"
1120
- o.http_request_uri = "/tags/{resource-arn}"
1120
+ o.http_request_uri = "/tags/{ResourceArn}"
1121
1121
  o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1122
1122
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1123
1123
  end)
@@ -1125,7 +1125,7 @@ module Aws::DataExchange
1125
1125
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1126
1126
  o.name = "UntagResource"
1127
1127
  o.http_method = "DELETE"
1128
- o.http_request_uri = "/tags/{resource-arn}"
1128
+ o.http_request_uri = "/tags/{ResourceArn}"
1129
1129
  o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1130
1130
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1131
1131
  end)
@@ -1136,12 +1136,12 @@ module Aws::DataExchange
1136
1136
  o.http_request_uri = "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}"
1137
1137
  o.input = Shapes::ShapeRef.new(shape: UpdateAssetRequest)
1138
1138
  o.output = Shapes::ShapeRef.new(shape: UpdateAssetResponse)
1139
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1140
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1141
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1142
1139
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1143
1140
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1141
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1144
1142
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1143
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1144
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1145
1145
  end)
1146
1146
 
1147
1147
  api.add_operation(:update_data_set, Seahorse::Model::Operation.new.tap do |o|
@@ -1152,9 +1152,9 @@ module Aws::DataExchange
1152
1152
  o.output = Shapes::ShapeRef.new(shape: UpdateDataSetResponse)
1153
1153
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1154
1154
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1155
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1155
1156
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1156
1157
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1157
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1158
1158
  end)
1159
1159
 
1160
1160
  api.add_operation(:update_event_action, Seahorse::Model::Operation.new.tap do |o|
@@ -1165,9 +1165,9 @@ module Aws::DataExchange
1165
1165
  o.output = Shapes::ShapeRef.new(shape: UpdateEventActionResponse)
1166
1166
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1167
1167
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1168
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1168
1169
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1169
1170
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1170
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1171
1171
  end)
1172
1172
 
1173
1173
  api.add_operation(:update_revision, Seahorse::Model::Operation.new.tap do |o|
@@ -1176,12 +1176,12 @@ module Aws::DataExchange
1176
1176
  o.http_request_uri = "/v1/data-sets/{DataSetId}/revisions/{RevisionId}"
1177
1177
  o.input = Shapes::ShapeRef.new(shape: UpdateRevisionRequest)
1178
1178
  o.output = Shapes::ShapeRef.new(shape: UpdateRevisionResponse)
1179
- o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1180
- o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1181
- o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1182
1179
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1183
1180
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1181
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1184
1182
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1183
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1184
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1185
1185
  end)
1186
1186
  end
1187
1187
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DataExchange
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DataExchange
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
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHV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