aws-sdk-bcmdataexports 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-bcmdataexports/client.rb +1003 -0
- data/lib/aws-sdk-bcmdataexports/client_api.rb +490 -0
- data/lib/aws-sdk-bcmdataexports/customizations.rb +0 -0
- data/lib/aws-sdk-bcmdataexports/endpoint_parameters.rb +54 -0
- data/lib/aws-sdk-bcmdataexports/endpoint_provider.rb +56 -0
- data/lib/aws-sdk-bcmdataexports/endpoints.rb +172 -0
- data/lib/aws-sdk-bcmdataexports/errors.rb +168 -0
- data/lib/aws-sdk-bcmdataexports/plugins/endpoints.rb +92 -0
- data/lib/aws-sdk-bcmdataexports/resource.rb +26 -0
- data/lib/aws-sdk-bcmdataexports/types.rb +919 -0
- data/lib/aws-sdk-bcmdataexports.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,172 @@
|
|
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::BCMDataExports
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class CreateExport
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class DeleteExport
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_fips: context.config.use_fips_endpoint,
|
36
|
+
endpoint: endpoint,
|
37
|
+
)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
class GetExecution
|
42
|
+
def self.build(context)
|
43
|
+
unless context.config.regional_endpoint
|
44
|
+
endpoint = context.config.endpoint.to_s
|
45
|
+
end
|
46
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
47
|
+
region: context.config.region,
|
48
|
+
use_fips: context.config.use_fips_endpoint,
|
49
|
+
endpoint: endpoint,
|
50
|
+
)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
class GetExport
|
55
|
+
def self.build(context)
|
56
|
+
unless context.config.regional_endpoint
|
57
|
+
endpoint = context.config.endpoint.to_s
|
58
|
+
end
|
59
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
60
|
+
region: context.config.region,
|
61
|
+
use_fips: context.config.use_fips_endpoint,
|
62
|
+
endpoint: endpoint,
|
63
|
+
)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class GetTable
|
68
|
+
def self.build(context)
|
69
|
+
unless context.config.regional_endpoint
|
70
|
+
endpoint = context.config.endpoint.to_s
|
71
|
+
end
|
72
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
73
|
+
region: context.config.region,
|
74
|
+
use_fips: context.config.use_fips_endpoint,
|
75
|
+
endpoint: endpoint,
|
76
|
+
)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class ListExecutions
|
81
|
+
def self.build(context)
|
82
|
+
unless context.config.regional_endpoint
|
83
|
+
endpoint = context.config.endpoint.to_s
|
84
|
+
end
|
85
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
86
|
+
region: context.config.region,
|
87
|
+
use_fips: context.config.use_fips_endpoint,
|
88
|
+
endpoint: endpoint,
|
89
|
+
)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class ListExports
|
94
|
+
def self.build(context)
|
95
|
+
unless context.config.regional_endpoint
|
96
|
+
endpoint = context.config.endpoint.to_s
|
97
|
+
end
|
98
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
99
|
+
region: context.config.region,
|
100
|
+
use_fips: context.config.use_fips_endpoint,
|
101
|
+
endpoint: endpoint,
|
102
|
+
)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
class ListTables
|
107
|
+
def self.build(context)
|
108
|
+
unless context.config.regional_endpoint
|
109
|
+
endpoint = context.config.endpoint.to_s
|
110
|
+
end
|
111
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
112
|
+
region: context.config.region,
|
113
|
+
use_fips: context.config.use_fips_endpoint,
|
114
|
+
endpoint: endpoint,
|
115
|
+
)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
class ListTagsForResource
|
120
|
+
def self.build(context)
|
121
|
+
unless context.config.regional_endpoint
|
122
|
+
endpoint = context.config.endpoint.to_s
|
123
|
+
end
|
124
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
125
|
+
region: context.config.region,
|
126
|
+
use_fips: context.config.use_fips_endpoint,
|
127
|
+
endpoint: endpoint,
|
128
|
+
)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class TagResource
|
133
|
+
def self.build(context)
|
134
|
+
unless context.config.regional_endpoint
|
135
|
+
endpoint = context.config.endpoint.to_s
|
136
|
+
end
|
137
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
138
|
+
region: context.config.region,
|
139
|
+
use_fips: context.config.use_fips_endpoint,
|
140
|
+
endpoint: endpoint,
|
141
|
+
)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class UntagResource
|
146
|
+
def self.build(context)
|
147
|
+
unless context.config.regional_endpoint
|
148
|
+
endpoint = context.config.endpoint.to_s
|
149
|
+
end
|
150
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
151
|
+
region: context.config.region,
|
152
|
+
use_fips: context.config.use_fips_endpoint,
|
153
|
+
endpoint: endpoint,
|
154
|
+
)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
class UpdateExport
|
159
|
+
def self.build(context)
|
160
|
+
unless context.config.regional_endpoint
|
161
|
+
endpoint = context.config.endpoint.to_s
|
162
|
+
end
|
163
|
+
Aws::BCMDataExports::EndpointParameters.new(
|
164
|
+
region: context.config.region,
|
165
|
+
use_fips: context.config.use_fips_endpoint,
|
166
|
+
endpoint: endpoint,
|
167
|
+
)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
end
|
172
|
+
end
|
@@ -0,0 +1,168 @@
|
|
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::BCMDataExports
|
11
|
+
|
12
|
+
# When BCMDataExports returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::BCMDataExports::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all BCMDataExports errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::BCMDataExports::Errors::ServiceError
|
20
|
+
# # rescues all BCMDataExports 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
|
+
# * {InternalServerException}
|
31
|
+
# * {ResourceNotFoundException}
|
32
|
+
# * {ServiceQuotaExceededException}
|
33
|
+
# * {ThrottlingException}
|
34
|
+
# * {ValidationException}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
38
|
+
module Errors
|
39
|
+
|
40
|
+
extend Aws::Errors::DynamicErrors
|
41
|
+
|
42
|
+
class InternalServerException < ServiceError
|
43
|
+
|
44
|
+
# @param [Seahorse::Client::RequestContext] context
|
45
|
+
# @param [String] message
|
46
|
+
# @param [Aws::BCMDataExports::Types::InternalServerException] data
|
47
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
48
|
+
super(context, message, data)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @return [String]
|
52
|
+
def message
|
53
|
+
@message || @data[:message]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ResourceNotFoundException < ServiceError
|
58
|
+
|
59
|
+
# @param [Seahorse::Client::RequestContext] context
|
60
|
+
# @param [String] message
|
61
|
+
# @param [Aws::BCMDataExports::Types::ResourceNotFoundException] data
|
62
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
63
|
+
super(context, message, data)
|
64
|
+
end
|
65
|
+
|
66
|
+
# @return [String]
|
67
|
+
def message
|
68
|
+
@message || @data[:message]
|
69
|
+
end
|
70
|
+
|
71
|
+
# @return [String]
|
72
|
+
def resource_id
|
73
|
+
@data[:resource_id]
|
74
|
+
end
|
75
|
+
|
76
|
+
# @return [String]
|
77
|
+
def resource_type
|
78
|
+
@data[:resource_type]
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
class ServiceQuotaExceededException < ServiceError
|
83
|
+
|
84
|
+
# @param [Seahorse::Client::RequestContext] context
|
85
|
+
# @param [String] message
|
86
|
+
# @param [Aws::BCMDataExports::Types::ServiceQuotaExceededException] 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
|
+
|
96
|
+
# @return [String]
|
97
|
+
def quota_code
|
98
|
+
@data[:quota_code]
|
99
|
+
end
|
100
|
+
|
101
|
+
# @return [String]
|
102
|
+
def resource_id
|
103
|
+
@data[:resource_id]
|
104
|
+
end
|
105
|
+
|
106
|
+
# @return [String]
|
107
|
+
def resource_type
|
108
|
+
@data[:resource_type]
|
109
|
+
end
|
110
|
+
|
111
|
+
# @return [String]
|
112
|
+
def service_code
|
113
|
+
@data[:service_code]
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class ThrottlingException < ServiceError
|
118
|
+
|
119
|
+
# @param [Seahorse::Client::RequestContext] context
|
120
|
+
# @param [String] message
|
121
|
+
# @param [Aws::BCMDataExports::Types::ThrottlingException] data
|
122
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
123
|
+
super(context, message, data)
|
124
|
+
end
|
125
|
+
|
126
|
+
# @return [String]
|
127
|
+
def message
|
128
|
+
@message || @data[:message]
|
129
|
+
end
|
130
|
+
|
131
|
+
# @return [String]
|
132
|
+
def quota_code
|
133
|
+
@data[:quota_code]
|
134
|
+
end
|
135
|
+
|
136
|
+
# @return [String]
|
137
|
+
def service_code
|
138
|
+
@data[:service_code]
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
class ValidationException < ServiceError
|
143
|
+
|
144
|
+
# @param [Seahorse::Client::RequestContext] context
|
145
|
+
# @param [String] message
|
146
|
+
# @param [Aws::BCMDataExports::Types::ValidationException] data
|
147
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
148
|
+
super(context, message, data)
|
149
|
+
end
|
150
|
+
|
151
|
+
# @return [String]
|
152
|
+
def fields
|
153
|
+
@data[:fields]
|
154
|
+
end
|
155
|
+
|
156
|
+
# @return [String]
|
157
|
+
def message
|
158
|
+
@message || @data[:message]
|
159
|
+
end
|
160
|
+
|
161
|
+
# @return [String]
|
162
|
+
def reason
|
163
|
+
@data[:reason]
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
end
|
168
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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::BCMDataExports
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::BCMDataExports::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::BCMDataExports::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::BCMDataExports::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :create_export
|
60
|
+
Aws::BCMDataExports::Endpoints::CreateExport.build(context)
|
61
|
+
when :delete_export
|
62
|
+
Aws::BCMDataExports::Endpoints::DeleteExport.build(context)
|
63
|
+
when :get_execution
|
64
|
+
Aws::BCMDataExports::Endpoints::GetExecution.build(context)
|
65
|
+
when :get_export
|
66
|
+
Aws::BCMDataExports::Endpoints::GetExport.build(context)
|
67
|
+
when :get_table
|
68
|
+
Aws::BCMDataExports::Endpoints::GetTable.build(context)
|
69
|
+
when :list_executions
|
70
|
+
Aws::BCMDataExports::Endpoints::ListExecutions.build(context)
|
71
|
+
when :list_exports
|
72
|
+
Aws::BCMDataExports::Endpoints::ListExports.build(context)
|
73
|
+
when :list_tables
|
74
|
+
Aws::BCMDataExports::Endpoints::ListTables.build(context)
|
75
|
+
when :list_tags_for_resource
|
76
|
+
Aws::BCMDataExports::Endpoints::ListTagsForResource.build(context)
|
77
|
+
when :tag_resource
|
78
|
+
Aws::BCMDataExports::Endpoints::TagResource.build(context)
|
79
|
+
when :untag_resource
|
80
|
+
Aws::BCMDataExports::Endpoints::UntagResource.build(context)
|
81
|
+
when :update_export
|
82
|
+
Aws::BCMDataExports::Endpoints::UpdateExport.build(context)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def add_handlers(handlers, _config)
|
88
|
+
handlers.add(Handler, step: :build, priority: 75)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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::BCMDataExports
|
11
|
+
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
# @param options ({})
|
15
|
+
# @option options [Client] :client
|
16
|
+
def initialize(options = {})
|
17
|
+
@client = options[:client] || Client.new(options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Client]
|
21
|
+
def client
|
22
|
+
@client
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|