Struct aws_sdk_lightsail::types::InstanceAccessDetails
source · #[non_exhaustive]pub struct InstanceAccessDetails {
pub cert_key: Option<String>,
pub expires_at: Option<DateTime>,
pub ip_address: Option<String>,
pub ipv6_addresses: Option<Vec<String>>,
pub password: Option<String>,
pub password_data: Option<PasswordData>,
pub private_key: Option<String>,
pub protocol: Option<InstanceAccessProtocol>,
pub instance_name: Option<String>,
pub username: Option<String>,
pub host_keys: Option<Vec<HostKeyAttributes>>,
}
Expand description
The parameters for gaining temporary access to one of your Amazon Lightsail instances.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cert_key: Option<String>
For SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to tempkey-cert.pub
.
expires_at: Option<DateTime>
For SSH access, the date on which the temporary keys expire.
ip_address: Option<String>
The public IP address of the Amazon Lightsail instance.
ipv6_addresses: Option<Vec<String>>
The IPv6 address of the Amazon Lightsail instance.
password: Option<String>
For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.
If you create an instance using any key pair other than the default (LightsailDefaultKeyPair
), password
will always be an empty string.
If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
password_data: Option<PasswordData>
For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if password
is empty and the instance is not new (and therefore the password is not ready yet). When you create an instance, it can take up to 15 minutes for the instance to be ready.
private_key: Option<String>
For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey
).
protocol: Option<InstanceAccessProtocol>
The protocol for these Amazon Lightsail instance access details.
instance_name: Option<String>
The name of this Amazon Lightsail instance.
username: Option<String>
The user name to use when logging in to the Amazon Lightsail instance.
host_keys: Option<Vec<HostKeyAttributes>>
Describes the public SSH host keys or the RDP certificate.
Implementations§
source§impl InstanceAccessDetails
impl InstanceAccessDetails
sourcepub fn cert_key(&self) -> Option<&str>
pub fn cert_key(&self) -> Option<&str>
For SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to tempkey-cert.pub
.
sourcepub fn expires_at(&self) -> Option<&DateTime>
pub fn expires_at(&self) -> Option<&DateTime>
For SSH access, the date on which the temporary keys expire.
sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
The public IP address of the Amazon Lightsail instance.
sourcepub fn ipv6_addresses(&self) -> &[String]
pub fn ipv6_addresses(&self) -> &[String]
The IPv6 address of the Amazon Lightsail instance.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ipv6_addresses.is_none()
.
sourcepub fn password(&self) -> Option<&str>
pub fn password(&self) -> Option<&str>
For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.
If you create an instance using any key pair other than the default (LightsailDefaultKeyPair
), password
will always be an empty string.
If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
sourcepub fn password_data(&self) -> Option<&PasswordData>
pub fn password_data(&self) -> Option<&PasswordData>
For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if password
is empty and the instance is not new (and therefore the password is not ready yet). When you create an instance, it can take up to 15 minutes for the instance to be ready.
sourcepub fn private_key(&self) -> Option<&str>
pub fn private_key(&self) -> Option<&str>
For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey
).
sourcepub fn protocol(&self) -> Option<&InstanceAccessProtocol>
pub fn protocol(&self) -> Option<&InstanceAccessProtocol>
The protocol for these Amazon Lightsail instance access details.
sourcepub fn instance_name(&self) -> Option<&str>
pub fn instance_name(&self) -> Option<&str>
The name of this Amazon Lightsail instance.
sourcepub fn username(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
The user name to use when logging in to the Amazon Lightsail instance.
sourcepub fn host_keys(&self) -> &[HostKeyAttributes]
pub fn host_keys(&self) -> &[HostKeyAttributes]
Describes the public SSH host keys or the RDP certificate.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .host_keys.is_none()
.
source§impl InstanceAccessDetails
impl InstanceAccessDetails
sourcepub fn builder() -> InstanceAccessDetailsBuilder
pub fn builder() -> InstanceAccessDetailsBuilder
Creates a new builder-style object to manufacture InstanceAccessDetails
.
Trait Implementations§
source§impl Clone for InstanceAccessDetails
impl Clone for InstanceAccessDetails
source§fn clone(&self) -> InstanceAccessDetails
fn clone(&self) -> InstanceAccessDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceAccessDetails
impl Debug for InstanceAccessDetails
source§impl PartialEq for InstanceAccessDetails
impl PartialEq for InstanceAccessDetails
source§fn eq(&self, other: &InstanceAccessDetails) -> bool
fn eq(&self, other: &InstanceAccessDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceAccessDetails
Auto Trait Implementations§
impl Freeze for InstanceAccessDetails
impl RefUnwindSafe for InstanceAccessDetails
impl Send for InstanceAccessDetails
impl Sync for InstanceAccessDetails
impl Unpin for InstanceAccessDetails
impl UnwindSafe for InstanceAccessDetails
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
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>
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>
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