aws-sdk-dsql 1.0.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 +7 -0
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-dsql/client.rb +1143 -0
- data/lib/aws-sdk-dsql/client_api.rb +377 -0
- data/lib/aws-sdk-dsql/customizations/auth_token_generator.rb +70 -0
- data/lib/aws-sdk-dsql/customizations.rb +3 -0
- data/lib/aws-sdk-dsql/endpoint_parameters.rb +59 -0
- data/lib/aws-sdk-dsql/endpoint_provider.rb +35 -0
- data/lib/aws-sdk-dsql/endpoints.rb +20 -0
- data/lib/aws-sdk-dsql/errors.rb +232 -0
- data/lib/aws-sdk-dsql/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-dsql/resource.rb +26 -0
- data/lib/aws-sdk-dsql/types.rb +682 -0
- data/lib/aws-sdk-dsql/waiters.rb +150 -0
- data/lib/aws-sdk-dsql.rb +62 -0
- data/sig/client.rbs +214 -0
- data/sig/errors.rbs +51 -0
- data/sig/resource.rbs +82 -0
- data/sig/types.rbs +196 -0
- data/sig/waiters.rbs +33 -0
- metadata +101 -0
@@ -0,0 +1,150 @@
|
|
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
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::DSQL
|
13
|
+
# Waiters are utility methods that poll for a particular state to occur
|
14
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
15
|
+
# interval defined for the service client.
|
16
|
+
#
|
17
|
+
# For a list of operations that can be waited for and the
|
18
|
+
# client methods called for each operation, see the table below or the
|
19
|
+
# {Client#wait_until} field documentation for the {Client}.
|
20
|
+
#
|
21
|
+
# # Invoking a Waiter
|
22
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
23
|
+
# is the waiter name, which is specific to the service client and indicates
|
24
|
+
# which operation is being waited for. The second parameter is a hash of
|
25
|
+
# parameters that are passed to the client method called by the waiter,
|
26
|
+
# which varies according to the waiter name.
|
27
|
+
#
|
28
|
+
# # Wait Failures
|
29
|
+
# To catch errors in a waiter, use WaiterFailed,
|
30
|
+
# as shown in the following example.
|
31
|
+
#
|
32
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
33
|
+
# puts "failed waiting for instance running: #{error.message}
|
34
|
+
# end
|
35
|
+
#
|
36
|
+
# # Configuring a Waiter
|
37
|
+
# Each waiter has a default polling interval and a maximum number of
|
38
|
+
# attempts it will make before returning control to your program.
|
39
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
40
|
+
# in your `#wait_until` call.
|
41
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
42
|
+
#
|
43
|
+
# client.wait_until(...) do |w|
|
44
|
+
# w.max_attempts = 5
|
45
|
+
# w.delay = 5
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# To disable wait failures, set the value of either of these parameters
|
49
|
+
# to `nil`.
|
50
|
+
#
|
51
|
+
# # Extending a Waiter
|
52
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
53
|
+
# triggered before each polling attempt and before waiting.
|
54
|
+
#
|
55
|
+
# The following example implements an exponential backoff in a waiter
|
56
|
+
# by doubling the amount of time to wait on every attempt.
|
57
|
+
#
|
58
|
+
# client.wait_until(...) do |w|
|
59
|
+
# w.interval = 0 # disable normal sleep
|
60
|
+
# w.before_wait do |n, resp|
|
61
|
+
# sleep(n ** 2)
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
# # Available Waiters
|
66
|
+
#
|
67
|
+
# The following table lists the valid waiter names, the operations they call,
|
68
|
+
# and the default `:delay` and `:max_attempts` values.
|
69
|
+
#
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | ------------------ | -------------------- | -------- | ------------- |
|
72
|
+
# | cluster_active | {Client#get_cluster} | 2 | 60 |
|
73
|
+
# | cluster_not_exists | {Client#get_cluster} | 2 | 60 |
|
74
|
+
#
|
75
|
+
module Waiters
|
76
|
+
|
77
|
+
# Wait until a Cluster is ACTIVE
|
78
|
+
class ClusterActive
|
79
|
+
|
80
|
+
# @param [Hash] options
|
81
|
+
# @option options [required, Client] :client
|
82
|
+
# @option options [Integer] :max_attempts (60)
|
83
|
+
# @option options [Integer] :delay (2)
|
84
|
+
# @option options [Proc] :before_attempt
|
85
|
+
# @option options [Proc] :before_wait
|
86
|
+
def initialize(options)
|
87
|
+
@client = options.fetch(:client)
|
88
|
+
@waiter = Aws::Waiters::Waiter.new({
|
89
|
+
max_attempts: 60,
|
90
|
+
delay: 2,
|
91
|
+
poller: Aws::Waiters::Poller.new(
|
92
|
+
operation_name: :get_cluster,
|
93
|
+
acceptors: [{
|
94
|
+
"matcher" => "path",
|
95
|
+
"argument" => "status",
|
96
|
+
"state" => "success",
|
97
|
+
"expected" => "ACTIVE"
|
98
|
+
}]
|
99
|
+
)
|
100
|
+
}.merge(options))
|
101
|
+
end
|
102
|
+
|
103
|
+
# @option (see Client#get_cluster)
|
104
|
+
# @return (see Client#get_cluster)
|
105
|
+
def wait(params = {})
|
106
|
+
@waiter.wait(client: @client, params: params)
|
107
|
+
end
|
108
|
+
|
109
|
+
# @api private
|
110
|
+
attr_reader :waiter
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
# Wait until a Cluster is gone
|
115
|
+
class ClusterNotExists
|
116
|
+
|
117
|
+
# @param [Hash] options
|
118
|
+
# @option options [required, Client] :client
|
119
|
+
# @option options [Integer] :max_attempts (60)
|
120
|
+
# @option options [Integer] :delay (2)
|
121
|
+
# @option options [Proc] :before_attempt
|
122
|
+
# @option options [Proc] :before_wait
|
123
|
+
def initialize(options)
|
124
|
+
@client = options.fetch(:client)
|
125
|
+
@waiter = Aws::Waiters::Waiter.new({
|
126
|
+
max_attempts: 60,
|
127
|
+
delay: 2,
|
128
|
+
poller: Aws::Waiters::Poller.new(
|
129
|
+
operation_name: :get_cluster,
|
130
|
+
acceptors: [{
|
131
|
+
"matcher" => "error",
|
132
|
+
"state" => "success",
|
133
|
+
"expected" => "ResourceNotFoundException"
|
134
|
+
}]
|
135
|
+
)
|
136
|
+
}.merge(options))
|
137
|
+
end
|
138
|
+
|
139
|
+
# @option (see Client#get_cluster)
|
140
|
+
# @return (see Client#get_cluster)
|
141
|
+
def wait(params = {})
|
142
|
+
@waiter.wait(client: @client, params: params)
|
143
|
+
end
|
144
|
+
|
145
|
+
# @api private
|
146
|
+
attr_reader :waiter
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
data/lib/aws-sdk-dsql.rb
ADDED
@@ -0,0 +1,62 @@
|
|
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
|
+
|
11
|
+
require 'aws-sdk-core'
|
12
|
+
require 'aws-sigv4'
|
13
|
+
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:dsql)
|
15
|
+
|
16
|
+
# This module provides support for Amazon Aurora DSQL. This module is available in the
|
17
|
+
# `aws-sdk-dsql` gem.
|
18
|
+
#
|
19
|
+
# # Client
|
20
|
+
#
|
21
|
+
# The {Client} class provides one method for each API operation. Operation
|
22
|
+
# methods each accept a hash of request parameters and return a response
|
23
|
+
# structure.
|
24
|
+
#
|
25
|
+
# dsql = Aws::DSQL::Client.new
|
26
|
+
# resp = dsql.create_cluster(params)
|
27
|
+
#
|
28
|
+
# See {Client} for more information.
|
29
|
+
#
|
30
|
+
# # Errors
|
31
|
+
#
|
32
|
+
# Errors returned from Amazon Aurora DSQL are defined in the
|
33
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
34
|
+
#
|
35
|
+
# begin
|
36
|
+
# # do stuff
|
37
|
+
# rescue Aws::DSQL::Errors::ServiceError
|
38
|
+
# # rescues all Amazon Aurora DSQL API errors
|
39
|
+
# end
|
40
|
+
#
|
41
|
+
# See {Errors} for more information.
|
42
|
+
#
|
43
|
+
# @!group service
|
44
|
+
module Aws::DSQL
|
45
|
+
autoload :Types, 'aws-sdk-dsql/types'
|
46
|
+
autoload :ClientApi, 'aws-sdk-dsql/client_api'
|
47
|
+
module Plugins
|
48
|
+
autoload :Endpoints, 'aws-sdk-dsql/plugins/endpoints.rb'
|
49
|
+
end
|
50
|
+
autoload :Client, 'aws-sdk-dsql/client'
|
51
|
+
autoload :Errors, 'aws-sdk-dsql/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-dsql/waiters'
|
53
|
+
autoload :Resource, 'aws-sdk-dsql/resource'
|
54
|
+
autoload :EndpointParameters, 'aws-sdk-dsql/endpoint_parameters'
|
55
|
+
autoload :EndpointProvider, 'aws-sdk-dsql/endpoint_provider'
|
56
|
+
autoload :Endpoints, 'aws-sdk-dsql/endpoints'
|
57
|
+
|
58
|
+
GEM_VERSION = '1.0.0'
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
require_relative 'aws-sdk-dsql/customizations'
|
data/sig/client.rbs
ADDED
@@ -0,0 +1,214 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module DSQL
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?log_formatter: untyped,
|
38
|
+
?log_level: Symbol,
|
39
|
+
?logger: untyped,
|
40
|
+
?max_attempts: Integer,
|
41
|
+
?profile: String,
|
42
|
+
?request_min_compression_size_bytes: Integer,
|
43
|
+
?retry_backoff: Proc,
|
44
|
+
?retry_base_delay: Float,
|
45
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
46
|
+
?retry_limit: Integer,
|
47
|
+
?retry_max_delay: Integer,
|
48
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
49
|
+
?sdk_ua_app_id: String,
|
50
|
+
?secret_access_key: String,
|
51
|
+
?session_token: String,
|
52
|
+
?sigv4a_signing_region_set: Array[String],
|
53
|
+
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: bool,
|
59
|
+
?endpoint_provider: untyped,
|
60
|
+
?http_proxy: String,
|
61
|
+
?http_open_timeout: (Float | Integer),
|
62
|
+
?http_read_timeout: (Float | Integer),
|
63
|
+
?http_idle_timeout: (Float | Integer),
|
64
|
+
?http_continue_timeout: (Float | Integer),
|
65
|
+
?ssl_timeout: (Float | Integer | nil),
|
66
|
+
?http_wire_trace: bool,
|
67
|
+
?ssl_verify_peer: bool,
|
68
|
+
?ssl_ca_bundle: String,
|
69
|
+
?ssl_ca_directory: String,
|
70
|
+
?ssl_ca_store: String,
|
71
|
+
?on_chunk_received: Proc,
|
72
|
+
?on_chunk_sent: Proc,
|
73
|
+
?raise_response_errors: bool
|
74
|
+
) -> instance
|
75
|
+
| (?Hash[Symbol, untyped]) -> instance
|
76
|
+
|
77
|
+
|
78
|
+
interface _CreateClusterResponseSuccess
|
79
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateClusterOutput]
|
80
|
+
def identifier: () -> ::String
|
81
|
+
def arn: () -> ::String
|
82
|
+
def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
|
83
|
+
def creation_time: () -> ::Time
|
84
|
+
def deletion_protection_enabled: () -> bool
|
85
|
+
end
|
86
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#create_cluster-instance_method
|
87
|
+
def create_cluster: (
|
88
|
+
?deletion_protection_enabled: bool,
|
89
|
+
?tags: Hash[::String, ::String],
|
90
|
+
?client_token: ::String
|
91
|
+
) -> _CreateClusterResponseSuccess
|
92
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateClusterResponseSuccess
|
93
|
+
|
94
|
+
interface _CreateMultiRegionClustersResponseSuccess
|
95
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateMultiRegionClustersOutput]
|
96
|
+
def linked_cluster_arns: () -> ::Array[::String]
|
97
|
+
end
|
98
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#create_multi_region_clusters-instance_method
|
99
|
+
def create_multi_region_clusters: (
|
100
|
+
linked_region_list: Array[::String],
|
101
|
+
?cluster_properties: Hash[::String, {
|
102
|
+
deletion_protection_enabled: bool?,
|
103
|
+
tags: Hash[::String, ::String]?
|
104
|
+
}],
|
105
|
+
witness_region: ::String,
|
106
|
+
?client_token: ::String
|
107
|
+
) -> _CreateMultiRegionClustersResponseSuccess
|
108
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMultiRegionClustersResponseSuccess
|
109
|
+
|
110
|
+
interface _DeleteClusterResponseSuccess
|
111
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteClusterOutput]
|
112
|
+
def identifier: () -> ::String
|
113
|
+
def arn: () -> ::String
|
114
|
+
def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
|
115
|
+
def creation_time: () -> ::Time
|
116
|
+
def deletion_protection_enabled: () -> bool
|
117
|
+
end
|
118
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#delete_cluster-instance_method
|
119
|
+
def delete_cluster: (
|
120
|
+
identifier: ::String,
|
121
|
+
?client_token: ::String
|
122
|
+
) -> _DeleteClusterResponseSuccess
|
123
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteClusterResponseSuccess
|
124
|
+
|
125
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#delete_multi_region_clusters-instance_method
|
126
|
+
def delete_multi_region_clusters: (
|
127
|
+
linked_cluster_arns: Array[::String],
|
128
|
+
?client_token: ::String
|
129
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
130
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
131
|
+
|
132
|
+
interface _GetClusterResponseSuccess
|
133
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetClusterOutput]
|
134
|
+
def identifier: () -> ::String
|
135
|
+
def arn: () -> ::String
|
136
|
+
def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
|
137
|
+
def creation_time: () -> ::Time
|
138
|
+
def deletion_protection_enabled: () -> bool
|
139
|
+
def witness_region: () -> ::String
|
140
|
+
def linked_cluster_arns: () -> ::Array[::String]
|
141
|
+
end
|
142
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#get_cluster-instance_method
|
143
|
+
def get_cluster: (
|
144
|
+
identifier: ::String
|
145
|
+
) -> _GetClusterResponseSuccess
|
146
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetClusterResponseSuccess
|
147
|
+
|
148
|
+
interface _ListClustersResponseSuccess
|
149
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListClustersOutput]
|
150
|
+
def next_token: () -> ::String
|
151
|
+
def clusters: () -> ::Array[Types::ClusterSummary]
|
152
|
+
end
|
153
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#list_clusters-instance_method
|
154
|
+
def list_clusters: (
|
155
|
+
?max_results: ::Integer,
|
156
|
+
?next_token: ::String
|
157
|
+
) -> _ListClustersResponseSuccess
|
158
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListClustersResponseSuccess
|
159
|
+
|
160
|
+
interface _ListTagsForResourceResponseSuccess
|
161
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceOutput]
|
162
|
+
def tags: () -> ::Hash[::String, ::String]
|
163
|
+
end
|
164
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#list_tags_for_resource-instance_method
|
165
|
+
def list_tags_for_resource: (
|
166
|
+
resource_arn: ::String
|
167
|
+
) -> _ListTagsForResourceResponseSuccess
|
168
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
169
|
+
|
170
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#tag_resource-instance_method
|
171
|
+
def tag_resource: (
|
172
|
+
resource_arn: ::String,
|
173
|
+
tags: Hash[::String, ::String]
|
174
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
175
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
176
|
+
|
177
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#untag_resource-instance_method
|
178
|
+
def untag_resource: (
|
179
|
+
resource_arn: ::String,
|
180
|
+
tag_keys: Array[::String]
|
181
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
182
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
183
|
+
|
184
|
+
interface _UpdateClusterResponseSuccess
|
185
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateClusterOutput]
|
186
|
+
def identifier: () -> ::String
|
187
|
+
def arn: () -> ::String
|
188
|
+
def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
|
189
|
+
def creation_time: () -> ::Time
|
190
|
+
def deletion_protection_enabled: () -> bool
|
191
|
+
def witness_region: () -> ::String
|
192
|
+
def linked_cluster_arns: () -> ::Array[::String]
|
193
|
+
end
|
194
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#update_cluster-instance_method
|
195
|
+
def update_cluster: (
|
196
|
+
identifier: ::String,
|
197
|
+
?deletion_protection_enabled: bool,
|
198
|
+
?client_token: ::String
|
199
|
+
) -> _UpdateClusterResponseSuccess
|
200
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateClusterResponseSuccess
|
201
|
+
|
202
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Client.html#wait_until-instance_method
|
203
|
+
def wait_until: (:cluster_active waiter_name,
|
204
|
+
identifier: ::String
|
205
|
+
) -> Client::_GetClusterResponseSuccess
|
206
|
+
| (:cluster_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetClusterResponseSuccess
|
207
|
+
| (:cluster_not_exists waiter_name,
|
208
|
+
identifier: ::String
|
209
|
+
) -> Client::_GetClusterResponseSuccess
|
210
|
+
| (:cluster_not_exists waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetClusterResponseSuccess
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module DSQL
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class AccessDeniedException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class ConflictException < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
def resource_id: () -> ::String
|
20
|
+
def resource_type: () -> ::String
|
21
|
+
end
|
22
|
+
class InternalServerException < ::Aws::Errors::ServiceError
|
23
|
+
def message: () -> ::String
|
24
|
+
def retry_after_seconds: () -> ::String
|
25
|
+
end
|
26
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
27
|
+
def message: () -> ::String
|
28
|
+
def resource_id: () -> ::String
|
29
|
+
def resource_type: () -> ::String
|
30
|
+
end
|
31
|
+
class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
|
32
|
+
def message: () -> ::String
|
33
|
+
def resource_id: () -> ::String
|
34
|
+
def resource_type: () -> ::String
|
35
|
+
def service_code: () -> ::String
|
36
|
+
def quota_code: () -> ::String
|
37
|
+
end
|
38
|
+
class ThrottlingException < ::Aws::Errors::ServiceError
|
39
|
+
def message: () -> ::String
|
40
|
+
def service_code: () -> ::String
|
41
|
+
def quota_code: () -> ::String
|
42
|
+
def retry_after_seconds: () -> ::String
|
43
|
+
end
|
44
|
+
class ValidationException < ::Aws::Errors::ServiceError
|
45
|
+
def message: () -> ::String
|
46
|
+
def reason: () -> ::String
|
47
|
+
def field_list: () -> ::String
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/sig/resource.rbs
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module DSQL
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Resource.html
|
11
|
+
class Resource
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DSQL/Resource.html#initialize-instance_method
|
13
|
+
def initialize: (
|
14
|
+
?client: Client,
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?log_formatter: untyped,
|
38
|
+
?log_level: Symbol,
|
39
|
+
?logger: untyped,
|
40
|
+
?max_attempts: Integer,
|
41
|
+
?profile: String,
|
42
|
+
?request_min_compression_size_bytes: Integer,
|
43
|
+
?retry_backoff: Proc,
|
44
|
+
?retry_base_delay: Float,
|
45
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
46
|
+
?retry_limit: Integer,
|
47
|
+
?retry_max_delay: Integer,
|
48
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
49
|
+
?sdk_ua_app_id: String,
|
50
|
+
?secret_access_key: String,
|
51
|
+
?session_token: String,
|
52
|
+
?sigv4a_signing_region_set: Array[String],
|
53
|
+
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: bool,
|
59
|
+
?endpoint_provider: untyped,
|
60
|
+
?http_proxy: String,
|
61
|
+
?http_open_timeout: (Float | Integer),
|
62
|
+
?http_read_timeout: (Float | Integer),
|
63
|
+
?http_idle_timeout: (Float | Integer),
|
64
|
+
?http_continue_timeout: (Float | Integer),
|
65
|
+
?ssl_timeout: (Float | Integer | nil),
|
66
|
+
?http_wire_trace: bool,
|
67
|
+
?ssl_verify_peer: bool,
|
68
|
+
?ssl_ca_bundle: String,
|
69
|
+
?ssl_ca_directory: String,
|
70
|
+
?ssl_ca_store: String,
|
71
|
+
?on_chunk_received: Proc,
|
72
|
+
?on_chunk_sent: Proc,
|
73
|
+
?raise_response_errors: bool
|
74
|
+
) -> void
|
75
|
+
| (?Hash[Symbol, untyped]) -> void
|
76
|
+
|
77
|
+
def client: () -> Client
|
78
|
+
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|