Struct aws_sdk_appconfigdata::operation::get_latest_configuration::builders::GetLatestConfigurationFluentBuilder
source · pub struct GetLatestConfigurationFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetLatestConfiguration.
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. TheGetLatestConfigurationresponse includes aNextPollConfigurationTokenthat should always replace the token used for the just-completed call in preparation for the next one. -
GetLatestConfigurationis a priced call. For more information, see Pricing.
Implementations§
source§impl GetLatestConfigurationFluentBuilder
impl GetLatestConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &GetLatestConfigurationInputBuilder
pub fn as_input(&self) -> &GetLatestConfigurationInputBuilder
Access the GetLatestConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<GetLatestConfigurationOutput, SdkError<GetLatestConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<GetLatestConfigurationOutput, SdkError<GetLatestConfigurationError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetLatestConfigurationOutput, GetLatestConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<GetLatestConfigurationOutput, GetLatestConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn configuration_token(self, input: impl Into<String>) -> Self
pub fn configuration_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_configuration_token(self, input: Option<String>) -> Self
pub fn set_configuration_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_configuration_token(&self) -> &Option<String>
pub fn get_configuration_token(&self) -> &Option<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.
Trait Implementations§
source§impl Clone for GetLatestConfigurationFluentBuilder
impl Clone for GetLatestConfigurationFluentBuilder
source§fn clone(&self) -> GetLatestConfigurationFluentBuilder
fn clone(&self) -> GetLatestConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more