Skip to content

get_managed_view async

get_managed_view(
    managed_view_arn: str,
    *,
    config_overrides: Optional[AsyncResourceExplorer2ClientConfig] = None,
) -> GetManagedViewOutput

Retrieves details of the specified Amazon Web Services-managed view.

Parameters:

  • managed_view_arn (str) –

    The Amazon resource name (ARN) of the managed view.

Raises:

Source code in docs_src/capo_resource_explorer_2/_services/async_resource_explorer2.py
async def get_managed_view(
    self,
    managed_view_arn: str,
    *,
    config_overrides: Optional[AsyncResourceExplorer2ClientConfig] = None,
) -> "capo_resource_explorer_2.types.get_managed_view_output.GetManagedViewOutput":
    """<p>Retrieves details of the specified <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html">Amazon Web Services-managed view</a>. </p>

    Args:
        managed_view_arn: <p>The Amazon resource name (ARN) of the managed view.</p>

    Raises:
        capo_resource_explorer_2.errors.access_denied_exception.AccessDeniedException: <p>The credentials that you used to call this operation don't have the minimum required permissions.</p>
        capo_resource_explorer_2.errors.internal_server_exception.InternalServerException: <p>The request failed because of internal service error. Try your request again later.</p>
        capo_resource_explorer_2.errors.resource_not_found_exception.ResourceNotFoundException: <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.</p>
        capo_resource_explorer_2.errors.throttling_exception.ThrottlingException: <p>The request failed because you exceeded a rate limit for this operation. For more information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for Resource Explorer</a>.</p>
        capo_resource_explorer_2.errors.unauthorized_exception.UnauthorizedException: <p>The principal making the request isn't permitted to perform the operation.</p>
        capo_resource_explorer_2.errors.validation_exception.ValidationException: <p>You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.</p>
        capo_resource_explorer_2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_resource_explorer_2.types.get_managed_view_input.GetManagedViewInput]",
    ) -> AsyncOperationResponse[
        "capo_resource_explorer_2.types.get_managed_view_output.GetManagedViewOutput"
    ]:
        import capo_resource_explorer_2._operations.resource_explorer.get_managed_view

        (
            output,
            http_response,
        ) = await capo_resource_explorer_2._operations.resource_explorer.get_managed_view.async_get_managed_view(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_resource_explorer_2.types.get_managed_view_output.GetManagedViewOutput",
    ) -> dict[str, Any]:
        import capo_resource_explorer_2.types.get_managed_view_output

        return (
            capo_resource_explorer_2.types.get_managed_view_output.redact_sensitive(
                output
            )
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetManagedView", redact_output=_redact_output),
    )
    input_: capo_resource_explorer_2.types.get_managed_view_input.GetManagedViewInput = {
        "managed_view_arn": managed_view_arn
    }

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