AWS AppConfig Data

2023/02/13 - AWS AppConfig Data - 1 updated api methods

Changes  AWS AppConfig now offers the option to set a version label on hosted configuration versions. If a labeled hosted configuration version is deployed, its version label is available in the GetLatestConfiguration response.

GetLatestConfiguration (updated) Link ΒΆ
Changes (response)
{'VersionLabel': 'string'}

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 Retrieving the configuration in the AppConfig User Guide.

See also: AWS API Documentation

Request Syntax

client.get_latest_configuration(
    ConfigurationToken='string'
)
type ConfigurationToken:

string

param ConfigurationToken:

[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.

rtype:

dict

returns:

Response Syntax

{
    'NextPollConfigurationToken': 'string',
    'NextPollIntervalInSeconds': 123,
    'ContentType': 'string',
    'Configuration': StreamingBody(),
    'VersionLabel': 'string'
}

Response Structure

  • (dict) --

    • NextPollConfigurationToken (string) --

      The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration.

    • NextPollIntervalInSeconds (integer) --

      The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval.

    • ContentType (string) --

      A standard MIME type describing the format of the configuration content.

    • Configuration (:class:`.StreamingBody`) --

      The data of the configuration. This may be empty if the client already has the latest version of configuration.

    • VersionLabel (string) --

      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.