aws-sdk-opensearchservice 1.26.0 → 1.42.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +80 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-opensearchservice/client.rb +663 -93
- data/lib/aws-sdk-opensearchservice/client_api.rb +338 -0
- data/lib/aws-sdk-opensearchservice/endpoint_provider.rb +10 -1
- data/lib/aws-sdk-opensearchservice/endpoints.rb +126 -0
- data/lib/aws-sdk-opensearchservice/plugins/endpoints.rb +22 -2
- data/lib/aws-sdk-opensearchservice/types.rb +806 -39
- data/lib/aws-sdk-opensearchservice.rb +1 -1
- data/sig/client.rbs +1120 -0
- data/sig/errors.rbs +44 -0
- data/sig/resource.rbs +79 -0
- data/sig/types.rbs +1674 -0
- data/sig/waiters.rbs +13 -0
- metadata +14 -9
@@ -32,13 +32,22 @@ module Aws::OpenSearchService
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://es-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
39
|
end
|
40
40
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
41
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://aos.#{region}.api.aws", headers: {}, properties: {})
|
44
|
+
end
|
45
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://aos.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://aos.#{region}.api.aws", headers: {}, properties: {})
|
50
|
+
end
|
42
51
|
return Aws::Endpoints::Endpoint.new(url: "https://es.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
52
|
end
|
44
53
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
@@ -26,6 +26,20 @@ module Aws::OpenSearchService
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
class AddDataSource
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
29
43
|
class AddTags
|
30
44
|
def self.build(context)
|
31
45
|
unless context.config.regional_endpoint
|
@@ -68,6 +82,20 @@ module Aws::OpenSearchService
|
|
68
82
|
end
|
69
83
|
end
|
70
84
|
|
85
|
+
class CancelDomainConfigChange
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
71
99
|
class CancelServiceSoftwareUpdate
|
72
100
|
def self.build(context)
|
73
101
|
unless context.config.regional_endpoint
|
@@ -138,6 +166,20 @@ module Aws::OpenSearchService
|
|
138
166
|
end
|
139
167
|
end
|
140
168
|
|
169
|
+
class DeleteDataSource
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
141
183
|
class DeleteDomain
|
142
184
|
def self.build(context)
|
143
185
|
unless context.config.regional_endpoint
|
@@ -446,6 +488,34 @@ module Aws::OpenSearchService
|
|
446
488
|
end
|
447
489
|
end
|
448
490
|
|
491
|
+
class GetDataSource
|
492
|
+
def self.build(context)
|
493
|
+
unless context.config.regional_endpoint
|
494
|
+
endpoint = context.config.endpoint.to_s
|
495
|
+
end
|
496
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
497
|
+
region: context.config.region,
|
498
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
499
|
+
use_fips: context.config.use_fips_endpoint,
|
500
|
+
endpoint: endpoint,
|
501
|
+
)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
class GetDomainMaintenanceStatus
|
506
|
+
def self.build(context)
|
507
|
+
unless context.config.regional_endpoint
|
508
|
+
endpoint = context.config.endpoint.to_s
|
509
|
+
end
|
510
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
511
|
+
region: context.config.region,
|
512
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
513
|
+
use_fips: context.config.use_fips_endpoint,
|
514
|
+
endpoint: endpoint,
|
515
|
+
)
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
449
519
|
class GetPackageVersionHistory
|
450
520
|
def self.build(context)
|
451
521
|
unless context.config.regional_endpoint
|
@@ -488,6 +558,34 @@ module Aws::OpenSearchService
|
|
488
558
|
end
|
489
559
|
end
|
490
560
|
|
561
|
+
class ListDataSources
|
562
|
+
def self.build(context)
|
563
|
+
unless context.config.regional_endpoint
|
564
|
+
endpoint = context.config.endpoint.to_s
|
565
|
+
end
|
566
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
567
|
+
region: context.config.region,
|
568
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
569
|
+
use_fips: context.config.use_fips_endpoint,
|
570
|
+
endpoint: endpoint,
|
571
|
+
)
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
575
|
+
class ListDomainMaintenances
|
576
|
+
def self.build(context)
|
577
|
+
unless context.config.regional_endpoint
|
578
|
+
endpoint = context.config.endpoint.to_s
|
579
|
+
end
|
580
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
581
|
+
region: context.config.region,
|
582
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
583
|
+
use_fips: context.config.use_fips_endpoint,
|
584
|
+
endpoint: endpoint,
|
585
|
+
)
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
491
589
|
class ListDomainNames
|
492
590
|
def self.build(context)
|
493
591
|
unless context.config.regional_endpoint
|
@@ -684,6 +782,20 @@ module Aws::OpenSearchService
|
|
684
782
|
end
|
685
783
|
end
|
686
784
|
|
785
|
+
class StartDomainMaintenance
|
786
|
+
def self.build(context)
|
787
|
+
unless context.config.regional_endpoint
|
788
|
+
endpoint = context.config.endpoint.to_s
|
789
|
+
end
|
790
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
791
|
+
region: context.config.region,
|
792
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
793
|
+
use_fips: context.config.use_fips_endpoint,
|
794
|
+
endpoint: endpoint,
|
795
|
+
)
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
687
799
|
class StartServiceSoftwareUpdate
|
688
800
|
def self.build(context)
|
689
801
|
unless context.config.regional_endpoint
|
@@ -698,6 +810,20 @@ module Aws::OpenSearchService
|
|
698
810
|
end
|
699
811
|
end
|
700
812
|
|
813
|
+
class UpdateDataSource
|
814
|
+
def self.build(context)
|
815
|
+
unless context.config.regional_endpoint
|
816
|
+
endpoint = context.config.endpoint.to_s
|
817
|
+
end
|
818
|
+
Aws::OpenSearchService::EndpointParameters.new(
|
819
|
+
region: context.config.region,
|
820
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
821
|
+
use_fips: context.config.use_fips_endpoint,
|
822
|
+
endpoint: endpoint,
|
823
|
+
)
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
701
827
|
class UpdateDomainConfig
|
702
828
|
def self.build(context)
|
703
829
|
unless context.config.regional_endpoint
|
@@ -14,6 +14,7 @@ module Aws::OpenSearchService
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::OpenSearchService::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -25,16 +26,17 @@ module Aws::OpenSearchService
|
|
25
26
|
# @api private
|
26
27
|
class Handler < Seahorse::Client::Handler
|
27
28
|
def call(context)
|
28
|
-
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
29
|
unless context[:discovered_endpoint]
|
30
30
|
params = parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
34
34
|
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
|
36
|
+
context[:endpoint_params] = params
|
37
|
+
context[:endpoint_properties] = endpoint.properties
|
35
38
|
end
|
36
39
|
|
37
|
-
context[:endpoint_params] = params
|
38
40
|
context[:auth_scheme] =
|
39
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
42
|
|
@@ -58,12 +60,16 @@ module Aws::OpenSearchService
|
|
58
60
|
case context.operation_name
|
59
61
|
when :accept_inbound_connection
|
60
62
|
Aws::OpenSearchService::Endpoints::AcceptInboundConnection.build(context)
|
63
|
+
when :add_data_source
|
64
|
+
Aws::OpenSearchService::Endpoints::AddDataSource.build(context)
|
61
65
|
when :add_tags
|
62
66
|
Aws::OpenSearchService::Endpoints::AddTags.build(context)
|
63
67
|
when :associate_package
|
64
68
|
Aws::OpenSearchService::Endpoints::AssociatePackage.build(context)
|
65
69
|
when :authorize_vpc_endpoint_access
|
66
70
|
Aws::OpenSearchService::Endpoints::AuthorizeVpcEndpointAccess.build(context)
|
71
|
+
when :cancel_domain_config_change
|
72
|
+
Aws::OpenSearchService::Endpoints::CancelDomainConfigChange.build(context)
|
67
73
|
when :cancel_service_software_update
|
68
74
|
Aws::OpenSearchService::Endpoints::CancelServiceSoftwareUpdate.build(context)
|
69
75
|
when :create_domain
|
@@ -74,6 +80,8 @@ module Aws::OpenSearchService
|
|
74
80
|
Aws::OpenSearchService::Endpoints::CreatePackage.build(context)
|
75
81
|
when :create_vpc_endpoint
|
76
82
|
Aws::OpenSearchService::Endpoints::CreateVpcEndpoint.build(context)
|
83
|
+
when :delete_data_source
|
84
|
+
Aws::OpenSearchService::Endpoints::DeleteDataSource.build(context)
|
77
85
|
when :delete_domain
|
78
86
|
Aws::OpenSearchService::Endpoints::DeleteDomain.build(context)
|
79
87
|
when :delete_inbound_connection
|
@@ -118,12 +126,20 @@ module Aws::OpenSearchService
|
|
118
126
|
Aws::OpenSearchService::Endpoints::DissociatePackage.build(context)
|
119
127
|
when :get_compatible_versions
|
120
128
|
Aws::OpenSearchService::Endpoints::GetCompatibleVersions.build(context)
|
129
|
+
when :get_data_source
|
130
|
+
Aws::OpenSearchService::Endpoints::GetDataSource.build(context)
|
131
|
+
when :get_domain_maintenance_status
|
132
|
+
Aws::OpenSearchService::Endpoints::GetDomainMaintenanceStatus.build(context)
|
121
133
|
when :get_package_version_history
|
122
134
|
Aws::OpenSearchService::Endpoints::GetPackageVersionHistory.build(context)
|
123
135
|
when :get_upgrade_history
|
124
136
|
Aws::OpenSearchService::Endpoints::GetUpgradeHistory.build(context)
|
125
137
|
when :get_upgrade_status
|
126
138
|
Aws::OpenSearchService::Endpoints::GetUpgradeStatus.build(context)
|
139
|
+
when :list_data_sources
|
140
|
+
Aws::OpenSearchService::Endpoints::ListDataSources.build(context)
|
141
|
+
when :list_domain_maintenances
|
142
|
+
Aws::OpenSearchService::Endpoints::ListDomainMaintenances.build(context)
|
127
143
|
when :list_domain_names
|
128
144
|
Aws::OpenSearchService::Endpoints::ListDomainNames.build(context)
|
129
145
|
when :list_domains_for_package
|
@@ -152,8 +168,12 @@ module Aws::OpenSearchService
|
|
152
168
|
Aws::OpenSearchService::Endpoints::RemoveTags.build(context)
|
153
169
|
when :revoke_vpc_endpoint_access
|
154
170
|
Aws::OpenSearchService::Endpoints::RevokeVpcEndpointAccess.build(context)
|
171
|
+
when :start_domain_maintenance
|
172
|
+
Aws::OpenSearchService::Endpoints::StartDomainMaintenance.build(context)
|
155
173
|
when :start_service_software_update
|
156
174
|
Aws::OpenSearchService::Endpoints::StartServiceSoftwareUpdate.build(context)
|
175
|
+
when :update_data_source
|
176
|
+
Aws::OpenSearchService::Endpoints::UpdateDataSource.build(context)
|
157
177
|
when :update_domain_config
|
158
178
|
Aws::OpenSearchService::Endpoints::UpdateDomainConfig.build(context)
|
159
179
|
when :update_package
|