aws-sdk-opensearchserverless 1.0.0 → 1.2.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-opensearchserverless/client.rb +9 -7
- data/lib/aws-sdk-opensearchserverless/client_api.rb +20 -0
- data/lib/aws-sdk-opensearchserverless/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-opensearchserverless/endpoint_provider.rb +38 -94
- data/lib/aws-sdk-opensearchserverless/errors.rb +52 -0
- data/lib/aws-sdk-opensearchserverless/types.rb +65 -351
- data/lib/aws-sdk-opensearchserverless.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: a4532d16f0fa640be507c3312f0c389288991c5822fbeeab375c9d203cf8a77e
|
4
|
+
data.tar.gz: 836b572c18bea2a3d6a7241b0a462c79dd597546f4743d129a4c7d9cd438b672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9446b7cea7c37aeed064ece43f3c98271fbbc734dff3e29e6dfef3a7292bce45f73612c2f6e844e48aaf58bd5f584312e2b312fc6991124400802c78c2b6e50
|
7
|
+
data.tar.gz: e3aaf8659ced08c97fdf7f0264f3b731943ed6fd2fab9a8ce5819f0825b2ddf45b6a06f01ee87a4e8657d24bf22a7a711aac0a8af203ec33dced21931fc190f1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.2.0 (2023-03-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release includes two new exception types "ServiceQuotaExceededException" and "OcuLimitExceededException".
|
8
|
+
|
9
|
+
1.1.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.0.0 (2022-11-29)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -641,7 +641,8 @@ module Aws::OpenSearchServerless
|
|
641
641
|
# The name of the security configuration.
|
642
642
|
#
|
643
643
|
# @option params [Types::SamlConfigOptions] :saml_options
|
644
|
-
# Describes SAML options in in the form of a key-value map.
|
644
|
+
# Describes SAML options in in the form of a key-value map. This field
|
645
|
+
# is required if you specify `saml` for the `type` parameter.
|
645
646
|
#
|
646
647
|
# @option params [required, String] :type
|
647
648
|
# The type of security configuration.
|
@@ -1207,7 +1208,7 @@ module Aws::OpenSearchServerless
|
|
1207
1208
|
# page.
|
1208
1209
|
#
|
1209
1210
|
# @option params [Array<String>] :resource
|
1210
|
-
# Resource filters (can be
|
1211
|
+
# Resource filters (can be collections or indexes) that policies can
|
1211
1212
|
# apply to.
|
1212
1213
|
#
|
1213
1214
|
# @option params [required, String] :type
|
@@ -1657,21 +1658,22 @@ module Aws::OpenSearchServerless
|
|
1657
1658
|
end
|
1658
1659
|
|
1659
1660
|
# Update the OpenSearch Serverless settings for the current Amazon Web
|
1660
|
-
# Services account. For more information, see [
|
1661
|
+
# Services account. For more information, see [Managing capacity limits
|
1662
|
+
# for Amazon OpenSearch Serverless][1].
|
1661
1663
|
#
|
1662
1664
|
#
|
1663
1665
|
#
|
1664
|
-
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-
|
1666
|
+
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html
|
1665
1667
|
#
|
1666
1668
|
# @option params [Types::CapacityLimits] :capacity_limits
|
1667
1669
|
# The maximum capacity limits for all OpenSearch Serverless collections,
|
1668
1670
|
# in OpenSearch Compute Units (OCUs). These limits are used to scale
|
1669
1671
|
# your collections based on the current workload. For more information,
|
1670
|
-
# see [
|
1672
|
+
# see [Managing capacity limits for Amazon OpenSearch Serverless][1].
|
1671
1673
|
#
|
1672
1674
|
#
|
1673
1675
|
#
|
1674
|
-
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-
|
1676
|
+
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html
|
1675
1677
|
#
|
1676
1678
|
# @return [Types::UpdateAccountSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1677
1679
|
#
|
@@ -1965,7 +1967,7 @@ module Aws::OpenSearchServerless
|
|
1965
1967
|
params: params,
|
1966
1968
|
config: config)
|
1967
1969
|
context[:gem_name] = 'aws-sdk-opensearchserverless'
|
1968
|
-
context[:gem_version] = '1.
|
1970
|
+
context[:gem_version] = '1.2.0'
|
1969
1971
|
Seahorse::Client::Request.new(handlers, context)
|
1970
1972
|
end
|
1971
1973
|
|
@@ -100,6 +100,7 @@ module Aws::OpenSearchServerless
|
|
100
100
|
ListVpcEndpointsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListVpcEndpointsRequestMaxResultsInteger')
|
101
101
|
ListVpcEndpointsResponse = Shapes::StructureShape.new(name: 'ListVpcEndpointsResponse')
|
102
102
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
103
|
+
OcuLimitExceededException = Shapes::StructureShape.new(name: 'OcuLimitExceededException')
|
103
104
|
PolicyDescription = Shapes::StringShape.new(name: 'PolicyDescription')
|
104
105
|
PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
|
105
106
|
PolicyName = Shapes::StringShape.new(name: 'PolicyName')
|
@@ -122,6 +123,7 @@ module Aws::OpenSearchServerless
|
|
122
123
|
SecurityPolicySummaries = Shapes::ListShape.new(name: 'SecurityPolicySummaries')
|
123
124
|
SecurityPolicySummary = Shapes::StructureShape.new(name: 'SecurityPolicySummary')
|
124
125
|
SecurityPolicyType = Shapes::StringShape.new(name: 'SecurityPolicyType')
|
126
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
125
127
|
String = Shapes::StringShape.new(name: 'String')
|
126
128
|
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
127
129
|
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
@@ -455,6 +457,9 @@ module Aws::OpenSearchServerless
|
|
455
457
|
ListVpcEndpointsResponse.add_member(:vpc_endpoint_summaries, Shapes::ShapeRef.new(shape: VpcEndpointSummaries, location_name: "vpcEndpointSummaries"))
|
456
458
|
ListVpcEndpointsResponse.struct_class = Types::ListVpcEndpointsResponse
|
457
459
|
|
460
|
+
OcuLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
461
|
+
OcuLimitExceededException.struct_class = Types::OcuLimitExceededException
|
462
|
+
|
458
463
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
459
464
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
460
465
|
|
@@ -511,6 +516,13 @@ module Aws::OpenSearchServerless
|
|
511
516
|
SecurityPolicySummary.add_member(:type, Shapes::ShapeRef.new(shape: SecurityPolicyType, location_name: "type"))
|
512
517
|
SecurityPolicySummary.struct_class = Types::SecurityPolicySummary
|
513
518
|
|
519
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
520
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
|
521
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
|
522
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
|
523
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
|
524
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
525
|
+
|
514
526
|
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
515
527
|
|
516
528
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
|
@@ -689,6 +701,7 @@ module Aws::OpenSearchServerless
|
|
689
701
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
690
702
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
691
703
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
704
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
692
705
|
end)
|
693
706
|
|
694
707
|
api.add_operation(:create_collection, Seahorse::Model::Operation.new.tap do |o|
|
@@ -697,9 +710,11 @@ module Aws::OpenSearchServerless
|
|
697
710
|
o.http_request_uri = "/"
|
698
711
|
o.input = Shapes::ShapeRef.new(shape: CreateCollectionRequest)
|
699
712
|
o.output = Shapes::ShapeRef.new(shape: CreateCollectionResponse)
|
713
|
+
o.errors << Shapes::ShapeRef.new(shape: OcuLimitExceededException)
|
700
714
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
701
715
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
702
716
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
717
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
703
718
|
end)
|
704
719
|
|
705
720
|
api.add_operation(:create_security_config, Seahorse::Model::Operation.new.tap do |o|
|
@@ -711,6 +726,7 @@ module Aws::OpenSearchServerless
|
|
711
726
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
712
727
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
713
728
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
729
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
714
730
|
end)
|
715
731
|
|
716
732
|
api.add_operation(:create_security_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -722,6 +738,7 @@ module Aws::OpenSearchServerless
|
|
722
738
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
723
739
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
724
740
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
741
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
725
742
|
end)
|
726
743
|
|
727
744
|
api.add_operation(:create_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
@@ -733,6 +750,7 @@ module Aws::OpenSearchServerless
|
|
733
750
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
734
751
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
735
752
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
753
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
736
754
|
end)
|
737
755
|
|
738
756
|
api.add_operation(:delete_access_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -948,6 +966,7 @@ module Aws::OpenSearchServerless
|
|
948
966
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
949
967
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
950
968
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
969
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
951
970
|
end)
|
952
971
|
|
953
972
|
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1017,6 +1036,7 @@ module Aws::OpenSearchServerless
|
|
1017
1036
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1018
1037
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1019
1038
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1039
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1020
1040
|
end)
|
1021
1041
|
|
1022
1042
|
api.add_operation(:update_vpc_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
@@ -50,9 +50,6 @@ module Aws::OpenSearchServerless
|
|
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?
|
@@ -9,102 +9,46 @@
|
|
9
9
|
|
10
10
|
module Aws::OpenSearchServerless
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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 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"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
25
|
end
|
22
|
-
|
23
|
-
|
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://aoss-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
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://aoss-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
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://aoss.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://aoss.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
51
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
52
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIi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3siZm4iOiJib29sZWFuRXF1
|
93
|
-
YWxzIiwiYXJndiI6W3sicmVmIjoiVXNlRHVhbFN0YWNrIn0sdHJ1ZV19XSwi
|
94
|
-
dHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W3siZm4iOiJi
|
95
|
-
b29sZWFuRXF1YWxzIiwiYXJndiI6W3RydWUseyJmbiI6ImdldEF0dHIiLCJh
|
96
|
-
cmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFs
|
97
|
-
U3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlv
|
98
|
-
bnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL2Fvc3Mue1JlZ2lv
|
99
|
-
bn0ue1BhcnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJv
|
100
|
-
cGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1d
|
101
|
-
fSx7ImNvbmRpdGlvbnMiOltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFi
|
102
|
-
bGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxT
|
103
|
-
dGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5k
|
104
|
-
cG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9hb3NzLntSZWdpb259LntQYXJ0aXRp
|
105
|
-
b25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJz
|
106
|
-
Ijp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
|
107
|
-
|
108
|
-
JSON
|
109
53
|
end
|
110
54
|
end
|
@@ -29,7 +29,9 @@ module Aws::OpenSearchServerless
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {ConflictException}
|
31
31
|
# * {InternalServerException}
|
32
|
+
# * {OcuLimitExceededException}
|
32
33
|
# * {ResourceNotFoundException}
|
34
|
+
# * {ServiceQuotaExceededException}
|
33
35
|
# * {ValidationException}
|
34
36
|
#
|
35
37
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -68,6 +70,21 @@ module Aws::OpenSearchServerless
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
73
|
+
class OcuLimitExceededException < ServiceError
|
74
|
+
|
75
|
+
# @param [Seahorse::Client::RequestContext] context
|
76
|
+
# @param [String] message
|
77
|
+
# @param [Aws::OpenSearchServerless::Types::OcuLimitExceededException] data
|
78
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
79
|
+
super(context, message, data)
|
80
|
+
end
|
81
|
+
|
82
|
+
# @return [String]
|
83
|
+
def message
|
84
|
+
@message || @data[:message]
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
71
88
|
class ResourceNotFoundException < ServiceError
|
72
89
|
|
73
90
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -83,6 +100,41 @@ module Aws::OpenSearchServerless
|
|
83
100
|
end
|
84
101
|
end
|
85
102
|
|
103
|
+
class ServiceQuotaExceededException < ServiceError
|
104
|
+
|
105
|
+
# @param [Seahorse::Client::RequestContext] context
|
106
|
+
# @param [String] message
|
107
|
+
# @param [Aws::OpenSearchServerless::Types::ServiceQuotaExceededException] data
|
108
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
109
|
+
super(context, message, data)
|
110
|
+
end
|
111
|
+
|
112
|
+
# @return [String]
|
113
|
+
def message
|
114
|
+
@message || @data[:message]
|
115
|
+
end
|
116
|
+
|
117
|
+
# @return [String]
|
118
|
+
def quota_code
|
119
|
+
@data[:quota_code]
|
120
|
+
end
|
121
|
+
|
122
|
+
# @return [String]
|
123
|
+
def resource_id
|
124
|
+
@data[:resource_id]
|
125
|
+
end
|
126
|
+
|
127
|
+
# @return [String]
|
128
|
+
def resource_type
|
129
|
+
@data[:resource_type]
|
130
|
+
end
|
131
|
+
|
132
|
+
# @return [String]
|
133
|
+
def service_code
|
134
|
+
@data[:service_code]
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
86
138
|
class ValidationException < ServiceError
|
87
139
|
|
88
140
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -114,11 +114,12 @@ module Aws::OpenSearchServerless
|
|
114
114
|
# The maximum capacity limits for all OpenSearch Serverless
|
115
115
|
# collections, in OpenSearch Compute Units (OCUs). These limits are
|
116
116
|
# used to scale your collections based on the current workload. For
|
117
|
-
# more information, see [
|
117
|
+
# more information, see [Managing capacity limits for Amazon
|
118
|
+
# OpenSearch Serverless][1].
|
118
119
|
#
|
119
120
|
#
|
120
121
|
#
|
121
|
-
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-
|
122
|
+
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html
|
122
123
|
# @return [Types::CapacityLimits]
|
123
124
|
#
|
124
125
|
# @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/AccountSettingsDetail AWS API Documentation
|
@@ -129,14 +130,6 @@ module Aws::OpenSearchServerless
|
|
129
130
|
include Aws::Structure
|
130
131
|
end
|
131
132
|
|
132
|
-
# @note When making an API call, you may pass BatchGetCollectionRequest
|
133
|
-
# data as a hash:
|
134
|
-
#
|
135
|
-
# {
|
136
|
-
# ids: ["CollectionId"],
|
137
|
-
# names: ["CollectionName"],
|
138
|
-
# }
|
139
|
-
#
|
140
133
|
# @!attribute [rw] ids
|
141
134
|
# A list of collection IDs. You can't provide names and IDs in the
|
142
135
|
# same request. The ID is part of the collection endpoint. You can
|
@@ -178,13 +171,6 @@ module Aws::OpenSearchServerless
|
|
178
171
|
include Aws::Structure
|
179
172
|
end
|
180
173
|
|
181
|
-
# @note When making an API call, you may pass BatchGetVpcEndpointRequest
|
182
|
-
# data as a hash:
|
183
|
-
#
|
184
|
-
# {
|
185
|
-
# ids: ["VpcEndpointId"], # required
|
186
|
-
# }
|
187
|
-
#
|
188
174
|
# @!attribute [rw] ids
|
189
175
|
# A list of VPC endpoint identifiers.
|
190
176
|
# @return [Array<String>]
|
@@ -217,19 +203,11 @@ module Aws::OpenSearchServerless
|
|
217
203
|
# The maximum capacity limits for all OpenSearch Serverless collections,
|
218
204
|
# in OpenSearch Compute Units (OCUs). These limits are used to scale
|
219
205
|
# your collections based on the current workload. For more information,
|
220
|
-
# see [
|
221
|
-
#
|
222
|
-
#
|
206
|
+
# see [Managing capacity limits for Amazon OpenSearch Serverless][1].
|
223
207
|
#
|
224
|
-
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling
|
225
208
|
#
|
226
|
-
# @note When making an API call, you may pass CapacityLimits
|
227
|
-
# data as a hash:
|
228
209
|
#
|
229
|
-
#
|
230
|
-
# max_indexing_capacity_in_ocu: 1,
|
231
|
-
# max_search_capacity_in_ocu: 1,
|
232
|
-
# }
|
210
|
+
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html
|
233
211
|
#
|
234
212
|
# @!attribute [rw] max_indexing_capacity_in_ocu
|
235
213
|
# The maximum indexing capacity for collections.
|
@@ -350,14 +328,6 @@ module Aws::OpenSearchServerless
|
|
350
328
|
# List of filter keys that you can use for LIST, UPDATE, and DELETE
|
351
329
|
# requests to OpenSearch Serverless collections.
|
352
330
|
#
|
353
|
-
# @note When making an API call, you may pass CollectionFilters
|
354
|
-
# data as a hash:
|
355
|
-
#
|
356
|
-
# {
|
357
|
-
# name: "CollectionName",
|
358
|
-
# status: "CREATING", # accepts CREATING, DELETING, ACTIVE, FAILED
|
359
|
-
# }
|
360
|
-
#
|
361
331
|
# @!attribute [rw] name
|
362
332
|
# The name of the collection.
|
363
333
|
# @return [String]
|
@@ -404,9 +374,9 @@ module Aws::OpenSearchServerless
|
|
404
374
|
include Aws::Structure
|
405
375
|
end
|
406
376
|
|
407
|
-
# When creating a
|
408
|
-
#
|
409
|
-
#
|
377
|
+
# When creating a resource, thrown when a resource with the same name
|
378
|
+
# already exists or is being created. When deleting a resource, thrown
|
379
|
+
# when the resource is not in the ACTIVE or FAILED state.
|
410
380
|
#
|
411
381
|
# @!attribute [rw] message
|
412
382
|
# @return [String]
|
@@ -419,17 +389,6 @@ module Aws::OpenSearchServerless
|
|
419
389
|
include Aws::Structure
|
420
390
|
end
|
421
391
|
|
422
|
-
# @note When making an API call, you may pass CreateAccessPolicyRequest
|
423
|
-
# data as a hash:
|
424
|
-
#
|
425
|
-
# {
|
426
|
-
# client_token: "ClientToken",
|
427
|
-
# description: "PolicyDescription",
|
428
|
-
# name: "PolicyName", # required
|
429
|
-
# policy: "PolicyDocument", # required
|
430
|
-
# type: "data", # required, accepts data
|
431
|
-
# }
|
432
|
-
#
|
433
392
|
# @!attribute [rw] client_token
|
434
393
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
435
394
|
# request.
|
@@ -534,22 +493,6 @@ module Aws::OpenSearchServerless
|
|
534
493
|
include Aws::Structure
|
535
494
|
end
|
536
495
|
|
537
|
-
# @note When making an API call, you may pass CreateCollectionRequest
|
538
|
-
# data as a hash:
|
539
|
-
#
|
540
|
-
# {
|
541
|
-
# client_token: "ClientToken",
|
542
|
-
# description: "CreateCollectionRequestDescriptionString",
|
543
|
-
# name: "CollectionName", # required
|
544
|
-
# tags: [
|
545
|
-
# {
|
546
|
-
# key: "TagKey", # required
|
547
|
-
# value: "TagValue", # required
|
548
|
-
# },
|
549
|
-
# ],
|
550
|
-
# type: "SEARCH", # accepts SEARCH, TIMESERIES
|
551
|
-
# }
|
552
|
-
#
|
553
496
|
# @!attribute [rw] client_token
|
554
497
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
555
498
|
# request.
|
@@ -599,22 +542,6 @@ module Aws::OpenSearchServerless
|
|
599
542
|
include Aws::Structure
|
600
543
|
end
|
601
544
|
|
602
|
-
# @note When making an API call, you may pass CreateSecurityConfigRequest
|
603
|
-
# data as a hash:
|
604
|
-
#
|
605
|
-
# {
|
606
|
-
# client_token: "ClientToken",
|
607
|
-
# description: "ConfigDescription",
|
608
|
-
# name: "ConfigName", # required
|
609
|
-
# saml_options: {
|
610
|
-
# group_attribute: "samlGroupAttribute",
|
611
|
-
# metadata: "samlMetadata", # required
|
612
|
-
# session_timeout: 1,
|
613
|
-
# user_attribute: "samlUserAttribute",
|
614
|
-
# },
|
615
|
-
# type: "saml", # required, accepts saml
|
616
|
-
# }
|
617
|
-
#
|
618
545
|
# @!attribute [rw] client_token
|
619
546
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
620
547
|
# request.
|
@@ -632,7 +559,8 @@ module Aws::OpenSearchServerless
|
|
632
559
|
# @return [String]
|
633
560
|
#
|
634
561
|
# @!attribute [rw] saml_options
|
635
|
-
# Describes SAML options in in the form of a key-value map.
|
562
|
+
# Describes SAML options in in the form of a key-value map. This field
|
563
|
+
# is required if you specify `saml` for the `type` parameter.
|
636
564
|
# @return [Types::SamlConfigOptions]
|
637
565
|
#
|
638
566
|
# @!attribute [rw] type
|
@@ -663,17 +591,6 @@ module Aws::OpenSearchServerless
|
|
663
591
|
include Aws::Structure
|
664
592
|
end
|
665
593
|
|
666
|
-
# @note When making an API call, you may pass CreateSecurityPolicyRequest
|
667
|
-
# data as a hash:
|
668
|
-
#
|
669
|
-
# {
|
670
|
-
# client_token: "ClientToken",
|
671
|
-
# description: "PolicyDescription",
|
672
|
-
# name: "PolicyName", # required
|
673
|
-
# policy: "PolicyDocument", # required
|
674
|
-
# type: "encryption", # required, accepts encryption, network
|
675
|
-
# }
|
676
|
-
#
|
677
594
|
# @!attribute [rw] client_token
|
678
595
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
679
596
|
# request.
|
@@ -753,17 +670,6 @@ module Aws::OpenSearchServerless
|
|
753
670
|
include Aws::Structure
|
754
671
|
end
|
755
672
|
|
756
|
-
# @note When making an API call, you may pass CreateVpcEndpointRequest
|
757
|
-
# data as a hash:
|
758
|
-
#
|
759
|
-
# {
|
760
|
-
# client_token: "ClientToken",
|
761
|
-
# name: "VpcEndpointName", # required
|
762
|
-
# security_group_ids: ["SecurityGroupId"],
|
763
|
-
# subnet_ids: ["SubnetId"], # required
|
764
|
-
# vpc_id: "VpcId", # required
|
765
|
-
# }
|
766
|
-
#
|
767
673
|
# @!attribute [rw] client_token
|
768
674
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
769
675
|
# request.
|
@@ -815,15 +721,6 @@ module Aws::OpenSearchServerless
|
|
815
721
|
include Aws::Structure
|
816
722
|
end
|
817
723
|
|
818
|
-
# @note When making an API call, you may pass DeleteAccessPolicyRequest
|
819
|
-
# data as a hash:
|
820
|
-
#
|
821
|
-
# {
|
822
|
-
# client_token: "ClientToken",
|
823
|
-
# name: "PolicyName", # required
|
824
|
-
# type: "data", # required, accepts data
|
825
|
-
# }
|
826
|
-
#
|
827
724
|
# @!attribute [rw] client_token
|
828
725
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
829
726
|
# request.
|
@@ -878,14 +775,6 @@ module Aws::OpenSearchServerless
|
|
878
775
|
include Aws::Structure
|
879
776
|
end
|
880
777
|
|
881
|
-
# @note When making an API call, you may pass DeleteCollectionRequest
|
882
|
-
# data as a hash:
|
883
|
-
#
|
884
|
-
# {
|
885
|
-
# client_token: "ClientToken",
|
886
|
-
# id: "CollectionId", # required
|
887
|
-
# }
|
888
|
-
#
|
889
778
|
# @!attribute [rw] client_token
|
890
779
|
# A unique, case-sensitive identifier to ensure idempotency of the
|
891
780
|
# request.
|
@@ -925,14 +814,6 @@ module Aws::OpenSearchServerless
|
|
925
814
|
include Aws::Structure
|
926
815
|
end
|
927
816
|
|
928
|
-
# @note When making an API call, you may pass DeleteSecurityConfigRequest
|
929
|
-
# data as a hash:
|
930
|
-
#
|
931
|
-
# {
|
932
|
-
# client_token: "ClientToken",
|
933
|
-
# id: "SecurityConfigId", # required
|
934
|
-
# }
|
935
|
-
#
|
936
817
|
# @!attribute [rw] client_token
|
937
818
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
938
819
|
# request.
|
@@ -960,15 +841,6 @@ module Aws::OpenSearchServerless
|
|
960
841
|
#
|
961
842
|
class DeleteSecurityConfigResponse < Aws::EmptyStructure; end
|
962
843
|
|
963
|
-
# @note When making an API call, you may pass DeleteSecurityPolicyRequest
|
964
|
-
# data as a hash:
|
965
|
-
#
|
966
|
-
# {
|
967
|
-
# client_token: "ClientToken",
|
968
|
-
# name: "PolicyName", # required
|
969
|
-
# type: "encryption", # required, accepts encryption, network
|
970
|
-
# }
|
971
|
-
#
|
972
844
|
# @!attribute [rw] client_token
|
973
845
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
974
846
|
# request.
|
@@ -1024,14 +896,6 @@ module Aws::OpenSearchServerless
|
|
1024
896
|
include Aws::Structure
|
1025
897
|
end
|
1026
898
|
|
1027
|
-
# @note When making an API call, you may pass DeleteVpcEndpointRequest
|
1028
|
-
# data as a hash:
|
1029
|
-
#
|
1030
|
-
# {
|
1031
|
-
# client_token: "ClientToken",
|
1032
|
-
# id: "VpcEndpointId", # required
|
1033
|
-
# }
|
1034
|
-
#
|
1035
899
|
# @!attribute [rw] client_token
|
1036
900
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
1037
901
|
# request.
|
@@ -1065,14 +929,6 @@ module Aws::OpenSearchServerless
|
|
1065
929
|
include Aws::Structure
|
1066
930
|
end
|
1067
931
|
|
1068
|
-
# @note When making an API call, you may pass GetAccessPolicyRequest
|
1069
|
-
# data as a hash:
|
1070
|
-
#
|
1071
|
-
# {
|
1072
|
-
# name: "PolicyName", # required
|
1073
|
-
# type: "data", # required, accepts data
|
1074
|
-
# }
|
1075
|
-
#
|
1076
932
|
# @!attribute [rw] name
|
1077
933
|
# The name of the access policy.
|
1078
934
|
# @return [String]
|
@@ -1154,13 +1010,6 @@ module Aws::OpenSearchServerless
|
|
1154
1010
|
include Aws::Structure
|
1155
1011
|
end
|
1156
1012
|
|
1157
|
-
# @note When making an API call, you may pass GetSecurityConfigRequest
|
1158
|
-
# data as a hash:
|
1159
|
-
#
|
1160
|
-
# {
|
1161
|
-
# id: "SecurityConfigId", # required
|
1162
|
-
# }
|
1163
|
-
#
|
1164
1013
|
# @!attribute [rw] id
|
1165
1014
|
# The unique identifier of the security configuration.
|
1166
1015
|
# @return [String]
|
@@ -1185,14 +1034,6 @@ module Aws::OpenSearchServerless
|
|
1185
1034
|
include Aws::Structure
|
1186
1035
|
end
|
1187
1036
|
|
1188
|
-
# @note When making an API call, you may pass GetSecurityPolicyRequest
|
1189
|
-
# data as a hash:
|
1190
|
-
#
|
1191
|
-
# {
|
1192
|
-
# name: "PolicyName", # required
|
1193
|
-
# type: "encryption", # required, accepts encryption, network
|
1194
|
-
# }
|
1195
|
-
#
|
1196
1037
|
# @!attribute [rw] name
|
1197
1038
|
# The name of the security policy.
|
1198
1039
|
# @return [String]
|
@@ -1236,16 +1077,6 @@ module Aws::OpenSearchServerless
|
|
1236
1077
|
include Aws::Structure
|
1237
1078
|
end
|
1238
1079
|
|
1239
|
-
# @note When making an API call, you may pass ListAccessPoliciesRequest
|
1240
|
-
# data as a hash:
|
1241
|
-
#
|
1242
|
-
# {
|
1243
|
-
# max_results: 1,
|
1244
|
-
# next_token: "String",
|
1245
|
-
# resource: ["Resource"],
|
1246
|
-
# type: "data", # required, accepts data
|
1247
|
-
# }
|
1248
|
-
#
|
1249
1080
|
# @!attribute [rw] max_results
|
1250
1081
|
# An optional parameter that specifies the maximum number of results
|
1251
1082
|
# to return. You can use `nextToken` to get the next page of results.
|
@@ -1260,7 +1091,7 @@ module Aws::OpenSearchServerless
|
|
1260
1091
|
# @return [String]
|
1261
1092
|
#
|
1262
1093
|
# @!attribute [rw] resource
|
1263
|
-
# Resource filters (can be
|
1094
|
+
# Resource filters (can be collections or indexes) that policies can
|
1264
1095
|
# apply to.
|
1265
1096
|
# @return [Array<String>]
|
1266
1097
|
#
|
@@ -1299,18 +1130,6 @@ module Aws::OpenSearchServerless
|
|
1299
1130
|
include Aws::Structure
|
1300
1131
|
end
|
1301
1132
|
|
1302
|
-
# @note When making an API call, you may pass ListCollectionsRequest
|
1303
|
-
# data as a hash:
|
1304
|
-
#
|
1305
|
-
# {
|
1306
|
-
# collection_filters: {
|
1307
|
-
# name: "CollectionName",
|
1308
|
-
# status: "CREATING", # accepts CREATING, DELETING, ACTIVE, FAILED
|
1309
|
-
# },
|
1310
|
-
# max_results: 1,
|
1311
|
-
# next_token: "String",
|
1312
|
-
# }
|
1313
|
-
#
|
1314
1133
|
# @!attribute [rw] collection_filters
|
1315
1134
|
# List of filter names and values that you can use for requests.
|
1316
1135
|
# @return [Types::CollectionFilters]
|
@@ -1357,15 +1176,6 @@ module Aws::OpenSearchServerless
|
|
1357
1176
|
include Aws::Structure
|
1358
1177
|
end
|
1359
1178
|
|
1360
|
-
# @note When making an API call, you may pass ListSecurityConfigsRequest
|
1361
|
-
# data as a hash:
|
1362
|
-
#
|
1363
|
-
# {
|
1364
|
-
# max_results: 1,
|
1365
|
-
# next_token: "String",
|
1366
|
-
# type: "saml", # required, accepts saml
|
1367
|
-
# }
|
1368
|
-
#
|
1369
1179
|
# @!attribute [rw] max_results
|
1370
1180
|
# An optional parameter that specifies the maximum number of results
|
1371
1181
|
# to return. You can use `nextToken` to get the next page of results.
|
@@ -1413,16 +1223,6 @@ module Aws::OpenSearchServerless
|
|
1413
1223
|
include Aws::Structure
|
1414
1224
|
end
|
1415
1225
|
|
1416
|
-
# @note When making an API call, you may pass ListSecurityPoliciesRequest
|
1417
|
-
# data as a hash:
|
1418
|
-
#
|
1419
|
-
# {
|
1420
|
-
# max_results: 1,
|
1421
|
-
# next_token: "String",
|
1422
|
-
# resource: ["Resource"],
|
1423
|
-
# type: "encryption", # required, accepts encryption, network
|
1424
|
-
# }
|
1425
|
-
#
|
1426
1226
|
# @!attribute [rw] max_results
|
1427
1227
|
# An optional parameter that specifies the maximum number of results
|
1428
1228
|
# to return. You can use `nextToken` to get the next page of results.
|
@@ -1476,13 +1276,6 @@ module Aws::OpenSearchServerless
|
|
1476
1276
|
include Aws::Structure
|
1477
1277
|
end
|
1478
1278
|
|
1479
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1480
|
-
# data as a hash:
|
1481
|
-
#
|
1482
|
-
# {
|
1483
|
-
# resource_arn: "Arn", # required
|
1484
|
-
# }
|
1485
|
-
#
|
1486
1279
|
# @!attribute [rw] resource_arn
|
1487
1280
|
# The Amazon Resource Name (ARN) of the resource. The resource must be
|
1488
1281
|
# active (not in the `DELETING` state), and must be owned by the
|
@@ -1509,17 +1302,6 @@ module Aws::OpenSearchServerless
|
|
1509
1302
|
include Aws::Structure
|
1510
1303
|
end
|
1511
1304
|
|
1512
|
-
# @note When making an API call, you may pass ListVpcEndpointsRequest
|
1513
|
-
# data as a hash:
|
1514
|
-
#
|
1515
|
-
# {
|
1516
|
-
# max_results: 1,
|
1517
|
-
# next_token: "String",
|
1518
|
-
# vpc_endpoint_filters: {
|
1519
|
-
# status: "PENDING", # accepts PENDING, DELETING, ACTIVE, FAILED
|
1520
|
-
# },
|
1521
|
-
# }
|
1522
|
-
#
|
1523
1305
|
# @!attribute [rw] max_results
|
1524
1306
|
# An optional parameter that specifies the maximum number of results
|
1525
1307
|
# to return. You can use `nextToken` to get the next page of results.
|
@@ -1570,6 +1352,20 @@ module Aws::OpenSearchServerless
|
|
1570
1352
|
include Aws::Structure
|
1571
1353
|
end
|
1572
1354
|
|
1355
|
+
# OCU Limit Exceeded for service limits
|
1356
|
+
#
|
1357
|
+
# @!attribute [rw] message
|
1358
|
+
# Description of the error.
|
1359
|
+
# @return [String]
|
1360
|
+
#
|
1361
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/OcuLimitExceededException AWS API Documentation
|
1362
|
+
#
|
1363
|
+
class OcuLimitExceededException < Struct.new(
|
1364
|
+
:message)
|
1365
|
+
SENSITIVE = []
|
1366
|
+
include Aws::Structure
|
1367
|
+
end
|
1368
|
+
|
1573
1369
|
# Thrown when accessing or deleting a resource that does not exist.
|
1574
1370
|
#
|
1575
1371
|
# @!attribute [rw] message
|
@@ -1586,16 +1382,6 @@ module Aws::OpenSearchServerless
|
|
1586
1382
|
# Describes SAML options for an OpenSearch Serverless security
|
1587
1383
|
# configuration in the form of a key-value map.
|
1588
1384
|
#
|
1589
|
-
# @note When making an API call, you may pass SamlConfigOptions
|
1590
|
-
# data as a hash:
|
1591
|
-
#
|
1592
|
-
# {
|
1593
|
-
# group_attribute: "samlGroupAttribute",
|
1594
|
-
# metadata: "samlMetadata", # required
|
1595
|
-
# session_timeout: 1,
|
1596
|
-
# user_attribute: "samlUserAttribute",
|
1597
|
-
# }
|
1598
|
-
#
|
1599
1385
|
# @!attribute [rw] group_attribute
|
1600
1386
|
# The group attribute for this SAML integration.
|
1601
1387
|
# @return [String]
|
@@ -1605,8 +1391,7 @@ module Aws::OpenSearchServerless
|
|
1605
1391
|
# @return [String]
|
1606
1392
|
#
|
1607
1393
|
# @!attribute [rw] session_timeout
|
1608
|
-
# The session timeout, in minutes.
|
1609
|
-
# is 1440 minutes (24 hours or 1 day). Default is 60 minutes.
|
1394
|
+
# The session timeout, in minutes. Default is 60 minutes (12 hours).
|
1610
1395
|
# @return [Integer]
|
1611
1396
|
#
|
1612
1397
|
# @!attribute [rw] user_attribute
|
@@ -1824,16 +1609,43 @@ module Aws::OpenSearchServerless
|
|
1824
1609
|
include Aws::Structure
|
1825
1610
|
end
|
1826
1611
|
|
1827
|
-
#
|
1828
|
-
#
|
1612
|
+
# Thrown when you attempt to create more resources than the service
|
1613
|
+
# allows based on service quotas.
|
1614
|
+
#
|
1615
|
+
# @!attribute [rw] message
|
1616
|
+
# Description of the error.
|
1617
|
+
# @return [String]
|
1618
|
+
#
|
1619
|
+
# @!attribute [rw] quota_code
|
1620
|
+
# Service Quotas requirement to identify originating quota.
|
1621
|
+
# @return [String]
|
1622
|
+
#
|
1623
|
+
# @!attribute [rw] resource_id
|
1624
|
+
# Identifier of the resource affected.
|
1625
|
+
# @return [String]
|
1626
|
+
#
|
1627
|
+
# @!attribute [rw] resource_type
|
1628
|
+
# Type of the resource affected.
|
1629
|
+
# @return [String]
|
1630
|
+
#
|
1631
|
+
# @!attribute [rw] service_code
|
1632
|
+
# Service Quotas requirement to identify originating service.
|
1633
|
+
# @return [String]
|
1829
1634
|
#
|
1830
|
-
# @
|
1831
|
-
# data as a hash:
|
1635
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/ServiceQuotaExceededException AWS API Documentation
|
1832
1636
|
#
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1637
|
+
class ServiceQuotaExceededException < Struct.new(
|
1638
|
+
:message,
|
1639
|
+
:quota_code,
|
1640
|
+
:resource_id,
|
1641
|
+
:resource_type,
|
1642
|
+
:service_code)
|
1643
|
+
SENSITIVE = []
|
1644
|
+
include Aws::Structure
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
# A map of key-value pairs associated to an OpenSearch Serverless
|
1648
|
+
# resource.
|
1837
1649
|
#
|
1838
1650
|
# @!attribute [rw] key
|
1839
1651
|
# The key to use in the tag.
|
@@ -1852,19 +1664,6 @@ module Aws::OpenSearchServerless
|
|
1852
1664
|
include Aws::Structure
|
1853
1665
|
end
|
1854
1666
|
|
1855
|
-
# @note When making an API call, you may pass TagResourceRequest
|
1856
|
-
# data as a hash:
|
1857
|
-
#
|
1858
|
-
# {
|
1859
|
-
# resource_arn: "Arn", # required
|
1860
|
-
# tags: [ # required
|
1861
|
-
# {
|
1862
|
-
# key: "TagKey", # required
|
1863
|
-
# value: "TagValue", # required
|
1864
|
-
# },
|
1865
|
-
# ],
|
1866
|
-
# }
|
1867
|
-
#
|
1868
1667
|
# @!attribute [rw] resource_arn
|
1869
1668
|
# The Amazon Resource Name (ARN) of the resource. The resource must be
|
1870
1669
|
# active (not in the `DELETING` state), and must be owned by the
|
@@ -1889,14 +1688,6 @@ module Aws::OpenSearchServerless
|
|
1889
1688
|
#
|
1890
1689
|
class TagResourceResponse < Aws::EmptyStructure; end
|
1891
1690
|
|
1892
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
1893
|
-
# data as a hash:
|
1894
|
-
#
|
1895
|
-
# {
|
1896
|
-
# resource_arn: "Arn", # required
|
1897
|
-
# tag_keys: ["TagKey"], # required
|
1898
|
-
# }
|
1899
|
-
#
|
1900
1691
|
# @!attribute [rw] resource_arn
|
1901
1692
|
# The Amazon Resource Name (ARN) of the resource to remove tags from.
|
1902
1693
|
# The resource must be active (not in the `DELETING` state), and must
|
@@ -1921,18 +1712,6 @@ module Aws::OpenSearchServerless
|
|
1921
1712
|
#
|
1922
1713
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1923
1714
|
|
1924
|
-
# @note When making an API call, you may pass UpdateAccessPolicyRequest
|
1925
|
-
# data as a hash:
|
1926
|
-
#
|
1927
|
-
# {
|
1928
|
-
# client_token: "ClientToken",
|
1929
|
-
# description: "PolicyDescription",
|
1930
|
-
# name: "PolicyName", # required
|
1931
|
-
# policy: "PolicyDocument",
|
1932
|
-
# policy_version: "PolicyVersion", # required
|
1933
|
-
# type: "data", # required, accepts data
|
1934
|
-
# }
|
1935
|
-
#
|
1936
1715
|
# @!attribute [rw] client_token
|
1937
1716
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
1938
1717
|
# request.
|
@@ -1987,25 +1766,16 @@ module Aws::OpenSearchServerless
|
|
1987
1766
|
include Aws::Structure
|
1988
1767
|
end
|
1989
1768
|
|
1990
|
-
# @note When making an API call, you may pass UpdateAccountSettingsRequest
|
1991
|
-
# data as a hash:
|
1992
|
-
#
|
1993
|
-
# {
|
1994
|
-
# capacity_limits: {
|
1995
|
-
# max_indexing_capacity_in_ocu: 1,
|
1996
|
-
# max_search_capacity_in_ocu: 1,
|
1997
|
-
# },
|
1998
|
-
# }
|
1999
|
-
#
|
2000
1769
|
# @!attribute [rw] capacity_limits
|
2001
1770
|
# The maximum capacity limits for all OpenSearch Serverless
|
2002
1771
|
# collections, in OpenSearch Compute Units (OCUs). These limits are
|
2003
1772
|
# used to scale your collections based on the current workload. For
|
2004
|
-
# more information, see [
|
1773
|
+
# more information, see [Managing capacity limits for Amazon
|
1774
|
+
# OpenSearch Serverless][1].
|
2005
1775
|
#
|
2006
1776
|
#
|
2007
1777
|
#
|
2008
|
-
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-
|
1778
|
+
# [1]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html
|
2009
1779
|
# @return [Types::CapacityLimits]
|
2010
1780
|
#
|
2011
1781
|
# @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateAccountSettingsRequest AWS API Documentation
|
@@ -2078,15 +1848,6 @@ module Aws::OpenSearchServerless
|
|
2078
1848
|
include Aws::Structure
|
2079
1849
|
end
|
2080
1850
|
|
2081
|
-
# @note When making an API call, you may pass UpdateCollectionRequest
|
2082
|
-
# data as a hash:
|
2083
|
-
#
|
2084
|
-
# {
|
2085
|
-
# client_token: "ClientToken",
|
2086
|
-
# description: "UpdateCollectionRequestDescriptionString",
|
2087
|
-
# id: "CollectionId", # required
|
2088
|
-
# }
|
2089
|
-
#
|
2090
1851
|
# @!attribute [rw] client_token
|
2091
1852
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
2092
1853
|
# request.
|
@@ -2125,22 +1886,6 @@ module Aws::OpenSearchServerless
|
|
2125
1886
|
include Aws::Structure
|
2126
1887
|
end
|
2127
1888
|
|
2128
|
-
# @note When making an API call, you may pass UpdateSecurityConfigRequest
|
2129
|
-
# data as a hash:
|
2130
|
-
#
|
2131
|
-
# {
|
2132
|
-
# client_token: "ClientToken",
|
2133
|
-
# config_version: "PolicyVersion", # required
|
2134
|
-
# description: "ConfigDescription",
|
2135
|
-
# id: "SecurityConfigId", # required
|
2136
|
-
# saml_options: {
|
2137
|
-
# group_attribute: "samlGroupAttribute",
|
2138
|
-
# metadata: "samlMetadata", # required
|
2139
|
-
# session_timeout: 1,
|
2140
|
-
# user_attribute: "samlUserAttribute",
|
2141
|
-
# },
|
2142
|
-
# }
|
2143
|
-
#
|
2144
1889
|
# @!attribute [rw] client_token
|
2145
1890
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
2146
1891
|
# request.
|
@@ -2193,18 +1938,6 @@ module Aws::OpenSearchServerless
|
|
2193
1938
|
include Aws::Structure
|
2194
1939
|
end
|
2195
1940
|
|
2196
|
-
# @note When making an API call, you may pass UpdateSecurityPolicyRequest
|
2197
|
-
# data as a hash:
|
2198
|
-
#
|
2199
|
-
# {
|
2200
|
-
# client_token: "ClientToken",
|
2201
|
-
# description: "PolicyDescription",
|
2202
|
-
# name: "PolicyName", # required
|
2203
|
-
# policy: "PolicyDocument",
|
2204
|
-
# policy_version: "PolicyVersion", # required
|
2205
|
-
# type: "encryption", # required, accepts encryption, network
|
2206
|
-
# }
|
2207
|
-
#
|
2208
1941
|
# @!attribute [rw] client_token
|
2209
1942
|
# Unique, case-sensitive identifier to ensure idempotency of the
|
2210
1943
|
# request.
|
@@ -2301,18 +2034,6 @@ module Aws::OpenSearchServerless
|
|
2301
2034
|
include Aws::Structure
|
2302
2035
|
end
|
2303
2036
|
|
2304
|
-
# @note When making an API call, you may pass UpdateVpcEndpointRequest
|
2305
|
-
# data as a hash:
|
2306
|
-
#
|
2307
|
-
# {
|
2308
|
-
# add_security_group_ids: ["SecurityGroupId"],
|
2309
|
-
# add_subnet_ids: ["SubnetId"],
|
2310
|
-
# client_token: "ClientToken",
|
2311
|
-
# id: "VpcEndpointId", # required
|
2312
|
-
# remove_security_group_ids: ["SecurityGroupId"],
|
2313
|
-
# remove_subnet_ids: ["SubnetId"],
|
2314
|
-
# }
|
2315
|
-
#
|
2316
2037
|
# @!attribute [rw] add_security_group_ids
|
2317
2038
|
# The unique identifiers of the security groups to add to the
|
2318
2039
|
# endpoint. Security groups define the ports, protocols, and sources
|
@@ -2412,7 +2133,7 @@ module Aws::OpenSearchServerless
|
|
2412
2133
|
# @return [Array<String>]
|
2413
2134
|
#
|
2414
2135
|
# @!attribute [rw] vpc_id
|
2415
|
-
# The ID of the VPC from which you access OpenSearch Serverless
|
2136
|
+
# The ID of the VPC from which you access OpenSearch Serverless.
|
2416
2137
|
# @return [String]
|
2417
2138
|
#
|
2418
2139
|
# @see http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/VpcEndpointDetail AWS API Documentation
|
@@ -2455,13 +2176,6 @@ module Aws::OpenSearchServerless
|
|
2455
2176
|
|
2456
2177
|
# Filter the results of a `ListVpcEndpoints` request.
|
2457
2178
|
#
|
2458
|
-
# @note When making an API call, you may pass VpcEndpointFilters
|
2459
|
-
# data as a hash:
|
2460
|
-
#
|
2461
|
-
# {
|
2462
|
-
# status: "PENDING", # accepts PENDING, DELETING, ACTIVE, FAILED
|
2463
|
-
# }
|
2464
|
-
#
|
2465
2179
|
# @!attribute [rw] status
|
2466
2180
|
# The current status of the endpoint.
|
2467
2181
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-opensearchserverless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|