Skip to content

get_table

get_table(
    table_name: TableName,
    *,
    config_overrides: Optional[BCMDataExportsClientConfig] = None,
    table_properties: Optional[TableProperties] = None,
) -> GetTableResponse

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) –

    The name of the table.

  • 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/bcm_data_exports.py
def get_table(
    self,
    table_name: "capo_bcm_data_exports.types.table_name.TableName",
    *,
    config_overrides: Optional[BCMDataExportsClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_bcm_data_exports.types.get_table_request.GetTableRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.get_table.get_table(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output