def describe_component_configuration(
self,
resource_group_name: "capo_application_insights.types.resource_group_name.ResourceGroupName",
component_name: "capo_application_insights.types.component_name.ComponentName",
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = None,
account_id: Optional[
"capo_application_insights.types.account_id.AccountId"
] = None,
) -> "capo_application_insights.types.describe_component_configuration_response.DescribeComponentConfigurationResponse":
"""<p>Describes the monitoring configuration of the component.</p>
Args:
resource_group_name: <p>The name of the resource group.</p>
component_name: <p>The name of the component.</p>
account_id: <p>The Amazon Web Services account ID for the resource group owner.</p>
Raises:
capo_application_insights.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
capo_application_insights.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource does not exist in the customer account.</p>
capo_application_insights.errors.validation_exception.ValidationException: <p>The parameter is not valid.</p>
capo_application_insights.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_application_insights.types.describe_component_configuration_request.DescribeComponentConfigurationRequest]",
) -> OperationResponse[
"capo_application_insights.types.describe_component_configuration_response.DescribeComponentConfigurationResponse"
]:
if req.options.protocol == "awsJson1_1":
import capo_application_insights._operations.ec2_windows_barley_service.aws_json1_1.describe_component_configuration
output, http_response = (
capo_application_insights._operations.ec2_windows_barley_service.aws_json1_1.describe_component_configuration.describe_component_configuration(
req.options, req.input
)
)
elif req.options.protocol == "rpcv2Cbor":
import capo_application_insights._operations.ec2_windows_barley_service.rpcv2_cbor.describe_component_configuration
output, http_response = (
capo_application_insights._operations.ec2_windows_barley_service.rpcv2_cbor.describe_component_configuration.describe_component_configuration(
req.options, req.input
)
)
else:
raise ValueError(f"unknown protocol {req.options.protocol!r}")
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeComponentConfiguration")
)
input_: capo_application_insights.types.describe_component_configuration_request.DescribeComponentConfigurationRequest = {
"resource_group_name": resource_group_name,
"component_name": component_name,
}
if account_id is not None:
input_["account_id"] = account_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output