Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . appconfigdata ]

get-latest-configuration

Description

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 .

Warning

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 .

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  get-latest-configuration
--configuration-token <value>
<outfile>

Options

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

outfile (string) Filename where the content will be saved

See 'aws help' for descriptions of global parameters.

Output

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 -> (blob)

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