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 Freeze for Aws
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>
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.