Struct MQClient

Source
pub struct MQClient { /* private fields */ }
Expand description

A client for the AmazonMQ API.

Implementations§

Source§

impl MQClient

Source

pub fn new(region: Region) -> MQClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> MQClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> MQClient

Trait Implementations§

Source§

impl Clone for MQClient

Source§

fn clone(&self) -> MQClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl MQ for MQClient

Source§

fn create_broker<'life0, 'async_trait>( &'life0 self, input: CreateBrokerRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateBrokerResponse, RusotoError<CreateBrokerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a broker. Note: This API is asynchronous.

Source§

fn create_configuration<'life0, 'async_trait>( &'life0 self, input: CreateConfigurationRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateConfigurationResponse, RusotoError<CreateConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).

Source§

fn create_tags<'life0, 'async_trait>( &'life0 self, input: CreateTagsRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<CreateTagsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add a tag to a resource.

Source§

fn create_user<'life0, 'async_trait>( &'life0 self, input: CreateUserRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, RusotoError<CreateUserError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates an ActiveMQ user.

Source§

fn delete_broker<'life0, 'async_trait>( &'life0 self, input: DeleteBrokerRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteBrokerResponse, RusotoError<DeleteBrokerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a broker. Note: This API is asynchronous.

Source§

fn delete_tags<'life0, 'async_trait>( &'life0 self, input: DeleteTagsRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteTagsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes a tag from a resource.

Source§

fn delete_user<'life0, 'async_trait>( &'life0 self, input: DeleteUserRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, RusotoError<DeleteUserError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an ActiveMQ user.

Source§

fn describe_broker<'life0, 'async_trait>( &'life0 self, input: DescribeBrokerRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeBrokerResponse, RusotoError<DescribeBrokerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about the specified broker.

Source§

fn describe_broker_engine_types<'life0, 'async_trait>( &'life0 self, input: DescribeBrokerEngineTypesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeBrokerEngineTypesResponse, RusotoError<DescribeBrokerEngineTypesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Describe available engine types and versions.

Source§

fn describe_broker_instance_options<'life0, 'async_trait>( &'life0 self, input: DescribeBrokerInstanceOptionsRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeBrokerInstanceOptionsResponse, RusotoError<DescribeBrokerInstanceOptionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Describe available broker instance options.

Source§

fn describe_configuration<'life0, 'async_trait>( &'life0 self, input: DescribeConfigurationRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeConfigurationResponse, RusotoError<DescribeConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about the specified configuration.

Source§

fn describe_configuration_revision<'life0, 'async_trait>( &'life0 self, input: DescribeConfigurationRevisionRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeConfigurationRevisionResponse, RusotoError<DescribeConfigurationRevisionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the specified configuration revision for the specified configuration.

Source§

fn describe_user<'life0, 'async_trait>( &'life0 self, input: DescribeUserRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeUserResponse, RusotoError<DescribeUserError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about an ActiveMQ user.

Source§

fn list_brokers<'life0, 'async_trait>( &'life0 self, input: ListBrokersRequest, ) -> Pin<Box<dyn Future<Output = Result<ListBrokersResponse, RusotoError<ListBrokersError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of all brokers.

Source§

fn list_configuration_revisions<'life0, 'async_trait>( &'life0 self, input: ListConfigurationRevisionsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListConfigurationRevisionsResponse, RusotoError<ListConfigurationRevisionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of all revisions for the specified configuration.

Source§

fn list_configurations<'life0, 'async_trait>( &'life0 self, input: ListConfigurationsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListConfigurationsResponse, RusotoError<ListConfigurationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of all configurations.

Source§

fn list_tags<'life0, 'async_trait>( &'life0 self, input: ListTagsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTagsResponse, RusotoError<ListTagsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists tags for a resource.

Source§

fn list_users<'life0, 'async_trait>( &'life0 self, input: ListUsersRequest, ) -> Pin<Box<dyn Future<Output = Result<ListUsersResponse, RusotoError<ListUsersError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of all ActiveMQ users.

Source§

fn reboot_broker<'life0, 'async_trait>( &'life0 self, input: RebootBrokerRequest, ) -> Pin<Box<dyn Future<Output = Result<RebootBrokerResponse, RusotoError<RebootBrokerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reboots a broker. Note: This API is asynchronous.

Source§

fn update_broker<'life0, 'async_trait>( &'life0 self, input: UpdateBrokerRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateBrokerResponse, RusotoError<UpdateBrokerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Adds a pending configuration change to a broker.

Source§

fn update_configuration<'life0, 'async_trait>( &'life0 self, input: UpdateConfigurationRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateConfigurationResponse, RusotoError<UpdateConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the specified configuration.

Source§

fn update_user<'life0, 'async_trait>( &'life0 self, input: UpdateUserRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateUserResponse, RusotoError<UpdateUserError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the information for an ActiveMQ user.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more