Trait rusoto_lightsail::Lightsail
[−]
[src]
pub trait Lightsail { fn allocate_static_ip(
&self,
input: &AllocateStaticIpRequest
) -> Result<AllocateStaticIpResult, AllocateStaticIpError>; fn attach_static_ip(
&self,
input: &AttachStaticIpRequest
) -> Result<AttachStaticIpResult, AttachStaticIpError>; fn close_instance_public_ports(
&self,
input: &CloseInstancePublicPortsRequest
) -> Result<CloseInstancePublicPortsResult, CloseInstancePublicPortsError>; fn create_domain(
&self,
input: &CreateDomainRequest
) -> Result<CreateDomainResult, CreateDomainError>; fn create_domain_entry(
&self,
input: &CreateDomainEntryRequest
) -> Result<CreateDomainEntryResult, CreateDomainEntryError>; fn create_instance_snapshot(
&self,
input: &CreateInstanceSnapshotRequest
) -> Result<CreateInstanceSnapshotResult, CreateInstanceSnapshotError>; fn create_instances(
&self,
input: &CreateInstancesRequest
) -> Result<CreateInstancesResult, CreateInstancesError>; fn create_instances_from_snapshot(
&self,
input: &CreateInstancesFromSnapshotRequest
) -> Result<CreateInstancesFromSnapshotResult, CreateInstancesFromSnapshotError>; fn create_key_pair(
&self,
input: &CreateKeyPairRequest
) -> Result<CreateKeyPairResult, CreateKeyPairError>; fn delete_domain(
&self,
input: &DeleteDomainRequest
) -> Result<DeleteDomainResult, DeleteDomainError>; fn delete_domain_entry(
&self,
input: &DeleteDomainEntryRequest
) -> Result<DeleteDomainEntryResult, DeleteDomainEntryError>; fn delete_instance(
&self,
input: &DeleteInstanceRequest
) -> Result<DeleteInstanceResult, DeleteInstanceError>; fn delete_instance_snapshot(
&self,
input: &DeleteInstanceSnapshotRequest
) -> Result<DeleteInstanceSnapshotResult, DeleteInstanceSnapshotError>; fn delete_key_pair(
&self,
input: &DeleteKeyPairRequest
) -> Result<DeleteKeyPairResult, DeleteKeyPairError>; fn detach_static_ip(
&self,
input: &DetachStaticIpRequest
) -> Result<DetachStaticIpResult, DetachStaticIpError>; fn download_default_key_pair(
&self
) -> Result<DownloadDefaultKeyPairResult, DownloadDefaultKeyPairError>; fn get_active_names(
&self,
input: &GetActiveNamesRequest
) -> Result<GetActiveNamesResult, GetActiveNamesError>; fn get_blueprints(
&self,
input: &GetBlueprintsRequest
) -> Result<GetBlueprintsResult, GetBlueprintsError>; fn get_bundles(
&self,
input: &GetBundlesRequest
) -> Result<GetBundlesResult, GetBundlesError>; fn get_domain(
&self,
input: &GetDomainRequest
) -> Result<GetDomainResult, GetDomainError>; fn get_domains(
&self,
input: &GetDomainsRequest
) -> Result<GetDomainsResult, GetDomainsError>; fn get_instance(
&self,
input: &GetInstanceRequest
) -> Result<GetInstanceResult, GetInstanceError>; fn get_instance_access_details(
&self,
input: &GetInstanceAccessDetailsRequest
) -> Result<GetInstanceAccessDetailsResult, GetInstanceAccessDetailsError>; fn get_instance_metric_data(
&self,
input: &GetInstanceMetricDataRequest
) -> Result<GetInstanceMetricDataResult, GetInstanceMetricDataError>; fn get_instance_port_states(
&self,
input: &GetInstancePortStatesRequest
) -> Result<GetInstancePortStatesResult, GetInstancePortStatesError>; fn get_instance_snapshot(
&self,
input: &GetInstanceSnapshotRequest
) -> Result<GetInstanceSnapshotResult, GetInstanceSnapshotError>; fn get_instance_snapshots(
&self,
input: &GetInstanceSnapshotsRequest
) -> Result<GetInstanceSnapshotsResult, GetInstanceSnapshotsError>; fn get_instance_state(
&self,
input: &GetInstanceStateRequest
) -> Result<GetInstanceStateResult, GetInstanceStateError>; fn get_instances(
&self,
input: &GetInstancesRequest
) -> Result<GetInstancesResult, GetInstancesError>; fn get_key_pair(
&self,
input: &GetKeyPairRequest
) -> Result<GetKeyPairResult, GetKeyPairError>; fn get_key_pairs(
&self,
input: &GetKeyPairsRequest
) -> Result<GetKeyPairsResult, GetKeyPairsError>; fn get_operation(
&self,
input: &GetOperationRequest
) -> Result<GetOperationResult, GetOperationError>; fn get_operations(
&self,
input: &GetOperationsRequest
) -> Result<GetOperationsResult, GetOperationsError>; fn get_operations_for_resource(
&self,
input: &GetOperationsForResourceRequest
) -> Result<GetOperationsForResourceResult, GetOperationsForResourceError>; fn get_regions(
&self,
input: &GetRegionsRequest
) -> Result<GetRegionsResult, GetRegionsError>; fn get_static_ip(
&self,
input: &GetStaticIpRequest
) -> Result<GetStaticIpResult, GetStaticIpError>; fn get_static_ips(
&self,
input: &GetStaticIpsRequest
) -> Result<GetStaticIpsResult, GetStaticIpsError>; fn import_key_pair(
&self,
input: &ImportKeyPairRequest
) -> Result<ImportKeyPairResult, ImportKeyPairError>; fn is_vpc_peered(&self) -> Result<IsVpcPeeredResult, IsVpcPeeredError>; fn open_instance_public_ports(
&self,
input: &OpenInstancePublicPortsRequest
) -> Result<OpenInstancePublicPortsResult, OpenInstancePublicPortsError>; fn peer_vpc(&self) -> Result<PeerVpcResult, PeerVpcError>; fn put_instance_public_ports(
&self,
input: &PutInstancePublicPortsRequest
) -> Result<PutInstancePublicPortsResult, PutInstancePublicPortsError>; fn reboot_instance(
&self,
input: &RebootInstanceRequest
) -> Result<RebootInstanceResult, RebootInstanceError>; fn release_static_ip(
&self,
input: &ReleaseStaticIpRequest
) -> Result<ReleaseStaticIpResult, ReleaseStaticIpError>; fn start_instance(
&self,
input: &StartInstanceRequest
) -> Result<StartInstanceResult, StartInstanceError>; fn stop_instance(
&self,
input: &StopInstanceRequest
) -> Result<StopInstanceResult, StopInstanceError>; fn unpeer_vpc(&self) -> Result<UnpeerVpcResult, UnpeerVpcError>; fn update_domain_entry(
&self,
input: &UpdateDomainEntryRequest
) -> Result<UpdateDomainEntryResult, UpdateDomainEntryError>; }
Trait representing the capabilities of the Amazon Lightsail API. Amazon Lightsail clients implement this trait.
Required Methods
fn allocate_static_ip(
&self,
input: &AllocateStaticIpRequest
) -> Result<AllocateStaticIpResult, AllocateStaticIpError>
&self,
input: &AllocateStaticIpRequest
) -> Result<AllocateStaticIpResult, AllocateStaticIpError>
Allocates a static IP address.
fn attach_static_ip(
&self,
input: &AttachStaticIpRequest
) -> Result<AttachStaticIpResult, AttachStaticIpError>
&self,
input: &AttachStaticIpRequest
) -> Result<AttachStaticIpResult, AttachStaticIpError>
Attaches a static IP address to a specific Amazon Lightsail instance.
fn close_instance_public_ports(
&self,
input: &CloseInstancePublicPortsRequest
) -> Result<CloseInstancePublicPortsResult, CloseInstancePublicPortsError>
&self,
input: &CloseInstancePublicPortsRequest
) -> Result<CloseInstancePublicPortsResult, CloseInstancePublicPortsError>
Closes the public ports on a specific Amazon Lightsail instance.
fn create_domain(
&self,
input: &CreateDomainRequest
) -> Result<CreateDomainResult, CreateDomainError>
&self,
input: &CreateDomainRequest
) -> Result<CreateDomainResult, CreateDomainError>
Creates a domain resource for the specified domain (e.g., example.com).
fn create_domain_entry(
&self,
input: &CreateDomainEntryRequest
) -> Result<CreateDomainEntryResult, CreateDomainEntryError>
&self,
input: &CreateDomainEntryRequest
) -> Result<CreateDomainEntryResult, CreateDomainEntryError>
Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.
fn create_instance_snapshot(
&self,
input: &CreateInstanceSnapshotRequest
) -> Result<CreateInstanceSnapshotResult, CreateInstanceSnapshotError>
&self,
input: &CreateInstanceSnapshotRequest
) -> Result<CreateInstanceSnapshotResult, CreateInstanceSnapshotError>
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
fn create_instances(
&self,
input: &CreateInstancesRequest
) -> Result<CreateInstancesResult, CreateInstancesError>
&self,
input: &CreateInstancesRequest
) -> Result<CreateInstancesResult, CreateInstancesError>
Creates one or more Amazon Lightsail virtual private servers, or instances.
fn create_instances_from_snapshot(
&self,
input: &CreateInstancesFromSnapshotRequest
) -> Result<CreateInstancesFromSnapshotResult, CreateInstancesFromSnapshotError>
&self,
input: &CreateInstancesFromSnapshotRequest
) -> Result<CreateInstancesFromSnapshotResult, CreateInstancesFromSnapshotError>
Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
fn create_key_pair(
&self,
input: &CreateKeyPairRequest
) -> Result<CreateKeyPairResult, CreateKeyPairError>
&self,
input: &CreateKeyPairRequest
) -> Result<CreateKeyPairResult, CreateKeyPairError>
Creates sn SSH key pair.
fn delete_domain(
&self,
input: &DeleteDomainRequest
) -> Result<DeleteDomainResult, DeleteDomainError>
&self,
input: &DeleteDomainRequest
) -> Result<DeleteDomainResult, DeleteDomainError>
Deletes the specified domain recordset and all of its domain records.
fn delete_domain_entry(
&self,
input: &DeleteDomainEntryRequest
) -> Result<DeleteDomainEntryResult, DeleteDomainEntryError>
&self,
input: &DeleteDomainEntryRequest
) -> Result<DeleteDomainEntryResult, DeleteDomainEntryError>
Deletes a specific domain entry.
fn delete_instance(
&self,
input: &DeleteInstanceRequest
) -> Result<DeleteInstanceResult, DeleteInstanceError>
&self,
input: &DeleteInstanceRequest
) -> Result<DeleteInstanceResult, DeleteInstanceError>
Deletes a specific Amazon Lightsail virtual private server, or instance.
fn delete_instance_snapshot(
&self,
input: &DeleteInstanceSnapshotRequest
) -> Result<DeleteInstanceSnapshotResult, DeleteInstanceSnapshotError>
&self,
input: &DeleteInstanceSnapshotRequest
) -> Result<DeleteInstanceSnapshotResult, DeleteInstanceSnapshotError>
Deletes a specific snapshot of a virtual private server (or instance).
fn delete_key_pair(
&self,
input: &DeleteKeyPairRequest
) -> Result<DeleteKeyPairResult, DeleteKeyPairError>
&self,
input: &DeleteKeyPairRequest
) -> Result<DeleteKeyPairResult, DeleteKeyPairError>
Deletes a specific SSH key pair.
fn detach_static_ip(
&self,
input: &DetachStaticIpRequest
) -> Result<DetachStaticIpResult, DetachStaticIpError>
&self,
input: &DetachStaticIpRequest
) -> Result<DetachStaticIpResult, DetachStaticIpError>
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
fn download_default_key_pair(
&self
) -> Result<DownloadDefaultKeyPairResult, DownloadDefaultKeyPairError>
&self
) -> Result<DownloadDefaultKeyPairResult, DownloadDefaultKeyPairError>
Downloads the default SSH key pair from the user's account.
fn get_active_names(
&self,
input: &GetActiveNamesRequest
) -> Result<GetActiveNamesResult, GetActiveNamesError>
&self,
input: &GetActiveNamesRequest
) -> Result<GetActiveNamesResult, GetActiveNamesError>
Returns the names of all active (not deleted) resources.
fn get_blueprints(
&self,
input: &GetBlueprintsRequest
) -> Result<GetBlueprintsResult, GetBlueprintsError>
&self,
input: &GetBlueprintsRequest
) -> Result<GetBlueprintsResult, GetBlueprintsError>
Returns the list of available instance images, or blueprints. You can use a blueprint to create a new virtual private server already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.
fn get_bundles(
&self,
input: &GetBundlesRequest
) -> Result<GetBundlesResult, GetBundlesError>
&self,
input: &GetBundlesRequest
) -> Result<GetBundlesResult, GetBundlesError>
Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).
fn get_domain(
&self,
input: &GetDomainRequest
) -> Result<GetDomainResult, GetDomainError>
&self,
input: &GetDomainRequest
) -> Result<GetDomainResult, GetDomainError>
Returns information about a specific domain recordset.
fn get_domains(
&self,
input: &GetDomainsRequest
) -> Result<GetDomainsResult, GetDomainsError>
&self,
input: &GetDomainsRequest
) -> Result<GetDomainsResult, GetDomainsError>
Returns a list of all domains in the user's account.
fn get_instance(
&self,
input: &GetInstanceRequest
) -> Result<GetInstanceResult, GetInstanceError>
&self,
input: &GetInstanceRequest
) -> Result<GetInstanceResult, GetInstanceError>
Returns information about a specific Amazon Lightsail instance, which is a virtual private server.
fn get_instance_access_details(
&self,
input: &GetInstanceAccessDetailsRequest
) -> Result<GetInstanceAccessDetailsResult, GetInstanceAccessDetailsError>
&self,
input: &GetInstanceAccessDetailsRequest
) -> Result<GetInstanceAccessDetailsResult, GetInstanceAccessDetailsError>
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
fn get_instance_metric_data(
&self,
input: &GetInstanceMetricDataRequest
) -> Result<GetInstanceMetricDataResult, GetInstanceMetricDataError>
&self,
input: &GetInstanceMetricDataRequest
) -> Result<GetInstanceMetricDataResult, GetInstanceMetricDataError>
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
fn get_instance_port_states(
&self,
input: &GetInstancePortStatesRequest
) -> Result<GetInstancePortStatesResult, GetInstancePortStatesError>
&self,
input: &GetInstancePortStatesRequest
) -> Result<GetInstancePortStatesResult, GetInstancePortStatesError>
Returns the port states for a specific virtual private server, or instance.
fn get_instance_snapshot(
&self,
input: &GetInstanceSnapshotRequest
) -> Result<GetInstanceSnapshotResult, GetInstanceSnapshotError>
&self,
input: &GetInstanceSnapshotRequest
) -> Result<GetInstanceSnapshotResult, GetInstanceSnapshotError>
Returns information about a specific instance snapshot.
fn get_instance_snapshots(
&self,
input: &GetInstanceSnapshotsRequest
) -> Result<GetInstanceSnapshotsResult, GetInstanceSnapshotsError>
&self,
input: &GetInstanceSnapshotsRequest
) -> Result<GetInstanceSnapshotsResult, GetInstanceSnapshotsError>
Returns all instance snapshots for the user's account.
fn get_instance_state(
&self,
input: &GetInstanceStateRequest
) -> Result<GetInstanceStateResult, GetInstanceStateError>
&self,
input: &GetInstanceStateRequest
) -> Result<GetInstanceStateResult, GetInstanceStateError>
Returns the state of a specific instance. Works on one instance at a time.
fn get_instances(
&self,
input: &GetInstancesRequest
) -> Result<GetInstancesResult, GetInstancesError>
&self,
input: &GetInstancesRequest
) -> Result<GetInstancesResult, GetInstancesError>
Returns information about all Amazon Lightsail virtual private servers, or instances.
fn get_key_pair(
&self,
input: &GetKeyPairRequest
) -> Result<GetKeyPairResult, GetKeyPairError>
&self,
input: &GetKeyPairRequest
) -> Result<GetKeyPairResult, GetKeyPairError>
Returns information about a specific key pair.
fn get_key_pairs(
&self,
input: &GetKeyPairsRequest
) -> Result<GetKeyPairsResult, GetKeyPairsError>
&self,
input: &GetKeyPairsRequest
) -> Result<GetKeyPairsResult, GetKeyPairsError>
Returns information about all key pairs in the user's account.
fn get_operation(
&self,
input: &GetOperationRequest
) -> Result<GetOperationResult, GetOperationError>
&self,
input: &GetOperationRequest
) -> Result<GetOperationResult, GetOperationError>
Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.
fn get_operations(
&self,
input: &GetOperationsRequest
) -> Result<GetOperationsResult, GetOperationsError>
&self,
input: &GetOperationsRequest
) -> Result<GetOperationsResult, GetOperationsError>
Returns information about all operations.
Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each subsequent call to GetOperations
use the maximum (last) statusChangedAt
value from the previous request.
fn get_operations_for_resource(
&self,
input: &GetOperationsForResourceRequest
) -> Result<GetOperationsForResourceResult, GetOperationsForResourceError>
&self,
input: &GetOperationsForResourceRequest
) -> Result<GetOperationsForResourceResult, GetOperationsForResourceError>
Gets operations for a specific resource (e.g., an instance or a static IP).
fn get_regions(
&self,
input: &GetRegionsRequest
) -> Result<GetRegionsResult, GetRegionsError>
&self,
input: &GetRegionsRequest
) -> Result<GetRegionsResult, GetRegionsError>
Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones
parameter to also return the availability zones in a region.
fn get_static_ip(
&self,
input: &GetStaticIpRequest
) -> Result<GetStaticIpResult, GetStaticIpError>
&self,
input: &GetStaticIpRequest
) -> Result<GetStaticIpResult, GetStaticIpError>
Returns information about a specific static IP.
fn get_static_ips(
&self,
input: &GetStaticIpsRequest
) -> Result<GetStaticIpsResult, GetStaticIpsError>
&self,
input: &GetStaticIpsRequest
) -> Result<GetStaticIpsResult, GetStaticIpsError>
Returns information about all static IPs in the user's account.
fn import_key_pair(
&self,
input: &ImportKeyPairRequest
) -> Result<ImportKeyPairResult, ImportKeyPairError>
&self,
input: &ImportKeyPairRequest
) -> Result<ImportKeyPairResult, ImportKeyPairError>
Imports a public SSH key from a specific key pair.
fn is_vpc_peered(&self) -> Result<IsVpcPeeredResult, IsVpcPeeredError>
Returns a Boolean value indicating whether your Lightsail VPC is peered.
fn open_instance_public_ports(
&self,
input: &OpenInstancePublicPortsRequest
) -> Result<OpenInstancePublicPortsResult, OpenInstancePublicPortsError>
&self,
input: &OpenInstancePublicPortsRequest
) -> Result<OpenInstancePublicPortsResult, OpenInstancePublicPortsError>
Adds public ports to an Amazon Lightsail instance.
fn peer_vpc(&self) -> Result<PeerVpcResult, PeerVpcError>
Tries to peer the Lightsail VPC with the user's default VPC.
fn put_instance_public_ports(
&self,
input: &PutInstancePublicPortsRequest
) -> Result<PutInstancePublicPortsResult, PutInstancePublicPortsError>
&self,
input: &PutInstancePublicPortsRequest
) -> Result<PutInstancePublicPortsResult, PutInstancePublicPortsError>
Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.
fn reboot_instance(
&self,
input: &RebootInstanceRequest
) -> Result<RebootInstanceResult, RebootInstanceError>
&self,
input: &RebootInstanceRequest
) -> Result<RebootInstanceResult, RebootInstanceError>
Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.
fn release_static_ip(
&self,
input: &ReleaseStaticIpRequest
) -> Result<ReleaseStaticIpResult, ReleaseStaticIpError>
&self,
input: &ReleaseStaticIpRequest
) -> Result<ReleaseStaticIpResult, ReleaseStaticIpError>
Deletes a specific static IP from your account.
fn start_instance(
&self,
input: &StartInstanceRequest
) -> Result<StartInstanceResult, StartInstanceError>
&self,
input: &StartInstanceRequest
) -> Result<StartInstanceResult, StartInstanceError>
Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.
fn stop_instance(
&self,
input: &StopInstanceRequest
) -> Result<StopInstanceResult, StopInstanceError>
&self,
input: &StopInstanceRequest
) -> Result<StopInstanceResult, StopInstanceError>
Stops a specific Amazon Lightsail instance that is currently running.
fn unpeer_vpc(&self) -> Result<UnpeerVpcResult, UnpeerVpcError>
Attempts to unpeer the Lightsail VPC from the user's default VPC.
fn update_domain_entry(
&self,
input: &UpdateDomainEntryRequest
) -> Result<UpdateDomainEntryResult, UpdateDomainEntryError>
&self,
input: &UpdateDomainEntryRequest
) -> Result<UpdateDomainEntryResult, UpdateDomainEntryError>
Updates a domain recordset after it is created.
Implementors
impl<P, D> Lightsail for LightsailClient<P, D> where
P: ProvideAwsCredentials,
D: DispatchSignedRequest,