Constructs an S3 store component that carries only AWS credentials – no
bucket, prefix, or region. The data location is resolved at connection time
from ref.json stored in the governance repo. This is the recommended
construction style for readers when a governance store is in place.
Details
A datom_store_s3_creds component must be paired with a governance
component inside datom_store(). Attempting to create a composite store
without governance will abort with a clear message.
Examples
creds <- datom_store_s3_creds(
access_key = "AKIAIOSFODNN7EXAMPLE",
secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
)
creds
#>
#> ── datom S3 credentials-only store component
#> • Bucket / prefix / region: <resolved from ref.json>
#> • Access key: "AKIA****"
#> • Secret key: "****"
is_datom_store_s3_creds(creds)
#> [1] TRUE