latest_configurations
Creates, updates, deletes, gets or lists a latest_configurations resource.
Overview
| Name | latest_configurations |
| Type | Resource |
| Id | aws.appconfigdata.latest_configurations |
Fields
The following fields are returned by SELECT queries:
- get_latest_configuration
| Name | Datatype | Description |
|---|---|---|
configuration | string (byte) | The data of the configuration. This may be empty if the client already has the latest version of configuration. |
content_type | string | A standard MIME type describing the format of the configuration content. |
next_poll_configuration_token | string | The latest token describing the current state of the configuration session. This must be provided to the next call to GetLatestConfiguration. This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException. (pattern: <code>\S{1,8192}</code>) |
next_poll_interval_in_seconds | integer | The amount of time the client should wait before polling for configuration updates again. Use RequiredMinimumPollIntervalInSeconds to set the desired poll interval. |
version_label | 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. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_latest_configuration | select | configuration_token, region | 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. 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
configuration_token | string | 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. This token should only be used once. To support long poll use cases, the token is valid for up to 24 hours. If a GetLatestConfiguration call uses an expired token, the system returns BadRequestException. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_latest_configuration
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. 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.
SELECT
configuration,
content_type,
next_poll_configuration_token,
next_poll_interval_in_seconds,
version_label
FROM aws.appconfigdata.latest_configurations
WHERE configuration_token = '{{ configuration_token }}' -- required
AND region = '{{ region }}' -- required
;