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 ==.