Struct reqsign::TencentCosConfig
source · pub struct TencentCosConfig {
pub region: Option<String>,
pub secret_id: Option<String>,
pub secret_key: Option<String>,
pub security_token: Option<String>,
pub role_arn: Option<String>,
pub role_session_name: String,
pub provider_id: Option<String>,
pub web_identity_token_file: Option<String>,
}
Expand description
Config carries all the configuration for Tencent COS services.
Fields§
§region: Option<String>
region
will be loaded from:
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_REGION
] or [TKE_REGION
]
secret_id: Option<String>
access_key_id
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_SECRET_ID
] or [TKE_SECRET_ID
]
secret_key: Option<String>
secret_access_key
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_SECRET_KEY
] or [TKE_SECRET_KEY
]
security_token: Option<String>
security_token
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_TOKEN
] or [TENCENTCLOUD_SECURITY_TOKEN
]
role_arn: Option<String>
role_arn
value will be load from:
- this field if it’s
is_some
. - env value: [
TENCENTCLOUD_ROLE_ARN
] or [TKE_ROLE_ARN
]
role_session_name: String
role_session_name
value will be load from:
- env value: [
TENCENTCLOUD_ROLE_SESSSION_NAME
] or [TKE_ROLE_SESSSION_NAME
] - default to
reqsign
.
provider_id: Option<String>
provider_id
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_PROVIDER_ID
] or [TKE_PROVIDER_ID
]
web_identity_token_file: Option<String>
web_identity_token_file
will be loaded from
- this field if it’s
is_some
- env value: [
TENCENTCLOUD_WEB_IDENTITY_TOKEN_FILE
] or [TKE_IDENTITY_TOKEN_FILE
]