Returns the metadata for the specified table and table properties. This includes the list of columns in the table schema, their data types, and column descriptions.
Parameters:
-
table_name
(TableName)
–
-
table_properties
(Optional[TableProperties], default:
None
)
–
TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified.
Raises:
Source code in docs_src/capo_bcm_data_exports/_services/async_bcm_data_exports.py
| async def get_table(
self,
table_name: "capo_bcm_data_exports.types.table_name.TableName",
*,
config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
table_properties: Optional[
"capo_bcm_data_exports.types.table_properties.TableProperties"
] = None,
) -> "capo_bcm_data_exports.types.get_table_response.GetTableResponse":
"""<p>Returns the metadata for the specified table and table properties. This includes the list of columns in the table schema, their data types, and column descriptions.</p>
Args:
table_name: <p>The name of the table.</p>
table_properties: <p>TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. Tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified.</p>
Raises:
capo_bcm_data_exports.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
capo_bcm_data_exports.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_bcm_data_exports.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_bcm_data_exports.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_bcm_data_exports.types.get_table_request.GetTableRequest]",
) -> AsyncOperationResponse[
"capo_bcm_data_exports.types.get_table_response.GetTableResponse"
]:
import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.get_table
(
output,
http_response,
) = await capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.get_table.async_get_table(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTable")
)
input_: capo_bcm_data_exports.types.get_table_request.GetTableRequest = {
"table_name": table_name
}
if table_properties is not None:
input_["table_properties"] = table_properties
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|