Skip to main content

Ec2Client

Struct Ec2Client 

Source
pub struct Ec2Client { /* private fields */ }

Implementations§

Source§

impl Ec2Client

Source

pub fn new(client: Client, credentials: AwsCredentialProvider) -> Self

Create a new EC2 client.

Trait Implementations§

Source§

impl Clone for Ec2Client

Source§

fn clone(&self) -> Ec2Client

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Ec2Client

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ec2Api for Ec2Client

Source§

fn describe_vpcs<'life0, 'async_trait>( &'life0 self, request: DescribeVpcsRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeVpcsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_vpc_attribute<'life0, 'async_trait>( &'life0 self, request: DescribeVpcAttributeRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeVpcAttributeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_vpc<'life0, 'async_trait>( &'life0 self, request: CreateVpcRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateVpcResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_vpc<'life0, 'life1, 'async_trait>( &'life0 self, vpc_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn modify_vpc_attribute<'life0, 'async_trait>( &'life0 self, request: ModifyVpcAttributeRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_subnets<'life0, 'async_trait>( &'life0 self, request: DescribeSubnetsRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeSubnetsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_subnet<'life0, 'async_trait>( &'life0 self, request: CreateSubnetRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateSubnetResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_subnet<'life0, 'life1, 'async_trait>( &'life0 self, subnet_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn create_internet_gateway<'life0, 'async_trait>( &'life0 self, request: CreateInternetGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateInternetGatewayResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_internet_gateway<'life0, 'life1, 'async_trait>( &'life0 self, internet_gateway_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn attach_internet_gateway<'life0, 'async_trait>( &'life0 self, request: AttachInternetGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn detach_internet_gateway<'life0, 'async_trait>( &'life0 self, request: DetachInternetGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_internet_gateways<'life0, 'async_trait>( &'life0 self, request: DescribeInternetGatewaysRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeInternetGatewaysResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_nat_gateway<'life0, 'async_trait>( &'life0 self, request: CreateNatGatewayRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateNatGatewayResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_nat_gateway<'life0, 'life1, 'async_trait>( &'life0 self, nat_gateway_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<DeleteNatGatewayResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn describe_nat_gateways<'life0, 'async_trait>( &'life0 self, request: DescribeNatGatewaysRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeNatGatewaysResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn allocate_address<'life0, 'async_trait>( &'life0 self, request: AllocateAddressRequest, ) -> Pin<Box<dyn Future<Output = Result<AllocateAddressResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn release_address<'life0, 'life1, 'async_trait>( &'life0 self, allocation_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn describe_route_tables<'life0, 'async_trait>( &'life0 self, request: DescribeRouteTablesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeRouteTablesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_route_table<'life0, 'async_trait>( &'life0 self, request: CreateRouteTableRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateRouteTableResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_route_table<'life0, 'life1, 'async_trait>( &'life0 self, route_table_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn create_route<'life0, 'async_trait>( &'life0 self, request: CreateRouteRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_route<'life0, 'async_trait>( &'life0 self, request: DeleteRouteRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn associate_route_table<'life0, 'async_trait>( &'life0 self, request: AssociateRouteTableRequest, ) -> Pin<Box<dyn Future<Output = Result<AssociateRouteTableResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn disassociate_route_table<'life0, 'life1, 'async_trait>( &'life0 self, association_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn describe_security_groups<'life0, 'async_trait>( &'life0 self, request: DescribeSecurityGroupsRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeSecurityGroupsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_network_interfaces<'life0, 'async_trait>( &'life0 self, request: DescribeNetworkInterfacesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeNetworkInterfacesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_security_group<'life0, 'async_trait>( &'life0 self, request: CreateSecurityGroupRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateSecurityGroupResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_security_group<'life0, 'life1, 'async_trait>( &'life0 self, group_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn authorize_security_group_ingress<'life0, 'async_trait>( &'life0 self, request: AuthorizeSecurityGroupIngressRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn authorize_security_group_egress<'life0, 'async_trait>( &'life0 self, request: AuthorizeSecurityGroupEgressRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn revoke_security_group_ingress<'life0, 'async_trait>( &'life0 self, request: RevokeSecurityGroupIngressRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn revoke_security_group_egress<'life0, 'async_trait>( &'life0 self, request: RevokeSecurityGroupEgressRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_availability_zones<'life0, 'async_trait>( &'life0 self, request: DescribeAvailabilityZonesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeAvailabilityZonesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_images<'life0, 'async_trait>( &'life0 self, request: DescribeImagesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeImagesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn terminate_instances<'life0, 'async_trait>( &'life0 self, instance_ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<TerminateInstancesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_instances<'life0, 'async_trait>( &'life0 self, request: DescribeInstancesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeInstancesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_volume<'life0, 'async_trait>( &'life0 self, request: CreateVolumeRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateVolumeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn modify_volume<'life0, 'async_trait>( &'life0 self, request: ModifyVolumeRequest, ) -> Pin<Box<dyn Future<Output = Result<ModifyVolumeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_volumes_modifications<'life0, 'async_trait>( &'life0 self, request: DescribeVolumesModificationsRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeVolumesModificationsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_volume<'life0, 'life1, 'async_trait>( &'life0 self, volume_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn describe_volumes<'life0, 'async_trait>( &'life0 self, request: DescribeVolumesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeVolumesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn attach_volume<'life0, 'async_trait>( &'life0 self, request: AttachVolumeRequest, ) -> Pin<Box<dyn Future<Output = Result<AttachVolumeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn detach_volume<'life0, 'async_trait>( &'life0 self, request: DetachVolumeRequest, ) -> Pin<Box<dyn Future<Output = Result<DetachVolumeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_launch_template<'life0, 'async_trait>( &'life0 self, request: CreateLaunchTemplateRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateLaunchTemplateResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_launch_template_version<'life0, 'async_trait>( &'life0 self, request: CreateLaunchTemplateVersionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateLaunchTemplateVersionResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new version of an existing launch template with updated launch template data. ASGs using $Latest will automatically pick up the new version. See: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html
Source§

fn delete_launch_template<'life0, 'async_trait>( &'life0 self, request: DeleteLaunchTemplateRequest, ) -> Pin<Box<dyn Future<Output = Result<DeleteLaunchTemplateResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe_launch_templates<'life0, 'async_trait>( &'life0 self, request: DescribeLaunchTemplatesRequest, ) -> Pin<Box<dyn Future<Output = Result<DescribeLaunchTemplatesResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_console_output<'life0, 'async_trait>( &'life0 self, instance_id: String, ) -> Pin<Box<dyn Future<Output = Result<GetConsoleOutputResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the console output for an EC2 instance (base64-encoded). See: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetConsoleOutput.html

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more