Struct aws_sdk_appconfigdata::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for AWS AppConfig Data
Client for invoking operations on AWS AppConfig Data. Each operation on AWS AppConfig Data is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_appconfigdata::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_appconfigdata::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_appconfigdata::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn get_latest_configuration(&self) -> GetLatestConfiguration
pub fn get_latest_configuration(&self) -> GetLatestConfiguration
Constructs a fluent builder for the GetLatestConfiguration operation.
- The fluent builder is configurable:
configuration_token(impl Into<String>)/set_configuration_token(Option<String>):Token describing the current state of the configuration session. To obtain a token, first call the
StartConfigurationSessionAPI. Note that every call toGetLatestConfigurationwill return a newConfigurationToken(NextPollConfigurationTokenin the response) and MUST be provided to subsequentGetLatestConfigurationAPI calls.
- On success, responds with
GetLatestConfigurationOutputwith field(s):next_poll_configuration_token(Option<String>):The latest token describing the current state of the configuration session. This MUST be provided to the next call to
GetLatestConfiguration.next_poll_interval_in_seconds(i32):The amount of time the client should wait before polling for configuration updates again. Use
RequiredMinimumPollIntervalInSecondsto set the desired poll interval.content_type(Option<String>):A standard MIME type describing the format of the configuration content.
configuration(Option<Blob>):The data of the configuration. This may be empty if the client already has the latest version of configuration.
- On failure, responds with
SdkError<GetLatestConfigurationError>
sourcepub fn start_configuration_session(&self) -> StartConfigurationSession
pub fn start_configuration_session(&self) -> StartConfigurationSession
Constructs a fluent builder for the StartConfigurationSession operation.
- The fluent builder is configurable:
application_identifier(impl Into<String>)/set_application_identifier(Option<String>):The application ID or the application name.
environment_identifier(impl Into<String>)/set_environment_identifier(Option<String>):The environment ID or the environment name.
configuration_profile_identifier(impl Into<String>)/set_configuration_profile_identifier(Option<String>):The configuration profile ID or the configuration profile name.
required_minimum_poll_interval_in_seconds(i32)/set_required_minimum_poll_interval_in_seconds(Option<i32>):Sets a constraint on a session. If you specify a value of, for example, 60 seconds, then the client that established the session can’t call
GetLatestConfigurationmore frequently then every 60 seconds.
- On success, responds with
StartConfigurationSessionOutputwith field(s):initial_configuration_token(Option<String>):Token encapsulating state about the configuration session. Provide this token to the
GetLatestConfigurationAPI to retrieve configuration data.This token should only be used once in your first call to
GetLatestConfiguration. You MUST use the new token in theGetLatestConfigurationresponse (NextPollConfigurationToken) in each subsequent call toGetLatestConfiguration.
- On failure, responds with
SdkError<StartConfigurationSessionError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more