pub struct AppSyncState {
pub apis: HashMap<String, GraphqlApi>,
pub event_apis: HashMap<String, Api>,
pub api_caches: HashMap<String, ApiCacheEntry>,
pub api_keys: HashMap<String, Vec<ApiKeyEntry>>,
pub channel_namespaces: HashMap<String, Vec<ChannelNamespaceEntry>>,
pub types: HashMap<String, Vec<TypeEntry>>,
pub schema_statuses: HashMap<String, SchemaStatus>,
pub resource_tags: HashMap<String, HashMap<String, String>>,
}Fields§
§apis: HashMap<String, GraphqlApi>§event_apis: HashMap<String, Api>§api_caches: HashMap<String, ApiCacheEntry>§api_keys: HashMap<String, Vec<ApiKeyEntry>>api_id -> Vec
channel_namespaces: HashMap<String, Vec<ChannelNamespaceEntry>>api_id -> Vec
types: HashMap<String, Vec<TypeEntry>>api_id -> Vec
schema_statuses: HashMap<String, SchemaStatus>api_id -> SchemaStatus
resource_arn -> tags
Implementations§
Source§impl AppSyncState
impl AppSyncState
pub fn create_graphql_api( &mut self, name: &str, authentication_type: &str, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&GraphqlApi, AppSyncError>
pub fn get_graphql_api(&self, api_id: &str) -> Result<&GraphqlApi, AppSyncError>
pub fn delete_graphql_api(&mut self, api_id: &str) -> Result<(), AppSyncError>
pub fn list_graphql_apis(&self) -> Vec<&GraphqlApi>
pub fn update_graphql_api( &mut self, api_id: &str, name: Option<&str>, authentication_type: Option<&str>, ) -> Result<&GraphqlApi, AppSyncError>
pub fn create_api( &mut self, name: &str, account_id: &str, region: &str, owner_contact: Option<&str>, tags: HashMap<String, String>, ) -> Result<&Api, AppSyncError>
pub fn get_api(&self, api_id: &str) -> Result<&Api, AppSyncError>
pub fn delete_api(&mut self, api_id: &str) -> Result<(), AppSyncError>
pub fn list_apis(&self) -> Vec<&Api>
pub fn create_api_cache( &mut self, api_id: &str, api_caching_behavior: &str, cache_type: &str, ttl: i64, at_rest_encryption_enabled: bool, transit_encryption_enabled: bool, health_metrics_config: Option<&str>, ) -> Result<&ApiCacheEntry, AppSyncError>
pub fn get_api_cache( &self, api_id: &str, ) -> Result<&ApiCacheEntry, AppSyncError>
pub fn delete_api_cache(&mut self, api_id: &str) -> Result<(), AppSyncError>
pub fn update_api_cache( &mut self, api_id: &str, api_caching_behavior: &str, cache_type: &str, ttl: i64, health_metrics_config: Option<&str>, ) -> Result<&ApiCacheEntry, AppSyncError>
pub fn flush_api_cache(&self, api_id: &str) -> Result<(), AppSyncError>
pub fn create_api_key( &mut self, api_id: &str, description: Option<&str>, expires: i64, ) -> Result<&ApiKeyEntry, AppSyncError>
pub fn delete_api_key( &mut self, api_id: &str, key_id: &str, ) -> Result<(), AppSyncError>
pub fn list_api_keys( &self, api_id: &str, ) -> Result<Vec<&ApiKeyEntry>, AppSyncError>
pub fn update_api_key( &mut self, api_id: &str, key_id: &str, description: Option<&str>, expires: Option<i64>, ) -> Result<&ApiKeyEntry, AppSyncError>
pub fn create_channel_namespace( &mut self, api_id: &str, name: &str, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&ChannelNamespaceEntry, AppSyncError>
pub fn delete_channel_namespace( &mut self, api_id: &str, name: &str, ) -> Result<(), AppSyncError>
pub fn list_channel_namespaces( &self, api_id: &str, ) -> Result<Vec<&ChannelNamespaceEntry>, AppSyncError>
pub fn start_schema_creation( &mut self, api_id: &str, _definition: &[u8], ) -> Result<&SchemaStatus, AppSyncError>
pub fn get_schema_creation_status( &self, api_id: &str, ) -> Result<&SchemaStatus, AppSyncError>
pub fn get_type( &self, api_id: &str, type_name: &str, _format: &str, ) -> Result<&TypeEntry, AppSyncError>
pub fn tag_resource(&mut self, arn: &str, tags: HashMap<String, String>)
pub fn untag_resource(&mut self, arn: &str, tag_keys: &[String])
Trait Implementations§
Source§impl Debug for AppSyncState
impl Debug for AppSyncState
Source§impl Default for AppSyncState
impl Default for AppSyncState
Source§fn default() -> AppSyncState
fn default() -> AppSyncState
Returns the “default value” for a type. Read more
Source§impl From<&AppSyncState> for AppsyncStateView
impl From<&AppSyncState> for AppsyncStateView
Source§fn from(state: &AppSyncState) -> Self
fn from(state: &AppSyncState) -> Self
Converts to this type from the input type.
Source§impl From<AppsyncStateView> for AppSyncState
impl From<AppsyncStateView> for AppSyncState
Source§fn from(view: AppsyncStateView) -> Self
fn from(view: AppsyncStateView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppSyncState
impl RefUnwindSafe for AppSyncState
impl Send for AppSyncState
impl Sync for AppSyncState
impl Unpin for AppSyncState
impl UnsafeUnpin for AppSyncState
impl UnwindSafe for AppSyncState
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.