aws-sdk-neptunegraph 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 +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-neptunegraph/client.rb +1704 -0
- data/lib/aws-sdk-neptunegraph/client_api.rb +853 -0
- data/lib/aws-sdk-neptunegraph/customizations.rb +0 -0
- data/lib/aws-sdk-neptunegraph/endpoint_parameters.rb +77 -0
- data/lib/aws-sdk-neptunegraph/endpoint_provider.rb +79 -0
- data/lib/aws-sdk-neptunegraph/endpoints.rb +346 -0
- data/lib/aws-sdk-neptunegraph/errors.rb +176 -0
- data/lib/aws-sdk-neptunegraph/plugins/endpoints.rb +113 -0
- data/lib/aws-sdk-neptunegraph/resource.rb +26 -0
- data/lib/aws-sdk-neptunegraph/types.rb +2119 -0
- data/lib/aws-sdk-neptunegraph.rb +57 -0
- metadata +94 -0
File without changes
|
@@ -0,0 +1,77 @@
|
|
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::NeptuneGraph
|
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_fips
|
19
|
+
# 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.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_dual_stack
|
24
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY 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
|
+
# @!attribute api_type
|
34
|
+
# Parameter to determine whether current API is a control plane or dataplane API
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
EndpointParameters = Struct.new(
|
39
|
+
:region,
|
40
|
+
:use_fips,
|
41
|
+
:use_dual_stack,
|
42
|
+
:endpoint,
|
43
|
+
:api_type,
|
44
|
+
) do
|
45
|
+
include Aws::Structure
|
46
|
+
|
47
|
+
# @api private
|
48
|
+
class << self
|
49
|
+
PARAM_MAP = {
|
50
|
+
'Region' => :region,
|
51
|
+
'UseFIPS' => :use_fips,
|
52
|
+
'UseDualStack' => :use_dual_stack,
|
53
|
+
'Endpoint' => :endpoint,
|
54
|
+
'ApiType' => :api_type,
|
55
|
+
}.freeze
|
56
|
+
end
|
57
|
+
|
58
|
+
def initialize(options = {})
|
59
|
+
self[:region] = options[:region]
|
60
|
+
self[:use_fips] = options[:use_fips]
|
61
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
62
|
+
if self[:use_fips].nil?
|
63
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
64
|
+
end
|
65
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
66
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
67
|
+
if self[:use_dual_stack].nil?
|
68
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
69
|
+
end
|
70
|
+
self[:endpoint] = options[:endpoint]
|
71
|
+
self[:api_type] = options[:api_type]
|
72
|
+
if self[:api_type].nil?
|
73
|
+
raise ArgumentError, "Missing required EndpointParameter: :api_type"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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::NeptuneGraph
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_fips = parameters.use_fips
|
15
|
+
use_dual_stack = parameters.use_dual_stack
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
api_type = parameters.api_type
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.set?(region)
|
28
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
30
|
+
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"))
|
31
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "ControlPlane")
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://neptune-graph-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "DataPlane")
|
35
|
+
raise ArgumentError, "Invalid Configuration: fips endpoint is not supported for this API"
|
36
|
+
end
|
37
|
+
raise ArgumentError, "Invalid Configuration: Unknown ApiType"
|
38
|
+
end
|
39
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
40
|
+
end
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
43
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "ControlPlane")
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://neptune-graph-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
45
|
+
end
|
46
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "DataPlane")
|
47
|
+
raise ArgumentError, "Invalid Configuration: fips endpoint is not supported for this API"
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Unknown ApiType"
|
50
|
+
end
|
51
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
52
|
+
end
|
53
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
54
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
55
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "ControlPlane")
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://neptune-graph.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
57
|
+
end
|
58
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "DataPlane")
|
59
|
+
return Aws::Endpoints::Endpoint.new(url: "https://neptune-graph.#{region}.on.aws", headers: {}, properties: {})
|
60
|
+
end
|
61
|
+
raise ArgumentError, "Invalid Configuration: Unknown ApiType"
|
62
|
+
end
|
63
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
64
|
+
end
|
65
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "ControlPlane")
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://neptune-graph.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
67
|
+
end
|
68
|
+
if Aws::Endpoints::Matchers.string_equals?(api_type, "DataPlane")
|
69
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{region}.neptune-graph.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
70
|
+
end
|
71
|
+
raise ArgumentError, "Invalid Configuration: Unknown ApiType"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
75
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,346 @@
|
|
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
|
+
module Aws::NeptuneGraph
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class CancelImportTask
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
api_type: "ControlPlane",
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
class CreateGraph
|
31
|
+
def self.build(context)
|
32
|
+
unless context.config.regional_endpoint
|
33
|
+
endpoint = context.config.endpoint.to_s
|
34
|
+
end
|
35
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
36
|
+
region: context.config.region,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
39
|
+
endpoint: endpoint,
|
40
|
+
api_type: "ControlPlane",
|
41
|
+
)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class CreateGraphSnapshot
|
46
|
+
def self.build(context)
|
47
|
+
unless context.config.regional_endpoint
|
48
|
+
endpoint = context.config.endpoint.to_s
|
49
|
+
end
|
50
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
51
|
+
region: context.config.region,
|
52
|
+
use_fips: context.config.use_fips_endpoint,
|
53
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
54
|
+
endpoint: endpoint,
|
55
|
+
api_type: "ControlPlane",
|
56
|
+
)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class CreateGraphUsingImportTask
|
61
|
+
def self.build(context)
|
62
|
+
unless context.config.regional_endpoint
|
63
|
+
endpoint = context.config.endpoint.to_s
|
64
|
+
end
|
65
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
66
|
+
region: context.config.region,
|
67
|
+
use_fips: context.config.use_fips_endpoint,
|
68
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
69
|
+
endpoint: endpoint,
|
70
|
+
api_type: "ControlPlane",
|
71
|
+
)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
class CreatePrivateGraphEndpoint
|
76
|
+
def self.build(context)
|
77
|
+
unless context.config.regional_endpoint
|
78
|
+
endpoint = context.config.endpoint.to_s
|
79
|
+
end
|
80
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
81
|
+
region: context.config.region,
|
82
|
+
use_fips: context.config.use_fips_endpoint,
|
83
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
84
|
+
endpoint: endpoint,
|
85
|
+
api_type: "ControlPlane",
|
86
|
+
)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
class DeleteGraph
|
91
|
+
def self.build(context)
|
92
|
+
unless context.config.regional_endpoint
|
93
|
+
endpoint = context.config.endpoint.to_s
|
94
|
+
end
|
95
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
96
|
+
region: context.config.region,
|
97
|
+
use_fips: context.config.use_fips_endpoint,
|
98
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
99
|
+
endpoint: endpoint,
|
100
|
+
api_type: "ControlPlane",
|
101
|
+
)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class DeleteGraphSnapshot
|
106
|
+
def self.build(context)
|
107
|
+
unless context.config.regional_endpoint
|
108
|
+
endpoint = context.config.endpoint.to_s
|
109
|
+
end
|
110
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
111
|
+
region: context.config.region,
|
112
|
+
use_fips: context.config.use_fips_endpoint,
|
113
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
114
|
+
endpoint: endpoint,
|
115
|
+
api_type: "ControlPlane",
|
116
|
+
)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
class DeletePrivateGraphEndpoint
|
121
|
+
def self.build(context)
|
122
|
+
unless context.config.regional_endpoint
|
123
|
+
endpoint = context.config.endpoint.to_s
|
124
|
+
end
|
125
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
126
|
+
region: context.config.region,
|
127
|
+
use_fips: context.config.use_fips_endpoint,
|
128
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
129
|
+
endpoint: endpoint,
|
130
|
+
api_type: "ControlPlane",
|
131
|
+
)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class GetGraph
|
136
|
+
def self.build(context)
|
137
|
+
unless context.config.regional_endpoint
|
138
|
+
endpoint = context.config.endpoint.to_s
|
139
|
+
end
|
140
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
141
|
+
region: context.config.region,
|
142
|
+
use_fips: context.config.use_fips_endpoint,
|
143
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
144
|
+
endpoint: endpoint,
|
145
|
+
api_type: "ControlPlane",
|
146
|
+
)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
class GetGraphSnapshot
|
151
|
+
def self.build(context)
|
152
|
+
unless context.config.regional_endpoint
|
153
|
+
endpoint = context.config.endpoint.to_s
|
154
|
+
end
|
155
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
156
|
+
region: context.config.region,
|
157
|
+
use_fips: context.config.use_fips_endpoint,
|
158
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
159
|
+
endpoint: endpoint,
|
160
|
+
api_type: "ControlPlane",
|
161
|
+
)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class GetImportTask
|
166
|
+
def self.build(context)
|
167
|
+
unless context.config.regional_endpoint
|
168
|
+
endpoint = context.config.endpoint.to_s
|
169
|
+
end
|
170
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
171
|
+
region: context.config.region,
|
172
|
+
use_fips: context.config.use_fips_endpoint,
|
173
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
174
|
+
endpoint: endpoint,
|
175
|
+
api_type: "ControlPlane",
|
176
|
+
)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
class GetPrivateGraphEndpoint
|
181
|
+
def self.build(context)
|
182
|
+
unless context.config.regional_endpoint
|
183
|
+
endpoint = context.config.endpoint.to_s
|
184
|
+
end
|
185
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
186
|
+
region: context.config.region,
|
187
|
+
use_fips: context.config.use_fips_endpoint,
|
188
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
189
|
+
endpoint: endpoint,
|
190
|
+
api_type: "ControlPlane",
|
191
|
+
)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
class ListGraphSnapshots
|
196
|
+
def self.build(context)
|
197
|
+
unless context.config.regional_endpoint
|
198
|
+
endpoint = context.config.endpoint.to_s
|
199
|
+
end
|
200
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
201
|
+
region: context.config.region,
|
202
|
+
use_fips: context.config.use_fips_endpoint,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
endpoint: endpoint,
|
205
|
+
api_type: "ControlPlane",
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class ListGraphs
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_fips: context.config.use_fips_endpoint,
|
218
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
api_type: "ControlPlane",
|
221
|
+
)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
class ListImportTasks
|
226
|
+
def self.build(context)
|
227
|
+
unless context.config.regional_endpoint
|
228
|
+
endpoint = context.config.endpoint.to_s
|
229
|
+
end
|
230
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
231
|
+
region: context.config.region,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
234
|
+
endpoint: endpoint,
|
235
|
+
api_type: "ControlPlane",
|
236
|
+
)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
class ListPrivateGraphEndpoints
|
241
|
+
def self.build(context)
|
242
|
+
unless context.config.regional_endpoint
|
243
|
+
endpoint = context.config.endpoint.to_s
|
244
|
+
end
|
245
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
246
|
+
region: context.config.region,
|
247
|
+
use_fips: context.config.use_fips_endpoint,
|
248
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
249
|
+
endpoint: endpoint,
|
250
|
+
api_type: "ControlPlane",
|
251
|
+
)
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
class ListTagsForResource
|
256
|
+
def self.build(context)
|
257
|
+
unless context.config.regional_endpoint
|
258
|
+
endpoint = context.config.endpoint.to_s
|
259
|
+
end
|
260
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
261
|
+
region: context.config.region,
|
262
|
+
use_fips: context.config.use_fips_endpoint,
|
263
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
264
|
+
endpoint: endpoint,
|
265
|
+
api_type: "ControlPlane",
|
266
|
+
)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
class ResetGraph
|
271
|
+
def self.build(context)
|
272
|
+
unless context.config.regional_endpoint
|
273
|
+
endpoint = context.config.endpoint.to_s
|
274
|
+
end
|
275
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
276
|
+
region: context.config.region,
|
277
|
+
use_fips: context.config.use_fips_endpoint,
|
278
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
279
|
+
endpoint: endpoint,
|
280
|
+
api_type: "ControlPlane",
|
281
|
+
)
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
class RestoreGraphFromSnapshot
|
286
|
+
def self.build(context)
|
287
|
+
unless context.config.regional_endpoint
|
288
|
+
endpoint = context.config.endpoint.to_s
|
289
|
+
end
|
290
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
291
|
+
region: context.config.region,
|
292
|
+
use_fips: context.config.use_fips_endpoint,
|
293
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
294
|
+
endpoint: endpoint,
|
295
|
+
api_type: "ControlPlane",
|
296
|
+
)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class TagResource
|
301
|
+
def self.build(context)
|
302
|
+
unless context.config.regional_endpoint
|
303
|
+
endpoint = context.config.endpoint.to_s
|
304
|
+
end
|
305
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
306
|
+
region: context.config.region,
|
307
|
+
use_fips: context.config.use_fips_endpoint,
|
308
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
309
|
+
endpoint: endpoint,
|
310
|
+
api_type: "ControlPlane",
|
311
|
+
)
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
class UntagResource
|
316
|
+
def self.build(context)
|
317
|
+
unless context.config.regional_endpoint
|
318
|
+
endpoint = context.config.endpoint.to_s
|
319
|
+
end
|
320
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
321
|
+
region: context.config.region,
|
322
|
+
use_fips: context.config.use_fips_endpoint,
|
323
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
324
|
+
endpoint: endpoint,
|
325
|
+
api_type: "ControlPlane",
|
326
|
+
)
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
class UpdateGraph
|
331
|
+
def self.build(context)
|
332
|
+
unless context.config.regional_endpoint
|
333
|
+
endpoint = context.config.endpoint.to_s
|
334
|
+
end
|
335
|
+
Aws::NeptuneGraph::EndpointParameters.new(
|
336
|
+
region: context.config.region,
|
337
|
+
use_fips: context.config.use_fips_endpoint,
|
338
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
339
|
+
endpoint: endpoint,
|
340
|
+
api_type: "ControlPlane",
|
341
|
+
)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
end
|
346
|
+
end
|
@@ -0,0 +1,176 @@
|
|
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::NeptuneGraph
|
11
|
+
|
12
|
+
# When NeptuneGraph returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::NeptuneGraph::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all NeptuneGraph errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::NeptuneGraph::Errors::ServiceError
|
20
|
+
# # rescues all NeptuneGraph API errors
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# ## Request Context
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
26
|
+
# information about the request that generated the error.
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
28
|
+
#
|
29
|
+
# ## Error Classes
|
30
|
+
# * {ConflictException}
|
31
|
+
# * {InternalServerException}
|
32
|
+
# * {ResourceNotFoundException}
|
33
|
+
# * {ServiceQuotaExceededException}
|
34
|
+
# * {ThrottlingException}
|
35
|
+
# * {ValidationException}
|
36
|
+
#
|
37
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
38
|
+
# if they are not defined above.
|
39
|
+
module Errors
|
40
|
+
|
41
|
+
extend Aws::Errors::DynamicErrors
|
42
|
+
|
43
|
+
class ConflictException < ServiceError
|
44
|
+
|
45
|
+
# @param [Seahorse::Client::RequestContext] context
|
46
|
+
# @param [String] message
|
47
|
+
# @param [Aws::NeptuneGraph::Types::ConflictException] data
|
48
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
49
|
+
super(context, message, data)
|
50
|
+
end
|
51
|
+
|
52
|
+
# @return [String]
|
53
|
+
def message
|
54
|
+
@message || @data[:message]
|
55
|
+
end
|
56
|
+
|
57
|
+
# @return [String]
|
58
|
+
def reason
|
59
|
+
@data[:reason]
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
class InternalServerException < ServiceError
|
64
|
+
|
65
|
+
# @param [Seahorse::Client::RequestContext] context
|
66
|
+
# @param [String] message
|
67
|
+
# @param [Aws::NeptuneGraph::Types::InternalServerException] data
|
68
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
69
|
+
super(context, message, data)
|
70
|
+
end
|
71
|
+
|
72
|
+
# @return [String]
|
73
|
+
def message
|
74
|
+
@message || @data[:message]
|
75
|
+
end
|
76
|
+
|
77
|
+
def retryable?
|
78
|
+
true
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
class ResourceNotFoundException < ServiceError
|
83
|
+
|
84
|
+
# @param [Seahorse::Client::RequestContext] context
|
85
|
+
# @param [String] message
|
86
|
+
# @param [Aws::NeptuneGraph::Types::ResourceNotFoundException] data
|
87
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
88
|
+
super(context, message, data)
|
89
|
+
end
|
90
|
+
|
91
|
+
# @return [String]
|
92
|
+
def message
|
93
|
+
@message || @data[:message]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class ServiceQuotaExceededException < ServiceError
|
98
|
+
|
99
|
+
# @param [Seahorse::Client::RequestContext] context
|
100
|
+
# @param [String] message
|
101
|
+
# @param [Aws::NeptuneGraph::Types::ServiceQuotaExceededException] data
|
102
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
103
|
+
super(context, message, data)
|
104
|
+
end
|
105
|
+
|
106
|
+
# @return [String]
|
107
|
+
def message
|
108
|
+
@message || @data[:message]
|
109
|
+
end
|
110
|
+
|
111
|
+
# @return [String]
|
112
|
+
def resource_id
|
113
|
+
@data[:resource_id]
|
114
|
+
end
|
115
|
+
|
116
|
+
# @return [String]
|
117
|
+
def resource_type
|
118
|
+
@data[:resource_type]
|
119
|
+
end
|
120
|
+
|
121
|
+
# @return [String]
|
122
|
+
def service_code
|
123
|
+
@data[:service_code]
|
124
|
+
end
|
125
|
+
|
126
|
+
# @return [String]
|
127
|
+
def quota_code
|
128
|
+
@data[:quota_code]
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class ThrottlingException < ServiceError
|
133
|
+
|
134
|
+
# @param [Seahorse::Client::RequestContext] context
|
135
|
+
# @param [String] message
|
136
|
+
# @param [Aws::NeptuneGraph::Types::ThrottlingException] data
|
137
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
138
|
+
super(context, message, data)
|
139
|
+
end
|
140
|
+
|
141
|
+
# @return [String]
|
142
|
+
def message
|
143
|
+
@message || @data[:message]
|
144
|
+
end
|
145
|
+
|
146
|
+
def retryable?
|
147
|
+
true
|
148
|
+
end
|
149
|
+
|
150
|
+
def throttling?
|
151
|
+
true
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class ValidationException < ServiceError
|
156
|
+
|
157
|
+
# @param [Seahorse::Client::RequestContext] context
|
158
|
+
# @param [String] message
|
159
|
+
# @param [Aws::NeptuneGraph::Types::ValidationException] data
|
160
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
161
|
+
super(context, message, data)
|
162
|
+
end
|
163
|
+
|
164
|
+
# @return [String]
|
165
|
+
def message
|
166
|
+
@message || @data[:message]
|
167
|
+
end
|
168
|
+
|
169
|
+
# @return [String]
|
170
|
+
def reason
|
171
|
+
@data[:reason]
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
end
|