alibabacloud_oss_v2.credentials package¶
Submodules¶
alibabacloud_oss_v2.credentials.provider_impl module¶
- class alibabacloud_oss_v2.credentials.provider_impl.AnonymousCredentialsProvider[source]¶
Bases:
CredentialsProvider
Access OSS anonymously.
- get_credentials() Credentials [source]¶
Retrieve the credentials.
- Return type:
- Returns:
a Credentials instance if it successfully retrieved the value.
- class alibabacloud_oss_v2.credentials.provider_impl.CredentialsProviderFunc(func: Callable)[source]¶
Bases:
CredentialsProvider
Provides a helper wrapping a function value to satisfy the CredentialsProvider interface.
- get_credentials() Credentials [source]¶
Retrieve the credentials.
- Return type:
- Returns:
a Credentials instance if it successfully retrieved the value.
- class alibabacloud_oss_v2.credentials.provider_impl.EnvironmentVariableCredentialsProvider[source]¶
Bases:
CredentialsProvider
Obtaining credentials from environment variables. OSS_ACCESS_KEY_ID OSS_ACCESS_KEY_SECRET OSS_SESSION_TOKEN (Optional)
- get_credentials() Credentials [source]¶
Retrieve the credentials.
- Return type:
- Returns:
a Credentials instance if it successfully retrieved the value.
- class alibabacloud_oss_v2.credentials.provider_impl.StaticCredentialsProvider(access_key_id: str, access_key_secret: str, security_token: str | None = None)[source]¶
Bases:
CredentialsProvider
Explicitly specify the AccessKey pair that you want to use to access OSS.
- Parameters:
access_key_id (str) – access key id to access OSS.
access_key_secret (str) – access key secret to access OSS.
security_token (Optional[str], optional) – The sts session token.
- get_credentials() Credentials [source]¶
Retrieve the credentials.
- Return type:
- Returns:
a Credentials instance if it successfully retrieved the value.