Struct aws_throwaway::Aws
source · pub struct Aws { /* private fields */ }Expand description
Construct this type to create and cleanup aws resources.
Implementations§
source§impl Aws
impl Aws
sourcepub fn builder(cleanup: CleanupResources) -> AwsBuilder
pub fn builder(cleanup: CleanupResources) -> AwsBuilder
Returns an AwsBuilder that will build a new Aws.
Before building the Aws, all preexisting resources conforming to the specified CleanupResources approach are destroyed.
The specified CleanupResources is then also used by the Aws::cleanup_resources method.
sourcepub async fn cleanup_resources(&self)
pub async fn cleanup_resources(&self)
Call before dropping Aws
Uses the CleanupResources method specified in the constructor.
sourcepub async fn cleanup_resources_static(cleanup: CleanupResources)
pub async fn cleanup_resources_static(cleanup: CleanupResources)
Call to cleanup without constructing an Aws
sourcepub async fn create_ec2_instance(
&self,
definition: Ec2InstanceDefinition
) -> Ec2Instance
pub async fn create_ec2_instance( &self, definition: Ec2InstanceDefinition ) -> Ec2Instance
Creates a new EC2 instance as defined by Ec2InstanceDefinition
Auto Trait Implementations§
impl !RefUnwindSafe for Aws
impl Send for Aws
impl Sync for Aws
impl Unpin for Aws
impl !UnwindSafe for Aws
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>
Creates a shared type from an unshared type.