{ "smithy": "2.0", "shapes": { "com.amazonaws.appconfigdata#AppConfigData": { "type": "service", "version": "2021-11-11", "operations": [ { "target": "com.amazonaws.appconfigdata#GetLatestConfiguration" } ], "resources": [ { "target": "com.amazonaws.appconfigdata#ConfigurationSession" } ], "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": "
AppConfig Data provides the data plane APIs your application uses to retrieve\n configuration data. Here's how it works:
\nYour application retrieves configuration data by first establishing a configuration\n session using the AppConfig Data StartConfigurationSession API action.\n Your session's client then makes periodic calls to GetLatestConfiguration\n to check for and retrieve the latest data available.
\nWhen calling StartConfigurationSession, your code sends the following\n information:
Identifiers (ID or name) of an AppConfig application, environment, and\n configuration profile that the session tracks.
\n(Optional) The minimum amount of time the session's client must wait between calls\n to GetLatestConfiguration.
In response, AppConfig provides an InitialConfigurationToken to be given to\n the session's client and used the first time it calls GetLatestConfiguration\n for that session.
This token should only be used once in your first call to\n GetLatestConfiguration. You must use the new token\n in the GetLatestConfiguration response\n (NextPollConfigurationToken) in each subsequent call to\n GetLatestConfiguration.
When calling GetLatestConfiguration, your client code sends the most recent\n ConfigurationToken value it has and receives in response:
\n NextPollConfigurationToken: the ConfigurationToken value\n to use on the next call to GetLatestConfiguration.
\n NextPollIntervalInSeconds: the duration the client should wait before\n making its next call to GetLatestConfiguration. This duration may vary\n over the course of the session, so it should be used instead of the value sent on the\n StartConfigurationSession call.
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.
\nThe InitialConfigurationToken and\n NextPollConfigurationToken should only be used once. To support long poll\n use cases, the tokens are valid for up to 24 hours. If a\n GetLatestConfiguration call uses an expired token, the system returns\n BadRequestException.
For more information and to view example CLI commands that show how to retrieve a\n configuration using the AppConfig Data StartConfigurationSession and\n GetLatestConfiguration API actions, see Retrieving the\n configuration in the AppConfig User Guide.
One or more specified parameters are not valid for the call.
" } } }, "traits": { "smithy.api#documentation": "Detailed information about the input that failed to satisfy the constraints specified by\n a call.
" } }, "com.amazonaws.appconfigdata#BadRequestException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.appconfigdata#String" }, "Reason": { "target": "com.amazonaws.appconfigdata#BadRequestReason", "traits": { "smithy.api#documentation": "Code indicating the reason the request was invalid.
" } }, "Details": { "target": "com.amazonaws.appconfigdata#BadRequestDetails", "traits": { "smithy.api#documentation": "Details describing why the request was invalid.
" } } }, "traits": { "smithy.api#documentation": "The input fails to satisfy the constraints specified by the service.
", "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": "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 StartConfigurationSession API action, see Retrieving the\n configuration in the AppConfig User Guide.
\nNote the following important information.
\nEach configuration token is only valid for one call to\n GetLatestConfiguration. The GetLatestConfiguration\n response includes a NextPollConfigurationToken that should always\n replace the token used for the just-completed call in preparation for the next\n one.
\n GetLatestConfiguration is a priced call. For more information, see\n Pricing.
Token describing the current state of the configuration session. To obtain a token,\n first call the StartConfigurationSession API. Note that every call to\n GetLatestConfiguration will return a new ConfigurationToken\n (NextPollConfigurationToken in the response) and must\n be provided to subsequent GetLatestConfiguration API calls.
This token should only be used once. To support long poll\n use cases, the token is valid for up to 24 hours. If a\n GetLatestConfiguration call uses an expired token, the system returns\n BadRequestException.
The latest token describing the current state of the configuration session. This\n must be provided to the next call to\n GetLatestConfiguration.\n
This token should only be used once. To support long poll\n use cases, the token is valid for up to 24 hours. If a\n GetLatestConfiguration call uses an expired token, the system returns\n BadRequestException.
The amount of time the client should wait before polling for configuration updates\n again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll\n interval.
A standard MIME type describing the format of the configuration content.
", "smithy.api#httpHeader": "Content-Type" } }, "Configuration": { "target": "com.amazonaws.appconfigdata#SensitiveBlob", "traits": { "smithy.api#documentation": "The data of the configuration. This may be empty if the client already has the latest\n version of configuration.
", "smithy.api#httpPayload": {} } }, "VersionLabel": { "target": "com.amazonaws.appconfigdata#String", "traits": { "smithy.api#documentation": "The user-defined label for the AppConfig hosted configuration version. This attribute doesn't apply if the configuration is not from an AppConfig hosted configuration version. If the client already has the latest version of the configuration data, this value is empty.
", "smithy.api#httpHeader": "Version-Label" } } } }, "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": 128 } } }, "com.amazonaws.appconfigdata#Integer": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.appconfigdata#InternalServerException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.appconfigdata#String" } }, "traits": { "smithy.api#documentation": "There was an internal failure in the service.
", "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": "The reason the parameter is invalid.
" } } }, "traits": { "smithy.api#documentation": "Information about an invalid parameter.
" } }, "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#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": "The type of resource that was not found.
" } }, "ReferencedBy": { "target": "com.amazonaws.appconfigdata#StringMap", "traits": { "smithy.api#documentation": "A map indicating which parameters in the request reference the resource that was not\n found.
" } } }, "traits": { "smithy.api#documentation": "The requested resource could not be found.
", "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": "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 GetLatestConfiguration API action, see Retrieving the\n configuration in the AppConfig User Guide.
", "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": "The application ID or the application name.
", "smithy.api#required": {} } }, "EnvironmentIdentifier": { "target": "com.amazonaws.appconfigdata#Identifier", "traits": { "smithy.api#documentation": "The environment ID or the environment name.
", "smithy.api#required": {} } }, "ConfigurationProfileIdentifier": { "target": "com.amazonaws.appconfigdata#Identifier", "traits": { "smithy.api#documentation": "The configuration profile ID or the configuration profile name.
", "smithy.api#required": {} } }, "RequiredMinimumPollIntervalInSeconds": { "target": "com.amazonaws.appconfigdata#OptionalPollSeconds", "traits": { "smithy.api#documentation": "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 GetLatestConfiguration\n more frequently than every 60 seconds.
" } } } }, "com.amazonaws.appconfigdata#StartConfigurationSessionResponse": { "type": "structure", "members": { "InitialConfigurationToken": { "target": "com.amazonaws.appconfigdata#Token", "traits": { "smithy.api#documentation": "Token encapsulating state about the configuration session. Provide this token to the\n GetLatestConfiguration API to retrieve configuration data.
This token should only be used once in your first call to\n GetLatestConfiguration. You must use the new token\n in the GetLatestConfiguration response\n (NextPollConfigurationToken) in each subsequent call to\n GetLatestConfiguration.
The InitialConfigurationToken and\n NextPollConfigurationToken should only be used once. To support long poll\n use cases, the tokens are valid for up to 24 hours. If a\n GetLatestConfiguration call uses an expired token, the system returns\n BadRequestException.
The request was denied due to request throttling.
", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.appconfigdata#Token": { "type": "string", "traits": { "smithy.api#pattern": "^\\S{1,8192}$" } } } }