aws-sdk-appconfigcloudextension 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-appconfigcloudextension/client.rb +640 -0
- data/lib/aws-sdk-appconfigcloudextension/client_api.rb +268 -0
- data/lib/aws-sdk-appconfigcloudextension/customizations.rb +0 -0
- data/lib/aws-sdk-appconfigcloudextension/endpoint_parameters.rb +40 -0
- data/lib/aws-sdk-appconfigcloudextension/endpoint_provider.rb +21 -0
- data/lib/aws-sdk-appconfigcloudextension/endpoints.rb +20 -0
- data/lib/aws-sdk-appconfigcloudextension/errors.rb +268 -0
- data/lib/aws-sdk-appconfigcloudextension/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-appconfigcloudextension/resource.rb +26 -0
- data/lib/aws-sdk-appconfigcloudextension/types.rb +608 -0
- data/lib/aws-sdk-appconfigcloudextension.rb +61 -0
- data/sig/client.rbs +116 -0
- data/sig/errors.rbs +57 -0
- data/sig/resource.rbs +87 -0
- data/sig/types.rbs +209 -0
- metadata +95 -0
|
@@ -0,0 +1,268 @@
|
|
|
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::AppConfigCloudExtension
|
|
12
|
+
# @api private
|
|
13
|
+
module ClientApi
|
|
14
|
+
|
|
15
|
+
include Seahorse::Model
|
|
16
|
+
|
|
17
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
|
+
AccessDeniedReason = Shapes::StringShape.new(name: 'AccessDeniedReason')
|
|
19
|
+
AllowedValues = Shapes::ListShape.new(name: 'AllowedValues')
|
|
20
|
+
BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
|
|
21
|
+
BadGatewayReason = Shapes::StringShape.new(name: 'BadGatewayReason')
|
|
22
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
23
|
+
ConfigurationContent = Shapes::BlobShape.new(name: 'ConfigurationContent')
|
|
24
|
+
ConfigurationIdentifier = Shapes::StringShape.new(name: 'ConfigurationIdentifier')
|
|
25
|
+
Constraint = Shapes::UnionShape.new(name: 'Constraint')
|
|
26
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
|
27
|
+
EnumConstraint = Shapes::StructureShape.new(name: 'EnumConstraint')
|
|
28
|
+
FieldConstraint = Shapes::StructureShape.new(name: 'FieldConstraint')
|
|
29
|
+
FlagAttributeKey = Shapes::StringShape.new(name: 'FlagAttributeKey')
|
|
30
|
+
FlagAttributeNumberList = Shapes::ListShape.new(name: 'FlagAttributeNumberList')
|
|
31
|
+
FlagAttributeStringList = Shapes::ListShape.new(name: 'FlagAttributeStringList')
|
|
32
|
+
FlagAttributeValue = Shapes::UnionShape.new(name: 'FlagAttributeValue')
|
|
33
|
+
FlagAttributes = Shapes::MapShape.new(name: 'FlagAttributes')
|
|
34
|
+
FlagKey = Shapes::StringShape.new(name: 'FlagKey')
|
|
35
|
+
GetConfigurationRequest = Shapes::StructureShape.new(name: 'GetConfigurationRequest')
|
|
36
|
+
GetConfigurationResponse = Shapes::StructureShape.new(name: 'GetConfigurationResponse')
|
|
37
|
+
GetFlagRequest = Shapes::StructureShape.new(name: 'GetFlagRequest')
|
|
38
|
+
GetFlagResponse = Shapes::StructureShape.new(name: 'GetFlagResponse')
|
|
39
|
+
Identifier = Shapes::StringShape.new(name: 'Identifier')
|
|
40
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
|
41
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
42
|
+
LengthConstraint = Shapes::StructureShape.new(name: 'LengthConstraint')
|
|
43
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
|
44
|
+
LoopDetectedException = Shapes::StructureShape.new(name: 'LoopDetectedException')
|
|
45
|
+
PatternConstraint = Shapes::StructureShape.new(name: 'PatternConstraint')
|
|
46
|
+
RangeConstraint = Shapes::StructureShape.new(name: 'RangeConstraint')
|
|
47
|
+
RequestContext = Shapes::MapShape.new(name: 'RequestContext')
|
|
48
|
+
RequestContextKey = Shapes::StringShape.new(name: 'RequestContextKey')
|
|
49
|
+
RequestContextValue = Shapes::StringShape.new(name: 'RequestContextValue')
|
|
50
|
+
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
|
51
|
+
SemanticError = Shapes::StructureShape.new(name: 'SemanticError')
|
|
52
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
|
53
|
+
ServiceUnavailableReason = Shapes::StringShape.new(name: 'ServiceUnavailableReason')
|
|
54
|
+
String = Shapes::StringShape.new(name: 'String')
|
|
55
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
56
|
+
ThrottlingReason = Shapes::StringShape.new(name: 'ThrottlingReason')
|
|
57
|
+
TypeConstraint = Shapes::StructureShape.new(name: 'TypeConstraint')
|
|
58
|
+
UpgradeRequiredException = Shapes::StructureShape.new(name: 'UpgradeRequiredException')
|
|
59
|
+
UpgradeRequiredReason = Shapes::StringShape.new(name: 'UpgradeRequiredReason')
|
|
60
|
+
ValidationError = Shapes::UnionShape.new(name: 'ValidationError')
|
|
61
|
+
ValidationErrors = Shapes::ListShape.new(name: 'ValidationErrors')
|
|
62
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
63
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
64
|
+
|
|
65
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
66
|
+
AccessDeniedException.add_member(:reason, Shapes::ShapeRef.new(shape: AccessDeniedReason, required: true, location_name: "reason"))
|
|
67
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
68
|
+
|
|
69
|
+
AllowedValues.member = Shapes::ShapeRef.new(shape: String)
|
|
70
|
+
|
|
71
|
+
BadGatewayException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
72
|
+
BadGatewayException.add_member(:reason, Shapes::ShapeRef.new(shape: BadGatewayReason, required: true, location_name: "reason"))
|
|
73
|
+
BadGatewayException.add_member(:extension, Shapes::ShapeRef.new(shape: String, location_name: "extension"))
|
|
74
|
+
BadGatewayException.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
|
|
75
|
+
BadGatewayException.struct_class = Types::BadGatewayException
|
|
76
|
+
|
|
77
|
+
Constraint.add_member(:required, Shapes::ShapeRef.new(shape: Boolean, location_name: "required"))
|
|
78
|
+
Constraint.add_member(:type, Shapes::ShapeRef.new(shape: TypeConstraint, location_name: "type"))
|
|
79
|
+
Constraint.add_member(:length, Shapes::ShapeRef.new(shape: LengthConstraint, location_name: "length"))
|
|
80
|
+
Constraint.add_member(:range, Shapes::ShapeRef.new(shape: RangeConstraint, location_name: "range"))
|
|
81
|
+
Constraint.add_member(:pattern, Shapes::ShapeRef.new(shape: PatternConstraint, location_name: "pattern"))
|
|
82
|
+
Constraint.add_member(:enum, Shapes::ShapeRef.new(shape: EnumConstraint, location_name: "enum"))
|
|
83
|
+
Constraint.add_member(:union, Shapes::ShapeRef.new(shape: Boolean, location_name: "union"))
|
|
84
|
+
Constraint.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
85
|
+
Constraint.add_member_subclass(:required, Types::Constraint::Required)
|
|
86
|
+
Constraint.add_member_subclass(:type, Types::Constraint::Type)
|
|
87
|
+
Constraint.add_member_subclass(:length, Types::Constraint::Length)
|
|
88
|
+
Constraint.add_member_subclass(:range, Types::Constraint::Range)
|
|
89
|
+
Constraint.add_member_subclass(:pattern, Types::Constraint::Pattern)
|
|
90
|
+
Constraint.add_member_subclass(:enum, Types::Constraint::Enum)
|
|
91
|
+
Constraint.add_member_subclass(:union, Types::Constraint::Union)
|
|
92
|
+
Constraint.add_member_subclass(:unknown, Types::Constraint::Unknown)
|
|
93
|
+
Constraint.struct_class = Types::Constraint
|
|
94
|
+
|
|
95
|
+
EnumConstraint.add_member(:allowed, Shapes::ShapeRef.new(shape: AllowedValues, required: true, location_name: "allowed"))
|
|
96
|
+
EnumConstraint.struct_class = Types::EnumConstraint
|
|
97
|
+
|
|
98
|
+
FieldConstraint.add_member(:field, Shapes::ShapeRef.new(shape: String, required: true, location_name: "field"))
|
|
99
|
+
FieldConstraint.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
|
100
|
+
FieldConstraint.add_member(:constraint, Shapes::ShapeRef.new(shape: Constraint, required: true, location_name: "constraint"))
|
|
101
|
+
FieldConstraint.struct_class = Types::FieldConstraint
|
|
102
|
+
|
|
103
|
+
FlagAttributeNumberList.member = Shapes::ShapeRef.new(shape: Double)
|
|
104
|
+
|
|
105
|
+
FlagAttributeStringList.member = Shapes::ShapeRef.new(shape: String)
|
|
106
|
+
|
|
107
|
+
FlagAttributeValue.add_member(:string, Shapes::ShapeRef.new(shape: String, location_name: "string"))
|
|
108
|
+
FlagAttributeValue.add_member(:number, Shapes::ShapeRef.new(shape: Double, location_name: "number"))
|
|
109
|
+
FlagAttributeValue.add_member(:boolean, Shapes::ShapeRef.new(shape: Boolean, location_name: "boolean"))
|
|
110
|
+
FlagAttributeValue.add_member(:string_list, Shapes::ShapeRef.new(shape: FlagAttributeStringList, location_name: "stringList"))
|
|
111
|
+
FlagAttributeValue.add_member(:number_list, Shapes::ShapeRef.new(shape: FlagAttributeNumberList, location_name: "numberList"))
|
|
112
|
+
FlagAttributeValue.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
113
|
+
FlagAttributeValue.add_member_subclass(:string, Types::FlagAttributeValue::String)
|
|
114
|
+
FlagAttributeValue.add_member_subclass(:number, Types::FlagAttributeValue::Number)
|
|
115
|
+
FlagAttributeValue.add_member_subclass(:boolean, Types::FlagAttributeValue::Boolean)
|
|
116
|
+
FlagAttributeValue.add_member_subclass(:string_list, Types::FlagAttributeValue::StringList)
|
|
117
|
+
FlagAttributeValue.add_member_subclass(:number_list, Types::FlagAttributeValue::NumberList)
|
|
118
|
+
FlagAttributeValue.add_member_subclass(:unknown, Types::FlagAttributeValue::Unknown)
|
|
119
|
+
FlagAttributeValue.struct_class = Types::FlagAttributeValue
|
|
120
|
+
|
|
121
|
+
FlagAttributes.key = Shapes::ShapeRef.new(shape: FlagAttributeKey)
|
|
122
|
+
FlagAttributes.value = Shapes::ShapeRef.new(shape: FlagAttributeValue)
|
|
123
|
+
|
|
124
|
+
GetConfigurationRequest.add_member(:application, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "application"))
|
|
125
|
+
GetConfigurationRequest.add_member(:environment, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "environment"))
|
|
126
|
+
GetConfigurationRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ConfigurationIdentifier, required: true, location_name: "configuration"))
|
|
127
|
+
GetConfigurationRequest.struct_class = Types::GetConfigurationRequest
|
|
128
|
+
|
|
129
|
+
GetConfigurationResponse.add_member(:content, Shapes::ShapeRef.new(shape: ConfigurationContent, required: true, location_name: "content"))
|
|
130
|
+
GetConfigurationResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "contentType"))
|
|
131
|
+
GetConfigurationResponse.add_member(:revision, Shapes::ShapeRef.new(shape: String, required: true, location_name: "revision"))
|
|
132
|
+
GetConfigurationResponse.add_member(:version_label, Shapes::ShapeRef.new(shape: String, location_name: "versionLabel"))
|
|
133
|
+
GetConfigurationResponse.struct_class = Types::GetConfigurationResponse
|
|
134
|
+
|
|
135
|
+
GetFlagRequest.add_member(:application, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "application"))
|
|
136
|
+
GetFlagRequest.add_member(:environment, Shapes::ShapeRef.new(shape: Identifier, required: true, location_name: "environment"))
|
|
137
|
+
GetFlagRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ConfigurationIdentifier, required: true, location_name: "configuration"))
|
|
138
|
+
GetFlagRequest.add_member(:flag, Shapes::ShapeRef.new(shape: FlagKey, required: true, location_name: "flag"))
|
|
139
|
+
GetFlagRequest.add_member(:context, Shapes::ShapeRef.new(shape: RequestContext, location_name: "context"))
|
|
140
|
+
GetFlagRequest.struct_class = Types::GetFlagRequest
|
|
141
|
+
|
|
142
|
+
GetFlagResponse.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
|
|
143
|
+
GetFlagResponse.add_member(:variant, Shapes::ShapeRef.new(shape: String, location_name: "variant"))
|
|
144
|
+
GetFlagResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: FlagAttributes, location_name: "attributes"))
|
|
145
|
+
GetFlagResponse.struct_class = Types::GetFlagResponse
|
|
146
|
+
|
|
147
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
148
|
+
InternalServerException.struct_class = Types::InternalServerException
|
|
149
|
+
|
|
150
|
+
LengthConstraint.add_member(:min, Shapes::ShapeRef.new(shape: Long, location_name: "min"))
|
|
151
|
+
LengthConstraint.add_member(:max, Shapes::ShapeRef.new(shape: Long, location_name: "max"))
|
|
152
|
+
LengthConstraint.add_member(:tested, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "tested"))
|
|
153
|
+
LengthConstraint.struct_class = Types::LengthConstraint
|
|
154
|
+
|
|
155
|
+
LoopDetectedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
156
|
+
LoopDetectedException.struct_class = Types::LoopDetectedException
|
|
157
|
+
|
|
158
|
+
PatternConstraint.add_member(:pattern, Shapes::ShapeRef.new(shape: String, required: true, location_name: "pattern"))
|
|
159
|
+
PatternConstraint.struct_class = Types::PatternConstraint
|
|
160
|
+
|
|
161
|
+
RangeConstraint.add_member(:min, Shapes::ShapeRef.new(shape: Double, location_name: "min"))
|
|
162
|
+
RangeConstraint.add_member(:max, Shapes::ShapeRef.new(shape: Double, location_name: "max"))
|
|
163
|
+
RangeConstraint.struct_class = Types::RangeConstraint
|
|
164
|
+
|
|
165
|
+
RequestContext.key = Shapes::ShapeRef.new(shape: RequestContextKey)
|
|
166
|
+
RequestContext.value = Shapes::ShapeRef.new(shape: RequestContextValue)
|
|
167
|
+
|
|
168
|
+
RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
169
|
+
RequestEntityTooLargeException.struct_class = Types::RequestEntityTooLargeException
|
|
170
|
+
|
|
171
|
+
SemanticError.add_member(:problem, Shapes::ShapeRef.new(shape: String, required: true, location_name: "problem"))
|
|
172
|
+
SemanticError.add_member(:item, Shapes::ShapeRef.new(shape: String, location_name: "item"))
|
|
173
|
+
SemanticError.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
|
174
|
+
SemanticError.struct_class = Types::SemanticError
|
|
175
|
+
|
|
176
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
177
|
+
ServiceUnavailableException.add_member(:reason, Shapes::ShapeRef.new(shape: ServiceUnavailableReason, required: true, location_name: "reason"))
|
|
178
|
+
ServiceUnavailableException.add_member(:extension, Shapes::ShapeRef.new(shape: String, location_name: "extension"))
|
|
179
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
|
180
|
+
|
|
181
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
182
|
+
ThrottlingException.add_member(:reason, Shapes::ShapeRef.new(shape: ThrottlingReason, required: true, location_name: "reason"))
|
|
183
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "retryAfterSeconds"))
|
|
184
|
+
ThrottlingException.add_member(:extension, Shapes::ShapeRef.new(shape: String, required: true, location_name: "extension"))
|
|
185
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
186
|
+
|
|
187
|
+
TypeConstraint.add_member(:expected, Shapes::ShapeRef.new(shape: String, required: true, location_name: "expected"))
|
|
188
|
+
TypeConstraint.struct_class = Types::TypeConstraint
|
|
189
|
+
|
|
190
|
+
UpgradeRequiredException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
191
|
+
UpgradeRequiredException.add_member(:reason, Shapes::ShapeRef.new(shape: UpgradeRequiredReason, required: true, location_name: "reason"))
|
|
192
|
+
UpgradeRequiredException.add_member(:extension, Shapes::ShapeRef.new(shape: String, required: true, location_name: "extension"))
|
|
193
|
+
UpgradeRequiredException.add_member(:version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "version"))
|
|
194
|
+
UpgradeRequiredException.struct_class = Types::UpgradeRequiredException
|
|
195
|
+
|
|
196
|
+
ValidationError.add_member(:field_constraint, Shapes::ShapeRef.new(shape: FieldConstraint, location_name: "fieldConstraint"))
|
|
197
|
+
ValidationError.add_member(:semantic_error, Shapes::ShapeRef.new(shape: SemanticError, location_name: "semanticError"))
|
|
198
|
+
ValidationError.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
199
|
+
ValidationError.add_member_subclass(:field_constraint, Types::ValidationError::FieldConstraint)
|
|
200
|
+
ValidationError.add_member_subclass(:semantic_error, Types::ValidationError::SemanticError)
|
|
201
|
+
ValidationError.add_member_subclass(:unknown, Types::ValidationError::Unknown)
|
|
202
|
+
ValidationError.struct_class = Types::ValidationError
|
|
203
|
+
|
|
204
|
+
ValidationErrors.member = Shapes::ShapeRef.new(shape: ValidationError)
|
|
205
|
+
|
|
206
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
|
207
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
|
208
|
+
ValidationException.add_member(:errors, Shapes::ShapeRef.new(shape: ValidationErrors, location_name: "errors"))
|
|
209
|
+
ValidationException.struct_class = Types::ValidationException
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
# @api private
|
|
213
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
|
214
|
+
|
|
215
|
+
api.version = "2024-10-09"
|
|
216
|
+
|
|
217
|
+
api.metadata = {
|
|
218
|
+
"apiVersion" => "2024-10-09",
|
|
219
|
+
"auth" => ["aws.auth#sigv4"],
|
|
220
|
+
"endpointPrefix" => "appconfigcloudextension",
|
|
221
|
+
"jsonVersion" => "1.1",
|
|
222
|
+
"protocol" => "json",
|
|
223
|
+
"protocols" => ["json"],
|
|
224
|
+
"serviceFullName" => "AWS AppConfig Cloud Extension",
|
|
225
|
+
"serviceId" => "AppConfigCloudExtension",
|
|
226
|
+
"signatureVersion" => "v4",
|
|
227
|
+
"signingName" => "appconfig",
|
|
228
|
+
"targetPrefix" => "AppConfig",
|
|
229
|
+
"uid" => "appconfigcloudextension-2024-10-09",
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
api.add_operation(:get_configuration, Seahorse::Model::Operation.new.tap do |o|
|
|
233
|
+
o.name = "GetConfiguration"
|
|
234
|
+
o.http_method = "POST"
|
|
235
|
+
o.http_request_uri = "/"
|
|
236
|
+
o.input = Shapes::ShapeRef.new(shape: GetConfigurationRequest)
|
|
237
|
+
o.output = Shapes::ShapeRef.new(shape: GetConfigurationResponse)
|
|
238
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
239
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
240
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
241
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
|
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: UpgradeRequiredException)
|
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: LoopDetectedException)
|
|
247
|
+
end)
|
|
248
|
+
|
|
249
|
+
api.add_operation(:get_flag, Seahorse::Model::Operation.new.tap do |o|
|
|
250
|
+
o.name = "GetFlag"
|
|
251
|
+
o.http_method = "POST"
|
|
252
|
+
o.http_request_uri = "/"
|
|
253
|
+
o.input = Shapes::ShapeRef.new(shape: GetFlagRequest)
|
|
254
|
+
o.output = Shapes::ShapeRef.new(shape: GetFlagResponse)
|
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
257
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: BadGatewayException)
|
|
260
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
261
|
+
o.errors << Shapes::ShapeRef.new(shape: UpgradeRequiredException)
|
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: LoopDetectedException)
|
|
264
|
+
end)
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
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::AppConfigCloudExtension
|
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
|
12
|
+
#
|
|
13
|
+
# @!attribute endpoint
|
|
14
|
+
# The extension's endpoint on the Cloud Extensions runtime, including its path, such as http://localhost:5333/appconfig.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
#
|
|
18
|
+
EndpointParameters = Struct.new(
|
|
19
|
+
:endpoint,
|
|
20
|
+
) do
|
|
21
|
+
include Aws::Structure
|
|
22
|
+
|
|
23
|
+
# @api private
|
|
24
|
+
class << self
|
|
25
|
+
PARAM_MAP = {
|
|
26
|
+
'Endpoint' => :endpoint,
|
|
27
|
+
}.freeze
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def initialize(options = {})
|
|
31
|
+
self[:endpoint] = options[:endpoint]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.create(config, options={})
|
|
35
|
+
new({
|
|
36
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
37
|
+
}.merge(options))
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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::AppConfigCloudExtension
|
|
11
|
+
class EndpointProvider
|
|
12
|
+
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint)
|
|
15
|
+
end
|
|
16
|
+
return Aws::Endpoints::Endpoint.new(url: "http://localhost:5333/appconfig")
|
|
17
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
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::AppConfigCloudExtension
|
|
12
|
+
# @api private
|
|
13
|
+
module Endpoints
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::AppConfigCloudExtension::EndpointParameters.create(context.config)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,268 @@
|
|
|
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::AppConfigCloudExtension
|
|
11
|
+
|
|
12
|
+
# When AppConfigCloudExtension returns an error response, the Ruby SDK constructs and raises an error.
|
|
13
|
+
# These errors all extend Aws::AppConfigCloudExtension::Errors::ServiceError < {Aws::Errors::ServiceError}
|
|
14
|
+
#
|
|
15
|
+
# You can rescue all AppConfigCloudExtension errors using ServiceError:
|
|
16
|
+
#
|
|
17
|
+
# begin
|
|
18
|
+
# # do stuff
|
|
19
|
+
# rescue Aws::AppConfigCloudExtension::Errors::ServiceError
|
|
20
|
+
# # rescues all AppConfigCloudExtension 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
|
+
# * {AccessDeniedException}
|
|
31
|
+
# * {BadGatewayException}
|
|
32
|
+
# * {InternalServerException}
|
|
33
|
+
# * {LoopDetectedException}
|
|
34
|
+
# * {RequestEntityTooLargeException}
|
|
35
|
+
# * {ServiceUnavailableException}
|
|
36
|
+
# * {ThrottlingException}
|
|
37
|
+
# * {UpgradeRequiredException}
|
|
38
|
+
# * {ValidationException}
|
|
39
|
+
#
|
|
40
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
41
|
+
# if they are not defined above.
|
|
42
|
+
module Errors
|
|
43
|
+
|
|
44
|
+
extend Aws::Errors::DynamicErrors
|
|
45
|
+
|
|
46
|
+
class AccessDeniedException < ServiceError
|
|
47
|
+
|
|
48
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
49
|
+
# @param [String] message
|
|
50
|
+
# @param [Aws::AppConfigCloudExtension::Types::AccessDeniedException] data
|
|
51
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
52
|
+
super(context, message, data)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @return [String]
|
|
56
|
+
def message
|
|
57
|
+
@message || @data[:message]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# @return [String]
|
|
61
|
+
def reason
|
|
62
|
+
@data[:reason]
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
class BadGatewayException < ServiceError
|
|
67
|
+
|
|
68
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
69
|
+
# @param [String] message
|
|
70
|
+
# @param [Aws::AppConfigCloudExtension::Types::BadGatewayException] data
|
|
71
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
72
|
+
super(context, message, data)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @return [String]
|
|
76
|
+
def message
|
|
77
|
+
@message || @data[:message]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @return [String]
|
|
81
|
+
def reason
|
|
82
|
+
@data[:reason]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# @return [String]
|
|
86
|
+
def extension
|
|
87
|
+
@data[:extension]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# @return [String]
|
|
91
|
+
def version
|
|
92
|
+
@data[:version]
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class InternalServerException < ServiceError
|
|
97
|
+
|
|
98
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
99
|
+
# @param [String] message
|
|
100
|
+
# @param [Aws::AppConfigCloudExtension::Types::InternalServerException] data
|
|
101
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
102
|
+
super(context, message, data)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @return [String]
|
|
106
|
+
def message
|
|
107
|
+
@message || @data[:message]
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def retryable?
|
|
111
|
+
true
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class LoopDetectedException < ServiceError
|
|
116
|
+
|
|
117
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
118
|
+
# @param [String] message
|
|
119
|
+
# @param [Aws::AppConfigCloudExtension::Types::LoopDetectedException] data
|
|
120
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
121
|
+
super(context, message, data)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @return [String]
|
|
125
|
+
def message
|
|
126
|
+
@message || @data[:message]
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
class RequestEntityTooLargeException < ServiceError
|
|
131
|
+
|
|
132
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
133
|
+
# @param [String] message
|
|
134
|
+
# @param [Aws::AppConfigCloudExtension::Types::RequestEntityTooLargeException] data
|
|
135
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
136
|
+
super(context, message, data)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# @return [String]
|
|
140
|
+
def message
|
|
141
|
+
@message || @data[:message]
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class ServiceUnavailableException < ServiceError
|
|
146
|
+
|
|
147
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
148
|
+
# @param [String] message
|
|
149
|
+
# @param [Aws::AppConfigCloudExtension::Types::ServiceUnavailableException] data
|
|
150
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
151
|
+
super(context, message, data)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# @return [String]
|
|
155
|
+
def message
|
|
156
|
+
@message || @data[:message]
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# @return [String]
|
|
160
|
+
def reason
|
|
161
|
+
@data[:reason]
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @return [String]
|
|
165
|
+
def extension
|
|
166
|
+
@data[:extension]
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
def retryable?
|
|
170
|
+
true
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
class ThrottlingException < ServiceError
|
|
175
|
+
|
|
176
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
177
|
+
# @param [String] message
|
|
178
|
+
# @param [Aws::AppConfigCloudExtension::Types::ThrottlingException] data
|
|
179
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
180
|
+
super(context, message, data)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# @return [String]
|
|
184
|
+
def message
|
|
185
|
+
@message || @data[:message]
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# @return [String]
|
|
189
|
+
def reason
|
|
190
|
+
@data[:reason]
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# @return [String]
|
|
194
|
+
def retry_after_seconds
|
|
195
|
+
@data[:retry_after_seconds]
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# @return [String]
|
|
199
|
+
def extension
|
|
200
|
+
@data[:extension]
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
def retryable?
|
|
204
|
+
true
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
def throttling?
|
|
208
|
+
true
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
class UpgradeRequiredException < ServiceError
|
|
213
|
+
|
|
214
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
215
|
+
# @param [String] message
|
|
216
|
+
# @param [Aws::AppConfigCloudExtension::Types::UpgradeRequiredException] data
|
|
217
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
218
|
+
super(context, message, data)
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# @return [String]
|
|
222
|
+
def message
|
|
223
|
+
@message || @data[:message]
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# @return [String]
|
|
227
|
+
def reason
|
|
228
|
+
@data[:reason]
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# @return [String]
|
|
232
|
+
def extension
|
|
233
|
+
@data[:extension]
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# @return [String]
|
|
237
|
+
def version
|
|
238
|
+
@data[:version]
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class ValidationException < ServiceError
|
|
243
|
+
|
|
244
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
245
|
+
# @param [String] message
|
|
246
|
+
# @param [Aws::AppConfigCloudExtension::Types::ValidationException] data
|
|
247
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
248
|
+
super(context, message, data)
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# @return [String]
|
|
252
|
+
def message
|
|
253
|
+
@message || @data[:message]
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# @return [String]
|
|
257
|
+
def reason
|
|
258
|
+
@data[:reason]
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# @return [String]
|
|
262
|
+
def errors
|
|
263
|
+
@data[:errors]
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
end
|