s3_config Derived Type

type, public :: s3_config

S3 configuration type containing connection parameters and credentials.

This type holds all configuration needed to connect to an S3-compatible object storage service. For public buckets, credentials can be left empty.

Example

type(s3_config) :: config
config%bucket = 'noaa-gfs-bdp-pds'
config%region = 'us-east-1'
config%endpoint = 's3.amazonaws.com'
config%use_https = .true.
config%access_key = ''  ! Empty for public bucket
config%secret_key = ''

Components

Type Visibility Attributes Name Initial
character(len=256), public :: bucket = ''
character(len=256), public :: region = 'us-east-1'
character(len=256), public :: endpoint = 's3.amazonaws.com'
character(len=256), public :: access_key = ''
character(len=256), public :: secret_key = ''
logical, public :: use_https = .true.

Source Code

    type, public :: s3_config
        character(len=256) :: bucket = ''        !< S3 bucket name
        character(len=256) :: region = 'us-east-1'  !< AWS region (default: us-east-1)
        character(len=256) :: endpoint = 's3.amazonaws.com'  !< S3 endpoint hostname
        character(len=256) :: access_key = ''    !< AWS access key ID (optional for public buckets)
        character(len=256) :: secret_key = ''    !< AWS secret access key (optional for public buckets)
        logical :: use_https = .true.            !< Use HTTPS protocol (recommended)
    end type s3_config