|
44 | 44 | StandardRetryConditions, |
45 | 45 | ) |
46 | 46 | from mypy_boto3_athena import AthenaClient |
| 47 | +from mypy_boto3_backup import BackupClient |
| 48 | +from mypy_boto3_ce import CostExplorerClient |
| 49 | +from mypy_boto3_cloudwatch import CloudWatchClient |
47 | 50 | from mypy_boto3_dynamodb.client import DynamoDBClient |
48 | 51 | from mypy_boto3_dynamodb.service_resource import DynamoDBServiceResource, Table |
49 | 52 | from mypy_boto3_dynamodb.type_defs import KeysAndAttributesTypeDef |
50 | 53 | from mypy_boto3_events import EventBridgeClient |
51 | 54 | from mypy_boto3_firehose import FirehoseClient |
| 55 | +from mypy_boto3_glue import GlueClient |
52 | 56 | from mypy_boto3_kms.client import KMSClient |
53 | 57 | from mypy_boto3_lambda.client import LambdaClient |
54 | 58 | from mypy_boto3_logs.client import CloudWatchLogsClient |
@@ -183,6 +187,10 @@ def s3_client(session: Optional[Session] = None, config: Optional[Config] = None |
183 | 187 | return _aws("s3", "client", session, config) # type: ignore[no-any-return] |
184 | 188 |
|
185 | 189 |
|
| 190 | +def backup_client(session: Optional[Session] = None, config: Optional[Config] = None) -> BackupClient: |
| 191 | + return _aws("backup", "client", session, config) # type: ignore[no-any-return] |
| 192 | + |
| 193 | + |
186 | 194 | def register_retry_handler( |
187 | 195 | client_or_resource: Union[S3ServiceResource, S3Client], |
188 | 196 | on_error: Optional[Callable] = None, |
@@ -305,6 +313,18 @@ def secrets_client(session: Optional[Session] = None, config: Optional[Config] = |
305 | 313 | return _aws("secretsmanager", "client", session, config) # type: ignore[no-any-return] |
306 | 314 |
|
307 | 315 |
|
| 316 | +def glue_client(session: Optional[Session] = None, config: Optional[Config] = None) -> GlueClient: |
| 317 | + return _aws("glue", "client", session, config) # type: ignore[no-any-return] |
| 318 | + |
| 319 | + |
| 320 | +def cost_explorer_client(session: Optional[Session] = None, config: Optional[Config] = None) -> CostExplorerClient: |
| 321 | + return _aws("ce", "client", session, config) # type: ignore[no-any-return] |
| 322 | + |
| 323 | + |
| 324 | +def cloudwatch_client(session: Optional[Session] = None, config: Optional[Config] = None) -> CloudWatchClient: |
| 325 | + return _aws("cloudwatch", "client", session, config) # type: ignore[no-any-return] |
| 326 | + |
| 327 | + |
308 | 328 | def secret_value(name: str, session: Optional[Session] = None, config: Optional[Config] = None) -> str: |
309 | 329 | return secrets_client(session=session, config=config).get_secret_value(SecretId=name)["SecretString"] |
310 | 330 |
|
|
0 commit comments