aws-sdk-opensearchservice 1.11.0 → 1.13.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-opensearchservice/client.rb +817 -281
- data/lib/aws-sdk-opensearchservice/client_api.rb +246 -0
- data/lib/aws-sdk-opensearchservice/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-opensearchservice/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-opensearchservice/endpoints.rb +701 -0
- data/lib/aws-sdk-opensearchservice/plugins/endpoints.rb +166 -0
- data/lib/aws-sdk-opensearchservice/types.rb +1611 -986
- data/lib/aws-sdk-opensearchservice.rb +5 -1
- metadata +8 -4
@@ -14,6 +14,7 @@ module Aws::OpenSearchService
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
ARN = Shapes::StringShape.new(name: 'ARN')
|
17
|
+
AWSAccount = Shapes::StringShape.new(name: 'AWSAccount')
|
17
18
|
AWSDomainInformation = Shapes::StructureShape.new(name: 'AWSDomainInformation')
|
18
19
|
AcceptInboundConnectionRequest = Shapes::StructureShape.new(name: 'AcceptInboundConnectionRequest')
|
19
20
|
AcceptInboundConnectionResponse = Shapes::StructureShape.new(name: 'AcceptInboundConnectionResponse')
|
@@ -29,6 +30,10 @@ module Aws::OpenSearchService
|
|
29
30
|
AdvancedSecurityOptionsStatus = Shapes::StructureShape.new(name: 'AdvancedSecurityOptionsStatus')
|
30
31
|
AssociatePackageRequest = Shapes::StructureShape.new(name: 'AssociatePackageRequest')
|
31
32
|
AssociatePackageResponse = Shapes::StructureShape.new(name: 'AssociatePackageResponse')
|
33
|
+
AuthorizeVpcEndpointAccessRequest = Shapes::StructureShape.new(name: 'AuthorizeVpcEndpointAccessRequest')
|
34
|
+
AuthorizeVpcEndpointAccessResponse = Shapes::StructureShape.new(name: 'AuthorizeVpcEndpointAccessResponse')
|
35
|
+
AuthorizedPrincipal = Shapes::StructureShape.new(name: 'AuthorizedPrincipal')
|
36
|
+
AuthorizedPrincipalList = Shapes::ListShape.new(name: 'AuthorizedPrincipalList')
|
32
37
|
AutoTune = Shapes::StructureShape.new(name: 'AutoTune')
|
33
38
|
AutoTuneDate = Shapes::TimestampShape.new(name: 'AutoTuneDate')
|
34
39
|
AutoTuneDesiredState = Shapes::StringShape.new(name: 'AutoTuneDesiredState')
|
@@ -54,6 +59,7 @@ module Aws::OpenSearchService
|
|
54
59
|
ChangeProgressStageName = Shapes::StringShape.new(name: 'ChangeProgressStageName')
|
55
60
|
ChangeProgressStageStatus = Shapes::StringShape.new(name: 'ChangeProgressStageStatus')
|
56
61
|
ChangeProgressStatusDetails = Shapes::StructureShape.new(name: 'ChangeProgressStatusDetails')
|
62
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
57
63
|
CloudWatchLogsLogGroupArn = Shapes::StringShape.new(name: 'CloudWatchLogsLogGroupArn')
|
58
64
|
ClusterConfig = Shapes::StructureShape.new(name: 'ClusterConfig')
|
59
65
|
ClusterConfigStatus = Shapes::StructureShape.new(name: 'ClusterConfigStatus')
|
@@ -73,6 +79,8 @@ module Aws::OpenSearchService
|
|
73
79
|
CreateOutboundConnectionResponse = Shapes::StructureShape.new(name: 'CreateOutboundConnectionResponse')
|
74
80
|
CreatePackageRequest = Shapes::StructureShape.new(name: 'CreatePackageRequest')
|
75
81
|
CreatePackageResponse = Shapes::StructureShape.new(name: 'CreatePackageResponse')
|
82
|
+
CreateVpcEndpointRequest = Shapes::StructureShape.new(name: 'CreateVpcEndpointRequest')
|
83
|
+
CreateVpcEndpointResponse = Shapes::StructureShape.new(name: 'CreateVpcEndpointResponse')
|
76
84
|
CreatedAt = Shapes::TimestampShape.new(name: 'CreatedAt')
|
77
85
|
DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
|
78
86
|
DeleteDomainResponse = Shapes::StructureShape.new(name: 'DeleteDomainResponse')
|
@@ -82,6 +90,8 @@ module Aws::OpenSearchService
|
|
82
90
|
DeleteOutboundConnectionResponse = Shapes::StructureShape.new(name: 'DeleteOutboundConnectionResponse')
|
83
91
|
DeletePackageRequest = Shapes::StructureShape.new(name: 'DeletePackageRequest')
|
84
92
|
DeletePackageResponse = Shapes::StructureShape.new(name: 'DeletePackageResponse')
|
93
|
+
DeleteVpcEndpointRequest = Shapes::StructureShape.new(name: 'DeleteVpcEndpointRequest')
|
94
|
+
DeleteVpcEndpointResponse = Shapes::StructureShape.new(name: 'DeleteVpcEndpointResponse')
|
85
95
|
DeploymentCloseDateTimeStamp = Shapes::TimestampShape.new(name: 'DeploymentCloseDateTimeStamp')
|
86
96
|
DeploymentStatus = Shapes::StringShape.new(name: 'DeploymentStatus')
|
87
97
|
DeploymentType = Shapes::StringShape.new(name: 'DeploymentType')
|
@@ -112,11 +122,14 @@ module Aws::OpenSearchService
|
|
112
122
|
DescribeReservedInstanceOfferingsResponse = Shapes::StructureShape.new(name: 'DescribeReservedInstanceOfferingsResponse')
|
113
123
|
DescribeReservedInstancesRequest = Shapes::StructureShape.new(name: 'DescribeReservedInstancesRequest')
|
114
124
|
DescribeReservedInstancesResponse = Shapes::StructureShape.new(name: 'DescribeReservedInstancesResponse')
|
125
|
+
DescribeVpcEndpointsRequest = Shapes::StructureShape.new(name: 'DescribeVpcEndpointsRequest')
|
126
|
+
DescribeVpcEndpointsResponse = Shapes::StructureShape.new(name: 'DescribeVpcEndpointsResponse')
|
115
127
|
Description = Shapes::StringShape.new(name: 'Description')
|
116
128
|
DisableTimestamp = Shapes::TimestampShape.new(name: 'DisableTimestamp')
|
117
129
|
DisabledOperationException = Shapes::StructureShape.new(name: 'DisabledOperationException')
|
118
130
|
DissociatePackageRequest = Shapes::StructureShape.new(name: 'DissociatePackageRequest')
|
119
131
|
DissociatePackageResponse = Shapes::StructureShape.new(name: 'DissociatePackageResponse')
|
132
|
+
DomainArn = Shapes::StringShape.new(name: 'DomainArn')
|
120
133
|
DomainConfig = Shapes::StructureShape.new(name: 'DomainConfig')
|
121
134
|
DomainEndpointOptions = Shapes::StructureShape.new(name: 'DomainEndpointOptions')
|
122
135
|
DomainEndpointOptionsStatus = Shapes::StructureShape.new(name: 'DomainEndpointOptionsStatus')
|
@@ -141,6 +154,7 @@ module Aws::OpenSearchService
|
|
141
154
|
EBSOptionsStatus = Shapes::StructureShape.new(name: 'EBSOptionsStatus')
|
142
155
|
EncryptionAtRestOptions = Shapes::StructureShape.new(name: 'EncryptionAtRestOptions')
|
143
156
|
EncryptionAtRestOptionsStatus = Shapes::StructureShape.new(name: 'EncryptionAtRestOptionsStatus')
|
157
|
+
Endpoint = Shapes::StringShape.new(name: 'Endpoint')
|
144
158
|
EndpointsMap = Shapes::MapShape.new(name: 'EndpointsMap')
|
145
159
|
EngineType = Shapes::StringShape.new(name: 'EngineType')
|
146
160
|
ErrorDetails = Shapes::StructureShape.new(name: 'ErrorDetails')
|
@@ -196,6 +210,12 @@ module Aws::OpenSearchService
|
|
196
210
|
ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
|
197
211
|
ListVersionsRequest = Shapes::StructureShape.new(name: 'ListVersionsRequest')
|
198
212
|
ListVersionsResponse = Shapes::StructureShape.new(name: 'ListVersionsResponse')
|
213
|
+
ListVpcEndpointAccessRequest = Shapes::StructureShape.new(name: 'ListVpcEndpointAccessRequest')
|
214
|
+
ListVpcEndpointAccessResponse = Shapes::StructureShape.new(name: 'ListVpcEndpointAccessResponse')
|
215
|
+
ListVpcEndpointsForDomainRequest = Shapes::StructureShape.new(name: 'ListVpcEndpointsForDomainRequest')
|
216
|
+
ListVpcEndpointsForDomainResponse = Shapes::StructureShape.new(name: 'ListVpcEndpointsForDomainResponse')
|
217
|
+
ListVpcEndpointsRequest = Shapes::StructureShape.new(name: 'ListVpcEndpointsRequest')
|
218
|
+
ListVpcEndpointsResponse = Shapes::StructureShape.new(name: 'ListVpcEndpointsResponse')
|
199
219
|
LogPublishingOption = Shapes::StructureShape.new(name: 'LogPublishingOption')
|
200
220
|
LogPublishingOptions = Shapes::MapShape.new(name: 'LogPublishingOptions')
|
201
221
|
LogPublishingOptionsStatus = Shapes::StructureShape.new(name: 'LogPublishingOptionsStatus')
|
@@ -233,6 +253,7 @@ module Aws::OpenSearchService
|
|
233
253
|
PackageVersionHistoryList = Shapes::ListShape.new(name: 'PackageVersionHistoryList')
|
234
254
|
Password = Shapes::StringShape.new(name: 'Password')
|
235
255
|
PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
|
256
|
+
PrincipalType = Shapes::StringShape.new(name: 'PrincipalType')
|
236
257
|
PurchaseReservedInstanceOfferingRequest = Shapes::StructureShape.new(name: 'PurchaseReservedInstanceOfferingRequest')
|
237
258
|
PurchaseReservedInstanceOfferingResponse = Shapes::StructureShape.new(name: 'PurchaseReservedInstanceOfferingResponse')
|
238
259
|
RecurringCharge = Shapes::StructureShape.new(name: 'RecurringCharge')
|
@@ -250,6 +271,8 @@ module Aws::OpenSearchService
|
|
250
271
|
ReservedInstancePaymentOption = Shapes::StringShape.new(name: 'ReservedInstancePaymentOption')
|
251
272
|
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
252
273
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
274
|
+
RevokeVpcEndpointAccessRequest = Shapes::StructureShape.new(name: 'RevokeVpcEndpointAccessRequest')
|
275
|
+
RevokeVpcEndpointAccessResponse = Shapes::StructureShape.new(name: 'RevokeVpcEndpointAccessResponse')
|
253
276
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
254
277
|
RollbackOnDisable = Shapes::StringShape.new(name: 'RollbackOnDisable')
|
255
278
|
S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
|
@@ -292,6 +315,8 @@ module Aws::OpenSearchService
|
|
292
315
|
UpdatePackageRequest = Shapes::StructureShape.new(name: 'UpdatePackageRequest')
|
293
316
|
UpdatePackageResponse = Shapes::StructureShape.new(name: 'UpdatePackageResponse')
|
294
317
|
UpdateTimestamp = Shapes::TimestampShape.new(name: 'UpdateTimestamp')
|
318
|
+
UpdateVpcEndpointRequest = Shapes::StructureShape.new(name: 'UpdateVpcEndpointRequest')
|
319
|
+
UpdateVpcEndpointResponse = Shapes::StructureShape.new(name: 'UpdateVpcEndpointResponse')
|
295
320
|
UpgradeDomainRequest = Shapes::StructureShape.new(name: 'UpgradeDomainRequest')
|
296
321
|
UpgradeDomainResponse = Shapes::StructureShape.new(name: 'UpgradeDomainResponse')
|
297
322
|
UpgradeHistory = Shapes::StructureShape.new(name: 'UpgradeHistory')
|
@@ -312,6 +337,16 @@ module Aws::OpenSearchService
|
|
312
337
|
VersionStatus = Shapes::StructureShape.new(name: 'VersionStatus')
|
313
338
|
VersionString = Shapes::StringShape.new(name: 'VersionString')
|
314
339
|
VolumeType = Shapes::StringShape.new(name: 'VolumeType')
|
340
|
+
VpcEndpoint = Shapes::StructureShape.new(name: 'VpcEndpoint')
|
341
|
+
VpcEndpointError = Shapes::StructureShape.new(name: 'VpcEndpointError')
|
342
|
+
VpcEndpointErrorCode = Shapes::StringShape.new(name: 'VpcEndpointErrorCode')
|
343
|
+
VpcEndpointErrorList = Shapes::ListShape.new(name: 'VpcEndpointErrorList')
|
344
|
+
VpcEndpointId = Shapes::StringShape.new(name: 'VpcEndpointId')
|
345
|
+
VpcEndpointIdList = Shapes::ListShape.new(name: 'VpcEndpointIdList')
|
346
|
+
VpcEndpointStatus = Shapes::StringShape.new(name: 'VpcEndpointStatus')
|
347
|
+
VpcEndpointSummary = Shapes::StructureShape.new(name: 'VpcEndpointSummary')
|
348
|
+
VpcEndpointSummaryList = Shapes::ListShape.new(name: 'VpcEndpointSummaryList')
|
349
|
+
VpcEndpoints = Shapes::ListShape.new(name: 'VpcEndpoints')
|
315
350
|
ZoneAwarenessConfig = Shapes::StructureShape.new(name: 'ZoneAwarenessConfig')
|
316
351
|
|
317
352
|
AWSDomainInformation.add_member(:owner_id, Shapes::ShapeRef.new(shape: OwnerId, location_name: "OwnerId"))
|
@@ -373,6 +408,19 @@ module Aws::OpenSearchService
|
|
373
408
|
AssociatePackageResponse.add_member(:domain_package_details, Shapes::ShapeRef.new(shape: DomainPackageDetails, location_name: "DomainPackageDetails"))
|
374
409
|
AssociatePackageResponse.struct_class = Types::AssociatePackageResponse
|
375
410
|
|
411
|
+
AuthorizeVpcEndpointAccessRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
412
|
+
AuthorizeVpcEndpointAccessRequest.add_member(:account, Shapes::ShapeRef.new(shape: AWSAccount, required: true, location_name: "Account"))
|
413
|
+
AuthorizeVpcEndpointAccessRequest.struct_class = Types::AuthorizeVpcEndpointAccessRequest
|
414
|
+
|
415
|
+
AuthorizeVpcEndpointAccessResponse.add_member(:authorized_principal, Shapes::ShapeRef.new(shape: AuthorizedPrincipal, required: true, location_name: "AuthorizedPrincipal"))
|
416
|
+
AuthorizeVpcEndpointAccessResponse.struct_class = Types::AuthorizeVpcEndpointAccessResponse
|
417
|
+
|
418
|
+
AuthorizedPrincipal.add_member(:principal_type, Shapes::ShapeRef.new(shape: PrincipalType, location_name: "PrincipalType"))
|
419
|
+
AuthorizedPrincipal.add_member(:principal, Shapes::ShapeRef.new(shape: String, location_name: "Principal"))
|
420
|
+
AuthorizedPrincipal.struct_class = Types::AuthorizedPrincipal
|
421
|
+
|
422
|
+
AuthorizedPrincipalList.member = Shapes::ShapeRef.new(shape: AuthorizedPrincipal)
|
423
|
+
|
376
424
|
AutoTune.add_member(:auto_tune_type, Shapes::ShapeRef.new(shape: AutoTuneType, location_name: "AutoTuneType"))
|
377
425
|
AutoTune.add_member(:auto_tune_details, Shapes::ShapeRef.new(shape: AutoTuneDetails, location_name: "AutoTuneDetails"))
|
378
426
|
AutoTune.struct_class = Types::AutoTune
|
@@ -524,6 +572,14 @@ module Aws::OpenSearchService
|
|
524
572
|
CreatePackageResponse.add_member(:package_details, Shapes::ShapeRef.new(shape: PackageDetails, location_name: "PackageDetails"))
|
525
573
|
CreatePackageResponse.struct_class = Types::CreatePackageResponse
|
526
574
|
|
575
|
+
CreateVpcEndpointRequest.add_member(:domain_arn, Shapes::ShapeRef.new(shape: DomainArn, required: true, location_name: "DomainArn"))
|
576
|
+
CreateVpcEndpointRequest.add_member(:vpc_options, Shapes::ShapeRef.new(shape: VPCOptions, required: true, location_name: "VpcOptions"))
|
577
|
+
CreateVpcEndpointRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken"))
|
578
|
+
CreateVpcEndpointRequest.struct_class = Types::CreateVpcEndpointRequest
|
579
|
+
|
580
|
+
CreateVpcEndpointResponse.add_member(:vpc_endpoint, Shapes::ShapeRef.new(shape: VpcEndpoint, required: true, location_name: "VpcEndpoint"))
|
581
|
+
CreateVpcEndpointResponse.struct_class = Types::CreateVpcEndpointResponse
|
582
|
+
|
527
583
|
DeleteDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
528
584
|
DeleteDomainRequest.struct_class = Types::DeleteDomainRequest
|
529
585
|
|
@@ -548,6 +604,12 @@ module Aws::OpenSearchService
|
|
548
604
|
DeletePackageResponse.add_member(:package_details, Shapes::ShapeRef.new(shape: PackageDetails, location_name: "PackageDetails"))
|
549
605
|
DeletePackageResponse.struct_class = Types::DeletePackageResponse
|
550
606
|
|
607
|
+
DeleteVpcEndpointRequest.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: VpcEndpointId, required: true, location: "uri", location_name: "VpcEndpointId"))
|
608
|
+
DeleteVpcEndpointRequest.struct_class = Types::DeleteVpcEndpointRequest
|
609
|
+
|
610
|
+
DeleteVpcEndpointResponse.add_member(:vpc_endpoint_summary, Shapes::ShapeRef.new(shape: VpcEndpointSummary, required: true, location_name: "VpcEndpointSummary"))
|
611
|
+
DeleteVpcEndpointResponse.struct_class = Types::DeleteVpcEndpointResponse
|
612
|
+
|
551
613
|
DescribeDomainAutoTunesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
552
614
|
DescribeDomainAutoTunesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
553
615
|
DescribeDomainAutoTunesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
@@ -643,6 +705,13 @@ module Aws::OpenSearchService
|
|
643
705
|
DescribeReservedInstancesResponse.add_member(:reserved_instances, Shapes::ShapeRef.new(shape: ReservedInstanceList, location_name: "ReservedInstances"))
|
644
706
|
DescribeReservedInstancesResponse.struct_class = Types::DescribeReservedInstancesResponse
|
645
707
|
|
708
|
+
DescribeVpcEndpointsRequest.add_member(:vpc_endpoint_ids, Shapes::ShapeRef.new(shape: VpcEndpointIdList, required: true, location_name: "VpcEndpointIds"))
|
709
|
+
DescribeVpcEndpointsRequest.struct_class = Types::DescribeVpcEndpointsRequest
|
710
|
+
|
711
|
+
DescribeVpcEndpointsResponse.add_member(:vpc_endpoints, Shapes::ShapeRef.new(shape: VpcEndpoints, required: true, location_name: "VpcEndpoints"))
|
712
|
+
DescribeVpcEndpointsResponse.add_member(:vpc_endpoint_errors, Shapes::ShapeRef.new(shape: VpcEndpointErrorList, required: true, location_name: "VpcEndpointErrors"))
|
713
|
+
DescribeVpcEndpointsResponse.struct_class = Types::DescribeVpcEndpointsResponse
|
714
|
+
|
646
715
|
DisabledOperationException.struct_class = Types::DisabledOperationException
|
647
716
|
|
648
717
|
DissociatePackageRequest.add_member(:package_id, Shapes::ShapeRef.new(shape: PackageID, required: true, location: "uri", location_name: "PackageID"))
|
@@ -906,6 +975,29 @@ module Aws::OpenSearchService
|
|
906
975
|
ListVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
907
976
|
ListVersionsResponse.struct_class = Types::ListVersionsResponse
|
908
977
|
|
978
|
+
ListVpcEndpointAccessRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
979
|
+
ListVpcEndpointAccessRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
980
|
+
ListVpcEndpointAccessRequest.struct_class = Types::ListVpcEndpointAccessRequest
|
981
|
+
|
982
|
+
ListVpcEndpointAccessResponse.add_member(:authorized_principal_list, Shapes::ShapeRef.new(shape: AuthorizedPrincipalList, required: true, location_name: "AuthorizedPrincipalList"))
|
983
|
+
ListVpcEndpointAccessResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, required: true, location_name: "NextToken"))
|
984
|
+
ListVpcEndpointAccessResponse.struct_class = Types::ListVpcEndpointAccessResponse
|
985
|
+
|
986
|
+
ListVpcEndpointsForDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
987
|
+
ListVpcEndpointsForDomainRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
988
|
+
ListVpcEndpointsForDomainRequest.struct_class = Types::ListVpcEndpointsForDomainRequest
|
989
|
+
|
990
|
+
ListVpcEndpointsForDomainResponse.add_member(:vpc_endpoint_summary_list, Shapes::ShapeRef.new(shape: VpcEndpointSummaryList, required: true, location_name: "VpcEndpointSummaryList"))
|
991
|
+
ListVpcEndpointsForDomainResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, required: true, location_name: "NextToken"))
|
992
|
+
ListVpcEndpointsForDomainResponse.struct_class = Types::ListVpcEndpointsForDomainResponse
|
993
|
+
|
994
|
+
ListVpcEndpointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
995
|
+
ListVpcEndpointsRequest.struct_class = Types::ListVpcEndpointsRequest
|
996
|
+
|
997
|
+
ListVpcEndpointsResponse.add_member(:vpc_endpoint_summary_list, Shapes::ShapeRef.new(shape: VpcEndpointSummaryList, required: true, location_name: "VpcEndpointSummaryList"))
|
998
|
+
ListVpcEndpointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, required: true, location_name: "NextToken"))
|
999
|
+
ListVpcEndpointsResponse.struct_class = Types::ListVpcEndpointsResponse
|
1000
|
+
|
909
1001
|
LogPublishingOption.add_member(:cloud_watch_logs_log_group_arn, Shapes::ShapeRef.new(shape: CloudWatchLogsLogGroupArn, location_name: "CloudWatchLogsLogGroupArn"))
|
910
1002
|
LogPublishingOption.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled"))
|
911
1003
|
LogPublishingOption.struct_class = Types::LogPublishingOption
|
@@ -1032,6 +1124,12 @@ module Aws::OpenSearchService
|
|
1032
1124
|
|
1033
1125
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
1034
1126
|
|
1127
|
+
RevokeVpcEndpointAccessRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
|
1128
|
+
RevokeVpcEndpointAccessRequest.add_member(:account, Shapes::ShapeRef.new(shape: AWSAccount, required: true, location_name: "Account"))
|
1129
|
+
RevokeVpcEndpointAccessRequest.struct_class = Types::RevokeVpcEndpointAccessRequest
|
1130
|
+
|
1131
|
+
RevokeVpcEndpointAccessResponse.struct_class = Types::RevokeVpcEndpointAccessResponse
|
1132
|
+
|
1035
1133
|
SAMLIdp.add_member(:metadata_content, Shapes::ShapeRef.new(shape: SAMLMetadata, required: true, location_name: "MetadataContent"))
|
1036
1134
|
SAMLIdp.add_member(:entity_id, Shapes::ShapeRef.new(shape: SAMLEntityId, required: true, location_name: "EntityId"))
|
1037
1135
|
SAMLIdp.struct_class = Types::SAMLIdp
|
@@ -1132,6 +1230,13 @@ module Aws::OpenSearchService
|
|
1132
1230
|
UpdatePackageResponse.add_member(:package_details, Shapes::ShapeRef.new(shape: PackageDetails, location_name: "PackageDetails"))
|
1133
1231
|
UpdatePackageResponse.struct_class = Types::UpdatePackageResponse
|
1134
1232
|
|
1233
|
+
UpdateVpcEndpointRequest.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: VpcEndpointId, required: true, location_name: "VpcEndpointId"))
|
1234
|
+
UpdateVpcEndpointRequest.add_member(:vpc_options, Shapes::ShapeRef.new(shape: VPCOptions, required: true, location_name: "VpcOptions"))
|
1235
|
+
UpdateVpcEndpointRequest.struct_class = Types::UpdateVpcEndpointRequest
|
1236
|
+
|
1237
|
+
UpdateVpcEndpointResponse.add_member(:vpc_endpoint, Shapes::ShapeRef.new(shape: VpcEndpoint, required: true, location_name: "VpcEndpoint"))
|
1238
|
+
UpdateVpcEndpointResponse.struct_class = Types::UpdateVpcEndpointResponse
|
1239
|
+
|
1135
1240
|
UpgradeDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "DomainName"))
|
1136
1241
|
UpgradeDomainRequest.add_member(:target_version, Shapes::ShapeRef.new(shape: VersionString, required: true, location_name: "TargetVersion"))
|
1137
1242
|
UpgradeDomainRequest.add_member(:perform_check_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "PerformCheckOnly"))
|
@@ -1186,6 +1291,33 @@ module Aws::OpenSearchService
|
|
1186
1291
|
VersionStatus.add_member(:status, Shapes::ShapeRef.new(shape: OptionStatus, required: true, location_name: "Status"))
|
1187
1292
|
VersionStatus.struct_class = Types::VersionStatus
|
1188
1293
|
|
1294
|
+
VpcEndpoint.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: VpcEndpointId, location_name: "VpcEndpointId"))
|
1295
|
+
VpcEndpoint.add_member(:vpc_endpoint_owner, Shapes::ShapeRef.new(shape: AWSAccount, location_name: "VpcEndpointOwner"))
|
1296
|
+
VpcEndpoint.add_member(:domain_arn, Shapes::ShapeRef.new(shape: DomainArn, location_name: "DomainArn"))
|
1297
|
+
VpcEndpoint.add_member(:vpc_options, Shapes::ShapeRef.new(shape: VPCDerivedInfo, location_name: "VpcOptions"))
|
1298
|
+
VpcEndpoint.add_member(:status, Shapes::ShapeRef.new(shape: VpcEndpointStatus, location_name: "Status"))
|
1299
|
+
VpcEndpoint.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "Endpoint"))
|
1300
|
+
VpcEndpoint.struct_class = Types::VpcEndpoint
|
1301
|
+
|
1302
|
+
VpcEndpointError.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: VpcEndpointId, location_name: "VpcEndpointId"))
|
1303
|
+
VpcEndpointError.add_member(:error_code, Shapes::ShapeRef.new(shape: VpcEndpointErrorCode, location_name: "ErrorCode"))
|
1304
|
+
VpcEndpointError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
|
1305
|
+
VpcEndpointError.struct_class = Types::VpcEndpointError
|
1306
|
+
|
1307
|
+
VpcEndpointErrorList.member = Shapes::ShapeRef.new(shape: VpcEndpointError)
|
1308
|
+
|
1309
|
+
VpcEndpointIdList.member = Shapes::ShapeRef.new(shape: VpcEndpointId)
|
1310
|
+
|
1311
|
+
VpcEndpointSummary.add_member(:vpc_endpoint_id, Shapes::ShapeRef.new(shape: VpcEndpointId, location_name: "VpcEndpointId"))
|
1312
|
+
VpcEndpointSummary.add_member(:vpc_endpoint_owner, Shapes::ShapeRef.new(shape: String, location_name: "VpcEndpointOwner"))
|
1313
|
+
VpcEndpointSummary.add_member(:domain_arn, Shapes::ShapeRef.new(shape: DomainArn, location_name: "DomainArn"))
|
1314
|
+
VpcEndpointSummary.add_member(:status, Shapes::ShapeRef.new(shape: VpcEndpointStatus, location_name: "Status"))
|
1315
|
+
VpcEndpointSummary.struct_class = Types::VpcEndpointSummary
|
1316
|
+
|
1317
|
+
VpcEndpointSummaryList.member = Shapes::ShapeRef.new(shape: VpcEndpointSummary)
|
1318
|
+
|
1319
|
+
VpcEndpoints.member = Shapes::ShapeRef.new(shape: VpcEndpoint)
|
1320
|
+
|
1189
1321
|
ZoneAwarenessConfig.add_member(:availability_zone_count, Shapes::ShapeRef.new(shape: IntegerClass, location_name: "AvailabilityZoneCount"))
|
1190
1322
|
ZoneAwarenessConfig.struct_class = Types::ZoneAwarenessConfig
|
1191
1323
|
|
@@ -1242,6 +1374,20 @@ module Aws::OpenSearchService
|
|
1242
1374
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1243
1375
|
end)
|
1244
1376
|
|
1377
|
+
api.add_operation(:authorize_vpc_endpoint_access, Seahorse::Model::Operation.new.tap do |o|
|
1378
|
+
o.name = "AuthorizeVpcEndpointAccess"
|
1379
|
+
o.http_method = "POST"
|
1380
|
+
o.http_request_uri = "/2021-01-01/opensearch/domain/{DomainName}/authorizeVpcEndpointAccess"
|
1381
|
+
o.input = Shapes::ShapeRef.new(shape: AuthorizeVpcEndpointAccessRequest)
|
1382
|
+
o.output = Shapes::ShapeRef.new(shape: AuthorizeVpcEndpointAccessResponse)
|
1383
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1384
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1385
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1386
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1387
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1388
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1389
|
+
end)
|
1390
|
+
|
1245
1391
|
api.add_operation(:cancel_service_software_update, Seahorse::Model::Operation.new.tap do |o|
|
1246
1392
|
o.name = "CancelServiceSoftwareUpdate"
|
1247
1393
|
o.http_method = "POST"
|
@@ -1296,6 +1442,20 @@ module Aws::OpenSearchService
|
|
1296
1442
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1297
1443
|
end)
|
1298
1444
|
|
1445
|
+
api.add_operation(:create_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
1446
|
+
o.name = "CreateVpcEndpoint"
|
1447
|
+
o.http_method = "POST"
|
1448
|
+
o.http_request_uri = "/2021-01-01/opensearch/vpcEndpoints"
|
1449
|
+
o.input = Shapes::ShapeRef.new(shape: CreateVpcEndpointRequest)
|
1450
|
+
o.output = Shapes::ShapeRef.new(shape: CreateVpcEndpointResponse)
|
1451
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1452
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1453
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1454
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1455
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1456
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1457
|
+
end)
|
1458
|
+
|
1299
1459
|
api.add_operation(:delete_domain, Seahorse::Model::Operation.new.tap do |o|
|
1300
1460
|
o.name = "DeleteDomain"
|
1301
1461
|
o.http_method = "DELETE"
|
@@ -1342,6 +1502,18 @@ module Aws::OpenSearchService
|
|
1342
1502
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1343
1503
|
end)
|
1344
1504
|
|
1505
|
+
api.add_operation(:delete_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
1506
|
+
o.name = "DeleteVpcEndpoint"
|
1507
|
+
o.http_method = "DELETE"
|
1508
|
+
o.http_request_uri = "/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}"
|
1509
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteVpcEndpointRequest)
|
1510
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteVpcEndpointResponse)
|
1511
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1512
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1513
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1514
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1515
|
+
end)
|
1516
|
+
|
1345
1517
|
api.add_operation(:describe_domain, Seahorse::Model::Operation.new.tap do |o|
|
1346
1518
|
o.name = "DescribeDomain"
|
1347
1519
|
o.http_method = "GET"
|
@@ -1508,6 +1680,18 @@ module Aws::OpenSearchService
|
|
1508
1680
|
)
|
1509
1681
|
end)
|
1510
1682
|
|
1683
|
+
api.add_operation(:describe_vpc_endpoints, Seahorse::Model::Operation.new.tap do |o|
|
1684
|
+
o.name = "DescribeVpcEndpoints"
|
1685
|
+
o.http_method = "POST"
|
1686
|
+
o.http_request_uri = "/2021-01-01/opensearch/vpcEndpoints/describe"
|
1687
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeVpcEndpointsRequest)
|
1688
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeVpcEndpointsResponse)
|
1689
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1690
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1691
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1692
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1693
|
+
end)
|
1694
|
+
|
1511
1695
|
api.add_operation(:dissociate_package, Seahorse::Model::Operation.new.tap do |o|
|
1512
1696
|
o.name = "DissociatePackage"
|
1513
1697
|
o.http_method = "POST"
|
@@ -1682,6 +1866,41 @@ module Aws::OpenSearchService
|
|
1682
1866
|
)
|
1683
1867
|
end)
|
1684
1868
|
|
1869
|
+
api.add_operation(:list_vpc_endpoint_access, Seahorse::Model::Operation.new.tap do |o|
|
1870
|
+
o.name = "ListVpcEndpointAccess"
|
1871
|
+
o.http_method = "GET"
|
1872
|
+
o.http_request_uri = "/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess"
|
1873
|
+
o.input = Shapes::ShapeRef.new(shape: ListVpcEndpointAccessRequest)
|
1874
|
+
o.output = Shapes::ShapeRef.new(shape: ListVpcEndpointAccessResponse)
|
1875
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1876
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1877
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1878
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1879
|
+
end)
|
1880
|
+
|
1881
|
+
api.add_operation(:list_vpc_endpoints, Seahorse::Model::Operation.new.tap do |o|
|
1882
|
+
o.name = "ListVpcEndpoints"
|
1883
|
+
o.http_method = "GET"
|
1884
|
+
o.http_request_uri = "/2021-01-01/opensearch/vpcEndpoints"
|
1885
|
+
o.input = Shapes::ShapeRef.new(shape: ListVpcEndpointsRequest)
|
1886
|
+
o.output = Shapes::ShapeRef.new(shape: ListVpcEndpointsResponse)
|
1887
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1888
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1889
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1890
|
+
end)
|
1891
|
+
|
1892
|
+
api.add_operation(:list_vpc_endpoints_for_domain, Seahorse::Model::Operation.new.tap do |o|
|
1893
|
+
o.name = "ListVpcEndpointsForDomain"
|
1894
|
+
o.http_method = "GET"
|
1895
|
+
o.http_request_uri = "/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints"
|
1896
|
+
o.input = Shapes::ShapeRef.new(shape: ListVpcEndpointsForDomainRequest)
|
1897
|
+
o.output = Shapes::ShapeRef.new(shape: ListVpcEndpointsForDomainResponse)
|
1898
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1899
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1900
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1901
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1902
|
+
end)
|
1903
|
+
|
1685
1904
|
api.add_operation(:purchase_reserved_instance_offering, Seahorse::Model::Operation.new.tap do |o|
|
1686
1905
|
o.name = "PurchaseReservedInstanceOffering"
|
1687
1906
|
o.http_method = "POST"
|
@@ -1717,6 +1936,19 @@ module Aws::OpenSearchService
|
|
1717
1936
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1718
1937
|
end)
|
1719
1938
|
|
1939
|
+
api.add_operation(:revoke_vpc_endpoint_access, Seahorse::Model::Operation.new.tap do |o|
|
1940
|
+
o.name = "RevokeVpcEndpointAccess"
|
1941
|
+
o.http_method = "POST"
|
1942
|
+
o.http_request_uri = "/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess"
|
1943
|
+
o.input = Shapes::ShapeRef.new(shape: RevokeVpcEndpointAccessRequest)
|
1944
|
+
o.output = Shapes::ShapeRef.new(shape: RevokeVpcEndpointAccessResponse)
|
1945
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1946
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1947
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
1948
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1949
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
1950
|
+
end)
|
1951
|
+
|
1720
1952
|
api.add_operation(:start_service_software_update, Seahorse::Model::Operation.new.tap do |o|
|
1721
1953
|
o.name = "StartServiceSoftwareUpdate"
|
1722
1954
|
o.http_method = "POST"
|
@@ -1757,6 +1989,20 @@ module Aws::OpenSearchService
|
|
1757
1989
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1758
1990
|
end)
|
1759
1991
|
|
1992
|
+
api.add_operation(:update_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
1993
|
+
o.name = "UpdateVpcEndpoint"
|
1994
|
+
o.http_method = "POST"
|
1995
|
+
o.http_request_uri = "/2021-01-01/opensearch/vpcEndpoints/update"
|
1996
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateVpcEndpointRequest)
|
1997
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateVpcEndpointResponse)
|
1998
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1999
|
+
o.errors << Shapes::ShapeRef.new(shape: DisabledOperationException)
|
2000
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
2001
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
2002
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
2003
|
+
o.errors << Shapes::ShapeRef.new(shape: BaseException)
|
2004
|
+
end)
|
2005
|
+
|
1760
2006
|
api.add_operation(:upgrade_domain, Seahorse::Model::Operation.new.tap do |o|
|
1761
2007
|
o.name = "UpgradeDomain"
|
1762
2008
|
o.http_method = "POST"
|
@@ -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::OpenSearchService
|
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,111 @@
|
|
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::OpenSearchService
|
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
|
+
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
+
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
+
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
+
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
+
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
+
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
+
dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
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