Description Usage Arguments Format Details See Also
R6 implementation of AWS Temporary Credential searches and management
AWSTemporaryCredentials$new(
rootCredentials = NULL,
roleArn = NULL,
RoleSessionName = NULL,
MFADeviceSerialNumber = NULL,
Duration = "3600"
)
AWSTemporaryCredentials$print()
AWSTemporaryCredentials$hasExpired()
AWSTemporaryCredentials$rotate()
1 |
rootCredentials |
(AWSRootCredentials) Your root credential object to feed STS calls |
roleArn |
(string) the ARN of the role you want to assume |
MFADeviceSerialNumber |
(string) The id number (serial | arn) of your MFA device. |
Duration |
(string) Duration, in seconds, of the role session; controls time-to-expire of temporary credentials. |
An object of class R6ClassGenerator
of length 24.
For additional information on STS requests refer to: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html Initializes a call to STS or pulls instance meta data. Exactly which depends on the arguments you pass.
If root credentials are passed, it will call STS.
Only the root credentials and roleArn are required.
If you have an account with MFA, you must pass your MFA SN.
This only works with Assume Role for now, thus the requirement of a roleARN.
Otherwise, it will try to curl instance metadata and get temporary credentials from there.
$print()
similar behavior to AWSRootCredentials
$hasExpired()
boolean check of stale temporary credentials
$rotate()
invokes the initilization function again, but should retain knowledge of Root Credentials if used.
Other credential management functions: AWSRootCredentials
,
RcurlAWS
,
credsFromInstanceMetadata
,
genCredentialFilePath
,
getCredentials
, getProfiles
,
getSTSCredentials
,
parseCredentialFile
,
stsGenContentString
,
tempCredentialHandler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.