Retrieves information about the specified fixture (a sports event, such as a specific basketball game). You obtain a fixtureId from SearchFixtures, or from the clipping output of a feed.
Parameters:
-
fixture_id
(FixtureId)
–
The ID of the fixture to retrieve, as returned by SearchFixtures.
Raises:
-
AccessDeniedException
–
You do not have sufficient access to perform this action.
-
GatewayTimedOutException
–
The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.
-
InternalServerErrorException
–
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
-
ResourceNotFoundException
–
The resource specified in the action doesn't exist.
-
ServiceUnavailableException
–
The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.
-
TooManyRequestException
–
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
-
ValidationException
–
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_elementalinference/_services/async_elemental_inference.py
| async def get_fixture(
self,
fixture_id: "capo_elementalinference.types.fixture_id.FixtureId",
*,
config_overrides: Optional[AsyncElementalInferenceClientConfig] = None,
) -> "capo_elementalinference.types.get_fixture_response.GetFixtureResponse":
"""<p>Retrieves information about the specified fixture (a sports event, such as a specific basketball game). You obtain a fixtureId from SearchFixtures, or from the clipping output of a feed. </p>
Args:
fixture_id: <p>The ID of the fixture to retrieve, as returned by SearchFixtures.</p>
Raises:
capo_elementalinference.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_elementalinference.errors.gateway_timed_out_exception.GatewayTimedOutException: <p>The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support. </p>
capo_elementalinference.errors.internal_server_error_exception.InternalServerErrorException: <p>An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support. </p>
capo_elementalinference.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the action doesn't exist.</p>
capo_elementalinference.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support. </p>
capo_elementalinference.errors.too_many_request_exception.TooManyRequestException: <p>The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying. </p>
capo_elementalinference.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying. </p>
capo_elementalinference.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_elementalinference.types.get_fixture_request.GetFixtureRequest]",
) -> AsyncOperationResponse[
"capo_elementalinference.types.get_fixture_response.GetFixtureResponse"
]:
import capo_elementalinference._operations.elemental_inference.get_fixture
(
output,
http_response,
) = await capo_elementalinference._operations.elemental_inference.get_fixture.async_get_fixture(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetFixture")
)
input_: capo_elementalinference.types.get_fixture_request.GetFixtureRequest = {
"fixture_id": fixture_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|