Registry / aws / tencentcloud-sdk-python-ssm

tencentcloud-sdk-python-ssm

JSON →
library3.1.70pypypi✓ verified 84d ago

Official Tencent Cloud SDK for Secrets Manager (SSM). Provides programmatic access to create, retrieve, update, and delete secrets via TencentCloud API. Currently at version 3.1.70, released roughly weekly.

pip install tencentcloud-sdk-python-ssm
INSTALL
IMPORT
SIG · TENCENTCLOUD-SDK-P
T
tencentcloud-sdk-python-ssm
awspythonv3.1.70
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SsmClient
from tencentcloud.ssm.v20190923 import ssm_client
from tencentcloud.ssm import SsmClient
Must include versioned subpackage v20190923; top-level import fails
DescribeSecretStatusRequest
from tencentcloud.ssm.v20190923 import models
Request/Response models are in models module

Initializes a SSM client and queries the status of a secret.

from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.ssm.v20190923 import ssm_client, models try: cred = credential.Credential( os.environ.get('TENCENTCLOUD_SECRET_ID', ''), os.environ.get('TENCENTCLOUD_SECRET_KEY', '') ) client = ssm_client.SsmClient(cred, 'ap-guangzhou') req = models.DescribeSecretStatusRequest() req.SecretName = 'MySecret' resp = client.DescribeSecretStatus(req) print(resp) except TencentCloudSDKException as e: print(e)
Debug
Known issues
breakingIn v3.x, all API calls use the versioned namespace (v20190923). Importing from unversioned path (e.g., tencentcloud.ssm) will raise ImportError.
fix
Use 'from tencentcloud.ssm.v20190923 import ssm_client, models'.
affects: >=3.0.0
gotchaPython SDK does not support async/await natively. All methods are synchronous and block the calling thread.
fix
Use threading or multiprocessing for concurrent calls.
affects: all
gotchaRegion parameter is required when creating the client. Incorrect region (e.g., us-east-1 instead of ap-guangzhou) results in authentication or not-found errors.
fix
Verify region string matches TencentCloud documentation. Common values: ap-guangzhou, ap-singapore, na-siliconvalley.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tencentcloud.ssm'
Incorrect import path or missing library installation.
fix
Install both packages: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-ssm. Then import as 'from tencentcloud.ssm.v20190923 import ssm_client'.
tencentcloud.common.exception.TencentCloudSDKException: [TencentCloudSDKException] code: UnsupportedOperation, message: the region is not supported
The region string passed to client constructor is invalid or not supported by SSM.
fix
Use a valid region: e.g., 'ap-guangzhou', 'ap-singapore', 'na-siliconvalley'.
Upgrade
Version history
3.1.70latest on PyPI · released Apr 2, 2026
Audit
Dependencies
tencentcloud-sdk-python-commonrequiredRequired for client initialization and authentication
Agent activity
24 hits · last 30 days
node
22
Resources