pub struct EfsClient { /* private fields */ }Implementations§
Source§impl EfsClient
impl EfsClient
pub fn new(config: AwsConfig) -> Self
pub async fn list_file_systems(&self) -> Result<Vec<EfsFileSystem>>
Sourcepub async fn describe_access_points(
&self,
file_system_id: &str,
) -> Result<Vec<EfsAccessPoint>>
pub async fn describe_access_points( &self, file_system_id: &str, ) -> Result<Vec<EfsAccessPoint>>
List the access points for a file system.
Sourcepub async fn describe_mount_targets(
&self,
file_system_id: &str,
) -> Result<Vec<EfsMountTarget>>
pub async fn describe_mount_targets( &self, file_system_id: &str, ) -> Result<Vec<EfsMountTarget>>
List the mount targets (network interfaces) for a file system, including their security groups. Sorted by availability zone name ascending.
Sourcepub async fn get_replication(
&self,
file_system_id: &str,
) -> Result<Option<String>>
pub async fn get_replication( &self, file_system_id: &str, ) -> Result<Option<String>>
Fetch the replication configuration for a file system. Returns
Ok(None) when the file system is not being replicated
(ReplicationNotFound).
Sourcepub async fn get_file_system_policy(
&self,
file_system_id: &str,
) -> Result<Option<String>>
pub async fn get_file_system_policy( &self, file_system_id: &str, ) -> Result<Option<String>>
Fetch and pretty-print the file system’s resource policy, if one exists.
Returns Ok(None) when no policy is attached (PolicyNotFound).
Sourcepub async fn get_monitoring_metrics(
&self,
file_system_id: &str,
) -> Result<EfsMonitoringData>
pub async fn get_monitoring_metrics( &self, file_system_id: &str, ) -> Result<EfsMonitoringData>
Fetch the six EFS monitoring graphs for a file system via CloudWatch GetMetricData (metric math). Mirrors the AWS console’s EFS monitoring tab.
Auto Trait Implementations§
impl !RefUnwindSafe for EfsClient
impl !UnwindSafe for EfsClient
impl Freeze for EfsClient
impl Send for EfsClient
impl Sync for EfsClient
impl Unpin for EfsClient
impl UnsafeUnpin for EfsClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.