create_table_bucket
async
¶
create_table_bucket(
name: TableBucketName,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
storage_class_configuration: Optional[StorageClassConfiguration] = None,
tags: Optional[Tags] = None,
) -> CreateTableBucketResponse
Creates a table bucket. For more information, see Creating a table bucket in the Amazon Simple Storage Service User Guide.
- Permissions
-
-
You must have the
s3tables:CreateTableBucketpermission to use this operation. -
If you use this operation with the optional
encryptionConfigurationparameter you must have thes3tables:PutTableBucketEncryptionpermission. -
If you use this operation with the
storageClassConfigurationrequest parameter, you must have thes3tables:PutTableBucketStorageClasspermission. -
To create a table bucket with tags, you must have the
s3tables:TagResourcepermission in addition tos3tables:CreateTableBucketpermission.
-
Parameters:
-
name(TableBucketName) –The name for the table bucket.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The encryption configuration to use for the table bucket. This configuration specifies the default encryption settings that will be applied to all tables created in this bucket unless overridden at the table level. The configuration includes the encryption algorithm and, if using SSE-KMS, the KMS key to use.
-
storage_class_configuration(Optional[StorageClassConfiguration], default:None) –The default storage class configuration for the table bucket. This configuration will be applied to all new tables created in this bucket unless overridden at the table level. If not specified, the service default storage class will be used.
-
tags(Optional[Tags], default:None) –A map of user-defined tags that you would like to apply to the table bucket that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
You must have the
s3tables:TagResourcepermission in addition tos3tables:CreateTableBucketpermisson to create a table bucket with tags.
Raises:
-
BadRequestException–The request is invalid or malformed.
-
ConflictException–The request failed because there is a conflict with a previous write. You can retry the request.
-
ForbiddenException–The caller isn't authorized to make the request.
-
InternalServerErrorException–The request failed due to an internal server error.
-
NotFoundException–The request was rejected because the specified resource could not be found.
-
TooManyRequestsException–The limit on the number of requests per second was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_s3tables/_services/async_s3_tables.py
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 | |