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

Allocates a static IP address.

Attaches a static IP address to a specific Amazon Lightsail instance.

Closes the public ports on a specific Amazon Lightsail instance.

Creates a domain resource for the specified domain (e.g., example.com).

Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.

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.

Creates one or more Amazon Lightsail virtual private servers, or instances.

Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.

Creates sn SSH key pair.

Deletes the specified domain recordset and all of its domain records.

Deletes a specific domain entry.

Deletes a specific Amazon Lightsail virtual private server, or instance.

Deletes a specific snapshot of a virtual private server (or instance).

Deletes a specific SSH key pair.

Detaches a static IP from the Amazon Lightsail instance to which it is attached.

Downloads the default SSH key pair from the user's account.

Returns the names of all active (not deleted) resources.

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.

Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).

Returns information about a specific domain recordset.

Returns a list of all domains in the user's account.

Returns information about a specific Amazon Lightsail instance, which is a virtual private server.

Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.

Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.

Returns the port states for a specific virtual private server, or instance.

Returns information about a specific instance snapshot.

Returns all instance snapshots for the user's account.

Returns the state of a specific instance. Works on one instance at a time.

Returns information about all Amazon Lightsail virtual private servers, or instances.

Returns information about a specific key pair.

Returns information about all key pairs in the user's account.

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.

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.

Gets operations for a specific resource (e.g., an instance or a static IP).

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.

Returns information about a specific static IP.

Returns information about all static IPs in the user's account.

Imports a public SSH key from a specific key pair.

Returns a Boolean value indicating whether your Lightsail VPC is peered.

Adds public ports to an Amazon Lightsail instance.

Tries to peer the Lightsail VPC with the user's default VPC.

Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.

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.

Deletes a specific static IP from your account.

Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.

Stops a specific Amazon Lightsail instance that is currently running.

Attempts to unpeer the Lightsail VPC from the user's default VPC.

Updates a domain recordset after it is created.

Implementors