This API is used to retrieve optional override properties for the tables that need to be replicated. These properties can include properties for filtering and partition for source and target tables.
Parameters:
-
resource_arn
(String512)
–
The Amazon Resource Name (ARN) of the target table for which to retrieve integration table properties. Currently, this API only supports retrieving properties for target tables, and the provided ARN should be the ARN of the target table in the Glue Data Catalog. Support for retrieving integration table properties for source connections (using the connection ARN) is not yet implemented and will be added in a future release.
-
table_name
(String128)
–
The name of the table to be replicated.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_integration_table_properties(
self,
resource_arn: "capo_glue.types.string512.String512",
table_name: "capo_glue.types.string128.String128",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_integration_table_properties_response.GetIntegrationTablePropertiesResponse":
"""<p>This API is used to retrieve optional override properties for the tables that need to be replicated. These properties can include properties for filtering and partition for source and target tables.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the target table for which to retrieve integration table properties. Currently, this API only supports retrieving properties for target tables, and the provided ARN should be the ARN of the target table in the Glue Data Catalog. Support for retrieving integration table properties for source connections (using the connection ARN) is not yet implemented and will be added in a future release. </p>
table_name: <p>The name of the table to be replicated.</p>
Raises:
capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
capo_glue.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred.</p>
capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_glue.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.get_integration_table_properties_request.GetIntegrationTablePropertiesRequest]",
) -> OperationResponse[
"capo_glue.types.get_integration_table_properties_response.GetIntegrationTablePropertiesResponse"
]:
import capo_glue._operations.aws_glue.get_integration_table_properties
output, http_response = (
capo_glue._operations.aws_glue.get_integration_table_properties.get_integration_table_properties(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetIntegrationTableProperties")
)
input_: capo_glue.types.get_integration_table_properties_request.GetIntegrationTablePropertiesRequest = {
"resource_arn": resource_arn,
"table_name": table_name,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|