pub struct FakeCloud { /* private fields */ }Expand description
Client for the fakecloud introspection and simulation API (/_fakecloud/*).
Implementations§
Source§impl FakeCloud
impl FakeCloud
Sourcepub fn new(base_url: &str) -> Self
pub fn new(base_url: &str) -> Self
Create a new client pointing at the given fakecloud base URL (e.g. http://localhost:4566).
Sourcepub async fn health(&self) -> Result<HealthResponse, Error>
pub async fn health(&self) -> Result<HealthResponse, Error>
Check server health.
Sourcepub async fn reset(&self) -> Result<ResetResponse, Error>
pub async fn reset(&self) -> Result<ResetResponse, Error>
Reset all service state. Uses the legacy /_reset endpoint.
Sourcepub async fn reset_service(
&self,
service: &str,
) -> Result<ResetServiceResponse, Error>
pub async fn reset_service( &self, service: &str, ) -> Result<ResetServiceResponse, Error>
Reset a single service’s state.
pub fn lambda(&self) -> LambdaClient<'_>
pub fn ses(&self) -> SesClient<'_>
pub fn sns(&self) -> SnsClient<'_>
pub fn sqs(&self) -> SqsClient<'_>
pub fn events(&self) -> EventsClient<'_>
pub fn s3(&self) -> S3Client<'_>
pub fn dynamodb(&self) -> DynamoDbClient<'_>
pub fn secretsmanager(&self) -> SecretsManagerClient<'_>
pub fn cognito(&self) -> CognitoClient<'_>
Auto Trait Implementations§
impl Freeze for FakeCloud
impl !RefUnwindSafe for FakeCloud
impl Send for FakeCloud
impl Sync for FakeCloud
impl Unpin for FakeCloud
impl UnsafeUnpin for FakeCloud
impl !UnwindSafe for FakeCloud
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