-
Notifications
You must be signed in to change notification settings - Fork 596
/
appconfigdata.json
429 lines (429 loc) · 22.7 KB
/
appconfigdata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
{
"smithy": "1.0",
"shapes": {
"com.amazonaws.appconfigdata#AppConfigData": {
"type": "service",
"traits": {
"aws.api#dataPlane": {},
"aws.api#service": {
"sdkId": "AppConfigData",
"arnNamespace": "appconfigdata",
"cloudFormationName": "AppConfigData",
"cloudTrailEventSource": "appconfigdata.amazonaws.com",
"endpointPrefix": "appconfigdata"
},
"aws.auth#sigv4": {
"name": "appconfig"
},
"aws.protocols#restJson1": {},
"smithy.api#documentation": "<p>AppConfig Data provides the data plane APIs your application uses to retrieve configuration data.\n Here's how it works:</p>\n <p>Your application retrieves configuration data by first establishing a configuration\n session using the AppConfig Data <a>StartConfigurationSession</a> API action. Your session's\n client then makes periodic calls to <a>GetLatestConfiguration</a> to check for\n and retrieve the latest data available.</p>\n <p>When calling <code>StartConfigurationSession</code>, your code sends the following\n information:</p>\n <ul>\n <li>\n <p>Identifiers (ID or name) of an AppConfig application, environment, and\n configuration profile that the session tracks.</p>\n </li>\n <li>\n <p>(Optional) The minimum amount of time the session's client must wait between calls\n to <code>GetLatestConfiguration</code>.</p>\n </li>\n </ul>\n <p>In response, AppConfig provides an <code>InitialConfigurationToken</code> to be given to\n the session's client and used the first time it calls <code>GetLatestConfiguration</code>\n for that session.</p>\n <p>When calling <code>GetLatestConfiguration</code>, your client code sends the most recent\n <code>ConfigurationToken</code> value it has and receives in response:</p>\n <ul>\n <li>\n <p>\n <code>NextPollConfigurationToken</code>: the <code>ConfigurationToken</code> value\n to use on the next call to <code>GetLatestConfiguration</code>.</p>\n </li>\n <li>\n <p>\n <code>NextPollIntervalInSeconds</code>: the duration the client should wait before\n making its next call to <code>GetLatestConfiguration</code>. This duration may vary\n over the course of the session, so it should be used instead of the value sent on the\n <code>StartConfigurationSession</code> call.</p>\n </li>\n <li>\n <p>The configuration: the latest data intended for the session. This may be empty if\n the client already has the latest version of the configuration.</p>\n </li>\n </ul>\n <p>For more information and to view example CLI commands that show how to retrieve a\n configuration using the AppConfig Data <code>StartConfigurationSession</code> and\n <code>GetLatestConfiguration</code> API actions, see <a href=\"http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration\">Receiving the\n configuration</a> in the <i>AppConfig User Guide</i>.</p>",
"smithy.api#title": "AWS AppConfig Data"
},
"version": "2021-11-11",
"operations": [
{
"target": "com.amazonaws.appconfigdata#GetLatestConfiguration"
}
],
"resources": [
{
"target": "com.amazonaws.appconfigdata#ConfigurationSession"
}
]
},
"com.amazonaws.appconfigdata#BadRequestDetails": {
"type": "union",
"members": {
"InvalidParameters": {
"target": "com.amazonaws.appconfigdata#InvalidParameterMap",
"traits": {
"smithy.api#documentation": "<p>One or more specified parameters are not valid for the call.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Detailed information about the input that failed to satisfy the constraints specified by\n a call.</p>"
}
},
"com.amazonaws.appconfigdata#BadRequestException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.appconfigdata#String"
},
"Reason": {
"target": "com.amazonaws.appconfigdata#BadRequestReason",
"traits": {
"smithy.api#documentation": "<p>Code indicating the reason the request was invalid.</p>"
}
},
"Details": {
"target": "com.amazonaws.appconfigdata#BadRequestDetails",
"traits": {
"smithy.api#documentation": "<p>Details describing why the request was invalid.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The input fails to satisfy the constraints specified by the service.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
},
"com.amazonaws.appconfigdata#BadRequestReason": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "InvalidParameters",
"name": "INVALID_PARAMETERS",
"documentation": "Indicates there was a problem with one or more of the parameters.\nSee InvalidParameters in the BadRequestDetails for more information."
}
]
}
},
"com.amazonaws.appconfigdata#ConfigurationSession": {
"type": "resource",
"identifiers": {
"SessionId": {
"target": "com.amazonaws.appconfigdata#Id"
}
},
"create": {
"target": "com.amazonaws.appconfigdata#StartConfigurationSession"
}
},
"com.amazonaws.appconfigdata#GetLatestConfiguration": {
"type": "operation",
"input": {
"target": "com.amazonaws.appconfigdata#GetLatestConfigurationRequest"
},
"output": {
"target": "com.amazonaws.appconfigdata#GetLatestConfigurationResponse"
},
"errors": [
{
"target": "com.amazonaws.appconfigdata#BadRequestException"
},
{
"target": "com.amazonaws.appconfigdata#InternalServerException"
},
{
"target": "com.amazonaws.appconfigdata#ResourceNotFoundException"
},
{
"target": "com.amazonaws.appconfigdata#ThrottlingException"
}
],
"traits": {
"smithy.api#documentation": "<p>Retrieves the latest deployed configuration. This API may return empty configuration\n data if the client already has the latest version. For more information about this API\n action and to view example CLI commands that show how to use it with the <a>StartConfigurationSession</a> API action, see <a href=\"http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration\">Receiving the\n configuration</a> in the <i>AppConfig User Guide</i>. </p>\n <important>\n <p>Note the following important information.</p>\n <ul>\n <li>\n <p>Each configuration token is only valid for one call to <code>GetLatestConfiguration</code>.\n The <code>GetLatestConfiguration</code> response includes a <code>NextPollConfigurationToken</code> that\n should always replace the token used for the just-completed call in preparation\n for the next one. </p>\n </li>\n <li>\n <p>\n <code>GetLatestConfiguration</code> is a priced call. For more information, see\n <a href=\"https://aws.amazon.com/systems-manager/pricing/\">Pricing</a>.</p>\n </li>\n </ul>\n </important>",
"smithy.api#http": {
"method": "GET",
"uri": "/configuration",
"code": 200
},
"smithy.api#readonly": {}
}
},
"com.amazonaws.appconfigdata#GetLatestConfigurationRequest": {
"type": "structure",
"members": {
"ConfigurationToken": {
"target": "com.amazonaws.appconfigdata#Token",
"traits": {
"smithy.api#documentation": "<p>Token describing the current state of the configuration session. To obtain a token,\n first call the <a>StartConfigurationSession</a> API. Note that every call to\n <code>GetLatestConfiguration</code> will return a new <code>ConfigurationToken</code>\n (<code>NextPollConfigurationToken</code> in the response) and MUST be provided to\n subsequent <code>GetLatestConfiguration</code> API calls.</p>",
"smithy.api#httpQuery": "configuration_token",
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.appconfigdata#GetLatestConfigurationResponse": {
"type": "structure",
"members": {
"NextPollConfigurationToken": {
"target": "com.amazonaws.appconfigdata#Token",
"traits": {
"smithy.api#documentation": "<p>The latest token describing the current state of the configuration session. This MUST be\n provided to the next call to <code>GetLatestConfiguration.</code>\n </p>",
"smithy.api#httpHeader": "Next-Poll-Configuration-Token"
}
},
"NextPollIntervalInSeconds": {
"target": "com.amazonaws.appconfigdata#Integer",
"traits": {
"smithy.api#documentation": "<p>The amount of time the client should wait before polling for configuration updates\n again. Use <code>RequiredMinimumPollIntervalInSeconds</code> to set the desired poll\n interval.</p>",
"smithy.api#httpHeader": "Next-Poll-Interval-In-Seconds"
}
},
"ContentType": {
"target": "com.amazonaws.appconfigdata#String",
"traits": {
"smithy.api#documentation": "<p>A standard MIME type describing the format of the configuration content.</p>",
"smithy.api#httpHeader": "Content-Type"
}
},
"Configuration": {
"target": "com.amazonaws.appconfigdata#SensitiveBlob",
"traits": {
"smithy.api#documentation": "<p>The data of the configuration. This may be empty if the client already has the latest\n version of configuration.</p>",
"smithy.api#httpPayload": {}
}
}
}
},
"com.amazonaws.appconfigdata#Id": {
"type": "string",
"traits": {
"smithy.api#pattern": "^[a-z0-9]{7}$"
}
},
"com.amazonaws.appconfigdata#Identifier": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 64
}
}
},
"com.amazonaws.appconfigdata#Integer": {
"type": "integer"
},
"com.amazonaws.appconfigdata#InternalServerException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.appconfigdata#String"
}
},
"traits": {
"smithy.api#documentation": "<p>There was an internal failure in the service.</p>",
"smithy.api#error": "server",
"smithy.api#httpError": 500
}
},
"com.amazonaws.appconfigdata#InvalidParameterDetail": {
"type": "structure",
"members": {
"Problem": {
"target": "com.amazonaws.appconfigdata#InvalidParameterProblem",
"traits": {
"smithy.api#documentation": "<p>The reason the parameter is invalid.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Information about an invalid parameter.</p>"
}
},
"com.amazonaws.appconfigdata#InvalidParameterMap": {
"type": "map",
"key": {
"target": "com.amazonaws.appconfigdata#String"
},
"value": {
"target": "com.amazonaws.appconfigdata#InvalidParameterDetail"
}
},
"com.amazonaws.appconfigdata#InvalidParameterProblem": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Corrupted",
"name": "CORRUPTED",
"documentation": "The parameter was corrupted and could not be understood by the service."
},
{
"value": "Expired",
"name": "EXPIRED",
"documentation": "The parameter was expired and can no longer be used."
},
{
"value": "PollIntervalNotSatisfied",
"name": "POLL_INTERVAL_NOT_SATISFIED",
"documentation": "The client called the service before the time specified in the poll interval."
}
]
}
},
"com.amazonaws.appconfigdata#OptionalPollSeconds": {
"type": "integer",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 15,
"max": 86400
}
}
},
"com.amazonaws.appconfigdata#ResourceNotFoundException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.appconfigdata#String"
},
"ResourceType": {
"target": "com.amazonaws.appconfigdata#ResourceType",
"traits": {
"smithy.api#documentation": "<p>The type of resource that was not found.</p>"
}
},
"ReferencedBy": {
"target": "com.amazonaws.appconfigdata#StringMap",
"traits": {
"smithy.api#documentation": "<p>A map indicating which parameters in the request reference the resource that was not found.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The requested resource could not be found.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 404
}
},
"com.amazonaws.appconfigdata#ResourceType": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "Application",
"name": "APPLICATION",
"documentation": "Resource type value for the Application resource."
},
{
"value": "ConfigurationProfile",
"name": "CONFIGURATION_PROFILE",
"documentation": "Resource type value for the ConfigurationProfile resource."
},
{
"value": "Deployment",
"name": "DEPLOYMENT",
"documentation": "Resource type value for the Deployment resource."
},
{
"value": "Environment",
"name": "ENVIRONMENT",
"documentation": "Resource type value for the Environment resource."
},
{
"value": "Configuration",
"name": "CONFIGURATION",
"documentation": "Resource type value for the Configuration resource."
}
]
}
},
"com.amazonaws.appconfigdata#SensitiveBlob": {
"type": "blob",
"traits": {
"smithy.api#sensitive": {}
}
},
"com.amazonaws.appconfigdata#StartConfigurationSession": {
"type": "operation",
"input": {
"target": "com.amazonaws.appconfigdata#StartConfigurationSessionRequest"
},
"output": {
"target": "com.amazonaws.appconfigdata#StartConfigurationSessionResponse"
},
"errors": [
{
"target": "com.amazonaws.appconfigdata#BadRequestException"
},
{
"target": "com.amazonaws.appconfigdata#InternalServerException"
},
{
"target": "com.amazonaws.appconfigdata#ResourceNotFoundException"
},
{
"target": "com.amazonaws.appconfigdata#ThrottlingException"
}
],
"traits": {
"smithy.api#documentation": "<p>Starts a configuration session used to retrieve a deployed configuration. For more\n information about this API action and to view example CLI commands that show how to use\n it with the <a>GetLatestConfiguration</a> API action, see <a href=\"http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration\">Receiving the\n configuration</a> in the <i>AppConfig User Guide</i>. </p>",
"smithy.api#http": {
"method": "POST",
"uri": "/configurationsessions",
"code": 201
}
}
},
"com.amazonaws.appconfigdata#StartConfigurationSessionRequest": {
"type": "structure",
"members": {
"ApplicationIdentifier": {
"target": "com.amazonaws.appconfigdata#Identifier",
"traits": {
"smithy.api#documentation": "<p>The application ID or the application name.</p>",
"smithy.api#required": {}
}
},
"EnvironmentIdentifier": {
"target": "com.amazonaws.appconfigdata#Identifier",
"traits": {
"smithy.api#documentation": "<p>The environment ID or the environment name.</p>",
"smithy.api#required": {}
}
},
"ConfigurationProfileIdentifier": {
"target": "com.amazonaws.appconfigdata#Identifier",
"traits": {
"smithy.api#documentation": "<p>The configuration profile ID or the configuration profile name.</p>",
"smithy.api#required": {}
}
},
"RequiredMinimumPollIntervalInSeconds": {
"target": "com.amazonaws.appconfigdata#OptionalPollSeconds",
"traits": {
"smithy.api#documentation": "<p>Sets a constraint on a session. If you specify a value of, for example, 60 seconds, then\n the client that established the session can't call <a>GetLatestConfiguration</a>\n more frequently then every 60 seconds.</p>"
}
}
}
},
"com.amazonaws.appconfigdata#StartConfigurationSessionResponse": {
"type": "structure",
"members": {
"InitialConfigurationToken": {
"target": "com.amazonaws.appconfigdata#Token",
"traits": {
"smithy.api#documentation": "<p>Token encapsulating state about the configuration session. Provide this token to the\n <code>GetLatestConfiguration</code> API to retrieve configuration data.</p>\n <important>\n <p>This token should only be used once in your first call to\n <code>GetLatestConfiguration</code>. You MUST use the new token in the\n <code>GetLatestConfiguration</code> response\n (<code>NextPollConfigurationToken</code>) in each subsequent call to\n <code>GetLatestConfiguration</code>.</p>\n </important>"
}
}
}
},
"com.amazonaws.appconfigdata#String": {
"type": "string"
},
"com.amazonaws.appconfigdata#StringMap": {
"type": "map",
"key": {
"target": "com.amazonaws.appconfigdata#String"
},
"value": {
"target": "com.amazonaws.appconfigdata#String"
}
},
"com.amazonaws.appconfigdata#ThrottlingException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.appconfigdata#String"
}
},
"traits": {
"smithy.api#documentation": "<p>The request was denied due to request throttling.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 429
}
},
"com.amazonaws.appconfigdata#Token": {
"type": "string",
"traits": {
"smithy.api#pattern": "^\\S{1,8192}$"
}
}
}
}