paws.common (version 0.2.5)

set_config: Add configuration settings to a service object.

Description

Add configuration settings to a service object.

Usage

set_config(svc, cfgs = list())

Arguments

svc

A service object containing service operations.

cfgs

A list of optional configuration settings.

Details

The optional configuration settings can include the following:

list(
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string"
  ),
  endpoint = "string",
  region = "string"
)

Examples

Run this code
# NOT RUN {
# Create a config object with custom credentials and endpoint.
config <- set_config(
  svc = list(),
  cfgs = list(
    credentials = list(
      creds = list(
        access_key_id = "abc",
        secret_access_key = "123"
      )
    ),
    endpoint = "https://foo.com"
  )
)

# }

Run the code above in your browser using DataLab