Struct AppSyncClient

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

A client for the AWSAppSync API.

Implementations§

Source§

impl AppSyncClient

Source

pub fn new(region: Region) -> AppSyncClient

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, ) -> AppSyncClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

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

Trait Implementations§

Source§

impl AppSync for AppSyncClient

Source§

fn create_api_cache<'life0, 'async_trait>( &'life0 self, input: CreateApiCacheRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateApiCacheResponse, RusotoError<CreateApiCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a cache for the GraphQL API.

Source§

fn create_api_key<'life0, 'async_trait>( &'life0 self, input: CreateApiKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateApiKeyResponse, RusotoError<CreateApiKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a unique key that you can distribute to clients who are executing your API.

Source§

fn create_data_source<'life0, 'async_trait>( &'life0 self, input: CreateDataSourceRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateDataSourceResponse, RusotoError<CreateDataSourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a DataSource object.

Source§

fn create_function<'life0, 'async_trait>( &'life0 self, input: CreateFunctionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateFunctionResponse, RusotoError<CreateFunctionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a Function object.

A function is a reusable entity. Multiple functions can be used to compose the resolver logic.

Source§

fn create_graphql_api<'life0, 'async_trait>( &'life0 self, input: CreateGraphqlApiRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateGraphqlApiResponse, RusotoError<CreateGraphqlApiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a GraphqlApi object.

Source§

fn create_resolver<'life0, 'async_trait>( &'life0 self, input: CreateResolverRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateResolverResponse, RusotoError<CreateResolverError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a Resolver object.

A resolver converts incoming requests into a format that a data source can understand and converts the data source's responses into GraphQL.

Source§

fn create_type<'life0, 'async_trait>( &'life0 self, input: CreateTypeRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateTypeResponse, RusotoError<CreateTypeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a Type object.

Source§

fn delete_api_cache<'life0, 'async_trait>( &'life0 self, input: DeleteApiCacheRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteApiCacheResponse, RusotoError<DeleteApiCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an ApiCache object.

Source§

fn delete_api_key<'life0, 'async_trait>( &'life0 self, input: DeleteApiKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteApiKeyResponse, RusotoError<DeleteApiKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an API key.

Source§

fn delete_data_source<'life0, 'async_trait>( &'life0 self, input: DeleteDataSourceRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteDataSourceResponse, RusotoError<DeleteDataSourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a DataSource object.

Source§

fn delete_function<'life0, 'async_trait>( &'life0 self, input: DeleteFunctionRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteFunctionResponse, RusotoError<DeleteFunctionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a Function.

Source§

fn delete_graphql_api<'life0, 'async_trait>( &'life0 self, input: DeleteGraphqlApiRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteGraphqlApiResponse, RusotoError<DeleteGraphqlApiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a GraphqlApi object.

Source§

fn delete_resolver<'life0, 'async_trait>( &'life0 self, input: DeleteResolverRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteResolverResponse, RusotoError<DeleteResolverError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a Resolver object.

Source§

fn delete_type<'life0, 'async_trait>( &'life0 self, input: DeleteTypeRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteTypeResponse, RusotoError<DeleteTypeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a Type object.

Source§

fn flush_api_cache<'life0, 'async_trait>( &'life0 self, input: FlushApiCacheRequest, ) -> Pin<Box<dyn Future<Output = Result<FlushApiCacheResponse, RusotoError<FlushApiCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Flushes an ApiCache object.

Source§

fn get_api_cache<'life0, 'async_trait>( &'life0 self, input: GetApiCacheRequest, ) -> Pin<Box<dyn Future<Output = Result<GetApiCacheResponse, RusotoError<GetApiCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves an ApiCache object.

Source§

fn get_data_source<'life0, 'async_trait>( &'life0 self, input: GetDataSourceRequest, ) -> Pin<Box<dyn Future<Output = Result<GetDataSourceResponse, RusotoError<GetDataSourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a DataSource object.

Source§

fn get_function<'life0, 'async_trait>( &'life0 self, input: GetFunctionRequest, ) -> Pin<Box<dyn Future<Output = Result<GetFunctionResponse, RusotoError<GetFunctionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a Function.

Source§

fn get_graphql_api<'life0, 'async_trait>( &'life0 self, input: GetGraphqlApiRequest, ) -> Pin<Box<dyn Future<Output = Result<GetGraphqlApiResponse, RusotoError<GetGraphqlApiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a GraphqlApi object.

Source§

fn get_introspection_schema<'life0, 'async_trait>( &'life0 self, input: GetIntrospectionSchemaRequest, ) -> Pin<Box<dyn Future<Output = Result<GetIntrospectionSchemaResponse, RusotoError<GetIntrospectionSchemaError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the introspection schema for a GraphQL API.

Source§

fn get_resolver<'life0, 'async_trait>( &'life0 self, input: GetResolverRequest, ) -> Pin<Box<dyn Future<Output = Result<GetResolverResponse, RusotoError<GetResolverError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a Resolver object.

Source§

fn get_schema_creation_status<'life0, 'async_trait>( &'life0 self, input: GetSchemaCreationStatusRequest, ) -> Pin<Box<dyn Future<Output = Result<GetSchemaCreationStatusResponse, RusotoError<GetSchemaCreationStatusError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the current status of a schema creation operation.

Source§

fn get_type<'life0, 'async_trait>( &'life0 self, input: GetTypeRequest, ) -> Pin<Box<dyn Future<Output = Result<GetTypeResponse, RusotoError<GetTypeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a Type object.

Source§

fn list_api_keys<'life0, 'async_trait>( &'life0 self, input: ListApiKeysRequest, ) -> Pin<Box<dyn Future<Output = Result<ListApiKeysResponse, RusotoError<ListApiKeysError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the API keys for a given API.

API keys are deleted automatically 60 days after they expire. However, they may still be included in the response until they have actually been deleted. You can safely call DeleteApiKey to manually delete a key before it's automatically deleted.

Source§

fn list_data_sources<'life0, 'async_trait>( &'life0 self, input: ListDataSourcesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListDataSourcesResponse, RusotoError<ListDataSourcesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the data sources for a given API.

Source§

fn list_functions<'life0, 'async_trait>( &'life0 self, input: ListFunctionsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListFunctionsResponse, RusotoError<ListFunctionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List multiple functions.

Source§

fn list_graphql_apis<'life0, 'async_trait>( &'life0 self, input: ListGraphqlApisRequest, ) -> Pin<Box<dyn Future<Output = Result<ListGraphqlApisResponse, RusotoError<ListGraphqlApisError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists your GraphQL APIs.

Source§

fn list_resolvers<'life0, 'async_trait>( &'life0 self, input: ListResolversRequest, ) -> Pin<Box<dyn Future<Output = Result<ListResolversResponse, RusotoError<ListResolversError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the resolvers for a given API and type.

Source§

fn list_resolvers_by_function<'life0, 'async_trait>( &'life0 self, input: ListResolversByFunctionRequest, ) -> Pin<Box<dyn Future<Output = Result<ListResolversByFunctionResponse, RusotoError<ListResolversByFunctionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List the resolvers that are associated with a specific function.

Source§

fn list_tags_for_resource<'life0, 'async_trait>( &'life0 self, input: ListTagsForResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the tags for a resource.

Source§

fn list_types<'life0, 'async_trait>( &'life0 self, input: ListTypesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTypesResponse, RusotoError<ListTypesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the types for a given API.

Source§

fn start_schema_creation<'life0, 'async_trait>( &'life0 self, input: StartSchemaCreationRequest, ) -> Pin<Box<dyn Future<Output = Result<StartSchemaCreationResponse, RusotoError<StartSchemaCreationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Adds a new schema to your GraphQL API.

This operation is asynchronous. Use to determine when it has completed.

Source§

fn tag_resource<'life0, 'async_trait>( &'life0 self, input: TagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Tags a resource with user-supplied tags.

Source§

fn untag_resource<'life0, 'async_trait>( &'life0 self, input: UntagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Untags a resource.

Source§

fn update_api_cache<'life0, 'async_trait>( &'life0 self, input: UpdateApiCacheRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateApiCacheResponse, RusotoError<UpdateApiCacheError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the cache for the GraphQL API.

Source§

fn update_api_key<'life0, 'async_trait>( &'life0 self, input: UpdateApiKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateApiKeyResponse, RusotoError<UpdateApiKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates an API key. The key can be updated while it is not deleted.

Source§

fn update_data_source<'life0, 'async_trait>( &'life0 self, input: UpdateDataSourceRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateDataSourceResponse, RusotoError<UpdateDataSourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a DataSource object.

Source§

fn update_function<'life0, 'async_trait>( &'life0 self, input: UpdateFunctionRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateFunctionResponse, RusotoError<UpdateFunctionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a Function object.

Source§

fn update_graphql_api<'life0, 'async_trait>( &'life0 self, input: UpdateGraphqlApiRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateGraphqlApiResponse, RusotoError<UpdateGraphqlApiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a GraphqlApi object.

Source§

fn update_resolver<'life0, 'async_trait>( &'life0 self, input: UpdateResolverRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateResolverResponse, RusotoError<UpdateResolverError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a Resolver object.

Source§

fn update_type<'life0, 'async_trait>( &'life0 self, input: UpdateTypeRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateTypeResponse, RusotoError<UpdateTypeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a Type object.

Source§

impl Clone for AppSyncClient

Source§

fn clone(&self) -> AppSyncClient

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

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