Table of Contents
A low-level client representing AWS AppConfig Data
Use the AppConfigData API, a capability of AWS AppConfig, to retrieve deployed configuration.
import boto3
client = boto3.client('appconfigdata')
These are the available methods:
Check if an operation can be paginated.
Retrieves the latest deployed configuration. This API may return empty Configuration data if the client already has the latest version. See StartConfigurationSession to obtain an InitialConfigurationToken to call this API.
Warning
Each call to GetLatestConfiguration returns a new ConfigurationToken (NextPollConfigurationToken in the response). This new token MUST be provided to the next call to GetLatestConfiguration when polling for configuration updates.
To avoid excess charges, we recommend that you include the ClientConfigurationVersion value with every call to GetConfiguration . This value must be saved on your client. Subsequent calls to GetConfiguration must pass this value by using the ClientConfigurationVersion parameter.
See also: AWS API Documentation
Request Syntax
response = client.get_latest_configuration(
ConfigurationToken='string'
)
[REQUIRED]
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.
{
'Configuration': StreamingBody(),
'ContentType': 'string',
'NextPollConfigurationToken': 'string',
'NextPollIntervalInSeconds': 123
}
Response Structure
Response parameters for the GetLatestConfiguration API
The data of the configuration. Note that this may be empty if the client already has the latest version of configuration.
A standard MIME type describing the format of the configuration content.
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. See RequiredMinimumPollIntervalInSeconds to set the desired poll interval.
Exceptions
Create a paginator for an operation.
Returns an object that can wait for some condition.
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
See also: AWS API Documentation
Request Syntax
response = client.start_configuration_session(
ApplicationIdentifier='string',
ConfigurationProfileIdentifier='string',
EnvironmentIdentifier='string',
RequiredMinimumPollIntervalInSeconds=123
)
[REQUIRED]
The application ID or the application name.
[REQUIRED]
The configuration profile ID or the configuration profile name.
[REQUIRED]
The environment ID or the environment name.
dict
Response Syntax
{
'InitialConfigurationToken': 'string'
}
Response Structure
(dict) --
Response parameters for the StartConfigurationSession API.
InitialConfigurationToken (string) --
Token encapsulating state about the configuration session. Provide this token to the GetLatestConfiguration API to retrieve configuration data.
Warning
This token should only be used once in your first call to GetLatestConfiguration. You MUST use the new token in the GetConfiguration response (NextPollConfigurationToken) in each subsequent call to GetLatestConfiguration.
Exceptions
The available paginators are: