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
. TheGetLatestConfiguration
response includes aNextPollConfigurationToken
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.
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 moreAuto Trait Implementations§
impl Freeze for GetLatestConfigurationFluentBuilder
impl !RefUnwindSafe for GetLatestConfigurationFluentBuilder
impl Send for GetLatestConfigurationFluentBuilder
impl Sync for GetLatestConfigurationFluentBuilder
impl Unpin for GetLatestConfigurationFluentBuilder
impl !UnwindSafe for GetLatestConfigurationFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more