Help functions for setting the parameters for services
config(
credentials = list(creds = list(access_key_id = "", secret_access_key = "",
session_token = "", access_token = "", expiration = Inf), profile = "", anonymous =
FALSE),
endpoint = "",
region = "",
close_connection = FALSE,
max_retries = 3,
connect_timeout = 60,
s3_force_path_style = FALSE,
sts_regional_endpoint = "",
signature_version = ""
)credentials(
creds = list(access_key_id = "", secret_access_key = "", session_token = "",
access_token = "", expiration = Inf),
profile = "",
anonymous = FALSE
)
creds(
access_key_id = "",
secret_access_key = "",
session_token = "",
access_token = "",
expiration = Inf
)
list set of parameter variables for paws services.
credentials()
or list
in same format.
creds: creds()
or list
in same format.
access_key_id: AWS access key ID
secret_access_key: AWS secret access key
session_token: AWS temporary session token
access_token: The token issued by the CreateToken
API call. For more information, see
CreateToken
in the IAM Identity Center OIDC API Reference Guide
.
expiration: The date and time when the temporary credentials expire.
expiration
must be a POSIXct
date-time or able to be compared with them.
profile: The name of a profile to use. If not given, then the default profile is used.
anonymous: Set anonymous credentials.
The complete URL to use for the constructed client.
The AWS Region used in instantiating the client.
Immediately close all HTTP connections.
Max number of retries call AWS API (default set to 3).
The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.
Set this to true
to force the request to use path-style
addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY
.
Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html
The signature version used when signing requests. Note that the default version is Signature Version 4.
creds()
or list
in same format.
access_key_id: AWS access key ID
secret_access_key: AWS secret access key
session_token: AWS temporary session token
access_token: The token issued by the CreateToken
API call. For more information, see
CreateToken
in the IAM Identity Center OIDC API Reference Guide
.
expiration: The date and time when the temporary credentials expire.
expiration
must be a POSIXct
date-time or able to be compared with them.
The name of a profile to use. If not given, then the default profile is used.
Set anonymous credentials.
AWS access key ID
AWS secret access key
AWS temporary session token
The token issued by the CreateToken
API call. For more information, see
CreateToken
in the IAM Identity Center OIDC API Reference Guide
.
The date and time when the temporary credentials expire.
expiration
must be a POSIXct
date-time or able to be compared with them.
# set service parameter access_key_id and secret_access_key
config(credentials(creds("dummy", "secret")))
# set service parameter access_key_id and secret_access_key using using lists
config(
credentials = list(
creds = list(
access_key_id = "dummy",
secret_access_key = "secret"
)
)
)
Run the code above in your browser using DataLab