Skip to content

get_network_profile async

get_network_profile(
    arn: AmazonResourceName,
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
) -> GetNetworkProfileResult

Returns information about a network profile.

Parameters:

  • arn (AmazonResourceName) –

    The ARN of the network profile to return information about.

Raises:

Source code in docs_src/capo_device_farm/_services/async_device_farm.py
async def get_network_profile(
    self,
    arn: "capo_device_farm.types.amazon_resource_name.AmazonResourceName",
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
) -> "capo_device_farm.types.get_network_profile_result.GetNetworkProfileResult":
    """<p>Returns information about a network profile.</p>

    Args:
        arn: <p>The ARN of the network profile to return information about.</p>

    Raises:
        capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
        capo_device_farm.errors.limit_exceeded_exception.LimitExceededException: <p>A limit was exceeded.</p>
        capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
        capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
        capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_device_farm.types.get_network_profile_request.GetNetworkProfileRequest]",
    ) -> AsyncOperationResponse[
        "capo_device_farm.types.get_network_profile_result.GetNetworkProfileResult"
    ]:
        import capo_device_farm._operations.device_farm_20150623.get_network_profile

        (
            output,
            http_response,
        ) = await capo_device_farm._operations.device_farm_20150623.get_network_profile.async_get_network_profile(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetNetworkProfile")
    )
    input_: capo_device_farm.types.get_network_profile_request.GetNetworkProfileRequest = {
        "arn": arn
    }

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