Gets the configuration settings for a media insights pipeline.
Parameters:
-
identifier
(NonEmptyString)
–
The unique identifier of the requested resource. Valid values include the name and ARN of the media insights pipeline configuration.
Raises:
Source code in docs_src/capo_chime_sdk_media_pipelines/_services/async_chime_sdk_media_pipelines.py
| async def get_media_insights_pipeline_configuration(
self,
identifier: "capo_chime_sdk_media_pipelines.types.non_empty_string.NonEmptyString",
*,
config_overrides: Optional[AsyncChimeSDKMediaPipelinesClientConfig] = None,
) -> "capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_response.GetMediaInsightsPipelineConfigurationResponse":
"""<p>Gets the configuration settings for a media insights pipeline.</p>
Args:
identifier: <p>The unique identifier of the requested resource. Valid values include the name and ARN of the media insights pipeline configuration.</p>
Raises:
capo_chime_sdk_media_pipelines.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
capo_chime_sdk_media_pipelines.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
capo_chime_sdk_media_pipelines.errors.not_found_exception.NotFoundException: <p>One or more of the resources in the request does not exist in the system.</p>
capo_chime_sdk_media_pipelines.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
capo_chime_sdk_media_pipelines.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_chime_sdk_media_pipelines.errors.throttled_client_exception.ThrottledClientException: <p>The client exceeded its request rate limit.</p>
capo_chime_sdk_media_pipelines.errors.unauthorized_client_exception.UnauthorizedClientException: <p>The client is not currently authorized to make the request.</p>
capo_chime_sdk_media_pipelines.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_request.GetMediaInsightsPipelineConfigurationRequest]",
) -> AsyncOperationResponse[
"capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_response.GetMediaInsightsPipelineConfigurationResponse"
]:
import capo_chime_sdk_media_pipelines._operations.chime_sdk_media_pipelines_service.get_media_insights_pipeline_configuration
(
output,
http_response,
) = await capo_chime_sdk_media_pipelines._operations.chime_sdk_media_pipelines_service.get_media_insights_pipeline_configuration.async_get_media_insights_pipeline_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_response.GetMediaInsightsPipelineConfigurationResponse",
) -> dict[str, Any]:
import capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_response
return capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging(
"GetMediaInsightsPipelineConfiguration", redact_output=_redact_output
),
)
input_: capo_chime_sdk_media_pipelines.types.get_media_insights_pipeline_configuration_request.GetMediaInsightsPipelineConfigurationRequest = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|