{ "version":"2.0", "metadata":{ "apiVersion":"2021-11-11", "endpointPrefix":"appconfigdata", "jsonVersion":"1.0", "protocol":"rest-json", "serviceFullName":"AWS AppConfig Data", "serviceId":"AppConfigData", "signatureVersion":"v4", "signingName":"appconfig", "uid":"appconfigdata-2021-11-11" }, "operations":{ "GetLatestConfiguration":{ "name":"GetLatestConfiguration", "http":{ "method":"GET", "requestUri":"/configuration", "responseCode":200 }, "input":{"shape":"GetLatestConfigurationRequest"}, "output":{"shape":"GetLatestConfigurationResponse"}, "errors":[ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"}, {"shape":"BadRequestException"}, {"shape":"InternalServerException"} ], "documentation":"
Retrieves the latest deployed configuration. This API may return empty configuration data if the client already has the latest version. For more information about this API action and to view example CLI commands that show how to use it with the StartConfigurationSession API action, see Receiving the configuration in the AppConfig User Guide.
Note the following important information.
Each configuration token is only valid for one call to GetLatestConfiguration
. The GetLatestConfiguration
response includes a NextPollConfigurationToken
that should always replace the token used for the just-completed call in preparation for the next one.
GetLatestConfiguration
is a priced call. For more information, see Pricing.
Starts a configuration session used to retrieve a deployed configuration. For more information about this API action and to view example CLI commands that show how to use it with the GetLatestConfiguration API action, see Receiving the configuration in the AppConfig User Guide.
" } }, "shapes":{ "BadRequestDetails":{ "type":"structure", "members":{ "InvalidParameters":{ "shape":"InvalidParameterMap", "documentation":"One or more specified parameters are not valid for the call.
" } }, "documentation":"Detailed information about the input that failed to satisfy the constraints specified by a call.
", "union":true }, "BadRequestException":{ "type":"structure", "members":{ "Message":{"shape":"String"}, "Reason":{ "shape":"BadRequestReason", "documentation":"Code indicating the reason the request was invalid.
" }, "Details":{ "shape":"BadRequestDetails", "documentation":"Details describing why the request was invalid.
" } }, "documentation":"The input fails to satisfy the constraints specified by the service.
", "error":{ "httpStatusCode":400, "senderFault":true }, "exception":true }, "BadRequestReason":{ "type":"string", "enum":["InvalidParameters"] }, "GetLatestConfigurationRequest":{ "type":"structure", "required":["ConfigurationToken"], "members":{ "ConfigurationToken":{ "shape":"Token", "documentation":"Token describing the current state of the configuration session. To obtain a token, first call the StartConfigurationSession API. Note that every call to GetLatestConfiguration
will return a new ConfigurationToken
(NextPollConfigurationToken
in the response) and MUST be provided to subsequent GetLatestConfiguration
API calls.
The latest token describing the current state of the configuration session. This MUST be provided to the next call to GetLatestConfiguration.
The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds
to set the desired poll interval.
A standard MIME type describing the format of the configuration content.
", "location":"header", "locationName":"Content-Type" }, "Configuration":{ "shape":"SyntheticGetLatestConfigurationResponseBlob", "documentation":"The data of the configuration. This may be empty if the client already has the latest version of configuration.
" } }, "payload":"Configuration" }, "Identifier":{ "type":"string", "max":64, "min":1 }, "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", "members":{ "Message":{"shape":"String"} }, "documentation":"There was an internal failure in the service.
", "error":{"httpStatusCode":500}, "exception":true, "fault":true }, "InvalidParameterDetail":{ "type":"structure", "members":{ "Problem":{ "shape":"InvalidParameterProblem", "documentation":"The reason the parameter is invalid.
" } }, "documentation":"Information about an invalid parameter.
" }, "InvalidParameterMap":{ "type":"map", "key":{"shape":"String"}, "value":{"shape":"InvalidParameterDetail"} }, "InvalidParameterProblem":{ "type":"string", "enum":[ "Corrupted", "Expired", "PollIntervalNotSatisfied" ] }, "OptionalPollSeconds":{ "type":"integer", "box":true, "max":86400, "min":15 }, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"String"}, "ResourceType":{ "shape":"ResourceType", "documentation":"The type of resource that was not found.
" }, "ReferencedBy":{ "shape":"StringMap", "documentation":"A map indicating which parameters in the request reference the resource that was not found.
" } }, "documentation":"The requested resource could not be found.
", "error":{ "httpStatusCode":404, "senderFault":true }, "exception":true }, "ResourceType":{ "type":"string", "enum":[ "Application", "ConfigurationProfile", "Deployment", "Environment", "Configuration" ] }, "StartConfigurationSessionRequest":{ "type":"structure", "required":[ "ApplicationIdentifier", "EnvironmentIdentifier", "ConfigurationProfileIdentifier" ], "members":{ "ApplicationIdentifier":{ "shape":"Identifier", "documentation":"The application ID or the application name.
" }, "EnvironmentIdentifier":{ "shape":"Identifier", "documentation":"The environment ID or the environment name.
" }, "ConfigurationProfileIdentifier":{ "shape":"Identifier", "documentation":"The configuration profile ID or the configuration profile name.
" }, "RequiredMinimumPollIntervalInSeconds":{ "shape":"OptionalPollSeconds", "documentation":"Sets a constraint on a session. If you specify a value of, for example, 60 seconds, then the client that established the session can't call GetLatestConfiguration more frequently then every 60 seconds.
" } } }, "StartConfigurationSessionResponse":{ "type":"structure", "members":{ "InitialConfigurationToken":{ "shape":"Token", "documentation":"Token encapsulating state about the configuration session. Provide this token to the GetLatestConfiguration
API to retrieve configuration data.
This token should only be used once in your first call to GetLatestConfiguration
. You MUST use the new token in the GetLatestConfiguration
response (NextPollConfigurationToken
) in each subsequent call to GetLatestConfiguration
.
The request was denied due to request throttling.
", "error":{ "httpStatusCode":429, "senderFault":true }, "exception":true }, "Token":{ "type":"string", "pattern":"\\S{1,8192}" } }, "documentation":"AppConfig Data provides the data plane APIs your application uses to retrieve configuration data. Here's how it works:
Your application retrieves configuration data by first establishing a configuration session using the AppConfig Data StartConfigurationSession API action. Your session's client then makes periodic calls to GetLatestConfiguration to check for and retrieve the latest data available.
When calling StartConfigurationSession
, your code sends the following information:
Identifiers (ID or name) of an AppConfig application, environment, and configuration profile that the session tracks.
(Optional) The minimum amount of time the session's client must wait between calls to GetLatestConfiguration
.
In response, AppConfig provides an InitialConfigurationToken
to be given to the session's client and used the first time it calls GetLatestConfiguration
for that session.
When calling GetLatestConfiguration
, your client code sends the most recent ConfigurationToken
value it has and receives in response:
NextPollConfigurationToken
: the ConfigurationToken
value to use on the next call to GetLatestConfiguration
.
NextPollIntervalInSeconds
: the duration the client should wait before making its next call to GetLatestConfiguration
. This duration may vary over the course of the session, so it should be used instead of the value sent on the StartConfigurationSession
call.
The configuration: the latest data intended for the session. This may be empty if the client already has the latest version of the configuration.
For more information and to view example CLI commands that show how to retrieve a configuration using the AppConfig Data StartConfigurationSession
and GetLatestConfiguration
API actions, see Receiving the configuration in the AppConfig User Guide.