Struct aws_sdk_gamelift::types::AwsCredentials
source · #[non_exhaustive]pub struct AwsCredentials {
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
}
Expand description
Amazon Web Services account security credentials that allow interactions with Amazon GameLift resources. The credentials are temporary and valid for a limited time span. You can request fresh credentials at any time.
Amazon Web Services security credentials consist of three parts: an access key ID, a secret access key, and a session token. You must use all three parts together to authenticate your access requests.
You need Amazon Web Services credentials for the following tasks:
-
To upload a game server build directly to Amazon GameLift S3 storage using
CreateBuild
. To get access for this task, callRequestUploadCredentials
. -
To remotely connect to an active Amazon GameLift fleet instances. To get remote access, call
GetComputeAccess
.
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.access_key_id: Option<String>
The access key ID that identifies the temporary security credentials.
secret_access_key: Option<String>
The secret access key that can be used to sign requests.
session_token: Option<String>
The token that users must pass to the service API to use the temporary credentials.
Implementations§
source§impl AwsCredentials
impl AwsCredentials
sourcepub fn access_key_id(&self) -> Option<&str>
pub fn access_key_id(&self) -> Option<&str>
The access key ID that identifies the temporary security credentials.
sourcepub fn secret_access_key(&self) -> Option<&str>
pub fn secret_access_key(&self) -> Option<&str>
The secret access key that can be used to sign requests.
sourcepub fn session_token(&self) -> Option<&str>
pub fn session_token(&self) -> Option<&str>
The token that users must pass to the service API to use the temporary credentials.
source§impl AwsCredentials
impl AwsCredentials
sourcepub fn builder() -> AwsCredentialsBuilder
pub fn builder() -> AwsCredentialsBuilder
Creates a new builder-style object to manufacture AwsCredentials
.
Trait Implementations§
source§impl Clone for AwsCredentials
impl Clone for AwsCredentials
source§fn clone(&self) -> AwsCredentials
fn clone(&self) -> AwsCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsCredentials
impl Debug for AwsCredentials
source§impl PartialEq for AwsCredentials
impl PartialEq for AwsCredentials
source§fn eq(&self, other: &AwsCredentials) -> bool
fn eq(&self, other: &AwsCredentials) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsCredentials
Auto Trait Implementations§
impl Freeze for AwsCredentials
impl RefUnwindSafe for AwsCredentials
impl Send for AwsCredentials
impl Sync for AwsCredentials
impl Unpin for AwsCredentials
impl UnwindSafe for AwsCredentials
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