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 create_admin(
&self,
account_id: &str,
user_name: &str,
) -> Result<CreateAdminResponse, Error>
pub async fn create_admin( &self, account_id: &str, user_name: &str, ) -> Result<CreateAdminResponse, Error>
Create an IAM admin user in a specific account. Returns credentials for the new user. Solves the multi-account bootstrap problem: the root bypass only targets the default account, so this endpoint lets callers create credentials for any account.
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.
Sourcepub async fn reset_service_for_account(
&self,
service: &str,
account_id: &str,
) -> Result<ResetServiceResponse, Error>
pub async fn reset_service_for_account( &self, service: &str, account_id: &str, ) -> Result<ResetServiceResponse, Error>
Reset a single service’s state for a specific account only.
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<'_>
pub fn rds(&self) -> RdsClient<'_>
pub fn ec2(&self) -> Ec2Client<'_>
pub fn elasticache(&self) -> ElastiCacheClient<'_>
pub fn apigatewayv2(&self) -> ApiGatewayV2Client<'_>
pub fn stepfunctions(&self) -> StepFunctionsClient<'_>
pub fn bedrock(&self) -> BedrockClient<'_>
pub fn bedrock_agent(&self) -> BedrockAgentClient<'_>
pub fn bedrock_agent_runtime(&self) -> BedrockAgentRuntimeClient<'_>
pub fn ecs(&self) -> EcsClient<'_>
pub fn application_autoscaling(&self) -> ApplicationAutoScalingClient<'_>
pub fn athena(&self) -> AthenaClient<'_>
pub fn organizations(&self) -> OrganizationsClient<'_>
pub fn acm(&self) -> AcmClient<'_>
pub fn ecr(&self) -> EcrClient<'_>
pub fn elbv2(&self) -> Elbv2Client<'_>
pub fn glue(&self) -> GlueClient<'_>
pub fn cloudwatch(&self) -> CloudWatchClient<'_>
pub fn firehose(&self) -> FirehoseClient<'_>
pub fn logs(&self) -> LogsClient<'_>
pub fn route53(&self) -> Route53Client<'_>
pub fn scheduler(&self) -> SchedulerClient<'_>
pub fn ssm(&self) -> SsmClient<'_>
pub fn kms(&self) -> KmsClient<'_>
pub fn wafv2(&self) -> WafV2Client<'_>
pub fn cloudfront(&self) -> CloudFrontClient<'_>
Auto Trait Implementations§
impl !RefUnwindSafe for FakeCloud
impl !UnwindSafe for FakeCloud
impl Freeze for FakeCloud
impl Send for FakeCloud
impl Sync for FakeCloud
impl Unpin for FakeCloud
impl UnsafeUnpin 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