Skip to content

describe_log_pattern async

describe_log_pattern(
    resource_group_name: ResourceGroupName,
    pattern_set_name: LogPatternSetName,
    pattern_name: LogPatternName,
    *,
    config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
    account_id: Optional[AccountId] = None,
) -> DescribeLogPatternResponse

Describe a specific log pattern from a LogPatternSet.

Parameters:

  • resource_group_name (ResourceGroupName) –

    The name of the resource group.

  • pattern_set_name (LogPatternSetName) –

    The name of the log pattern set.

  • pattern_name (LogPatternName) –

    The name of the log pattern.

  • account_id (Optional[AccountId], default: None ) –

    The Amazon Web Services account ID for the resource group owner.

Raises:

Source code in docs_src/capo_application_insights/_services/async_application_insights.py
async def describe_log_pattern(
    self,
    resource_group_name: "capo_application_insights.types.resource_group_name.ResourceGroupName",
    pattern_set_name: "capo_application_insights.types.log_pattern_set_name.LogPatternSetName",
    pattern_name: "capo_application_insights.types.log_pattern_name.LogPatternName",
    *,
    config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
    account_id: Optional[
        "capo_application_insights.types.account_id.AccountId"
    ] = None,
) -> "capo_application_insights.types.describe_log_pattern_response.DescribeLogPatternResponse":
    """<p>Describe a specific log pattern from a <code>LogPatternSet</code>.</p>

    Args:
        resource_group_name: <p>The name of the resource group.</p>
        pattern_set_name: <p>The name of the log pattern set.</p>
        pattern_name: <p>The name of the log pattern.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_application_insights.types.describe_log_pattern_request.DescribeLogPatternRequest]",
    ) -> AsyncOperationResponse[
        "capo_application_insights.types.describe_log_pattern_response.DescribeLogPatternResponse"
    ]:
        import capo_application_insights._operations.ec2_windows_barley_service.describe_log_pattern

        (
            output,
            http_response,
        ) = await capo_application_insights._operations.ec2_windows_barley_service.describe_log_pattern.async_describe_log_pattern(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeLogPattern")
    )
    input_: capo_application_insights.types.describe_log_pattern_request.DescribeLogPatternRequest = {
        "resource_group_name": resource_group_name,
        "pattern_set_name": pattern_set_name,
        "pattern_name": pattern_name,
    }
    if account_id is not None:
        input_["account_id"] = account_id

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output