Skip to content

get_access_point_for_object_lambda async

get_access_point_for_object_lambda(
    account_id: AccountId,
    name: ObjectLambdaAccessPointName,
    *,
    config_overrides: Optional[AsyncS3ControlClientConfig] = None,
) -> GetAccessPointForObjectLambdaResult

This operation is not supported by directory buckets.

Returns configuration information about the specified Object Lambda Access Point

The following actions are related to GetAccessPointForObjectLambda:

Parameters:

  • account_id (AccountId) –

    The account ID for the account that owns the specified Object Lambda Access Point.

  • name (ObjectLambdaAccessPointName) –

    The name of the Object Lambda Access Point.

Raises:

Source code in docs_src/capo_s3_control/_services/async_s3_control.py
async def get_access_point_for_object_lambda(
    self,
    account_id: "capo_s3_control.types.account_id.AccountId",
    name: "capo_s3_control.types.object_lambda_access_point_name.ObjectLambdaAccessPointName",
    *,
    config_overrides: Optional[AsyncS3ControlClientConfig] = None,
) -> "capo_s3_control.types.get_access_point_for_object_lambda_result.GetAccessPointForObjectLambdaResult":
    """<note> <p>This operation is not supported by directory buckets.</p> </note> <p>Returns configuration information about the specified Object Lambda Access Point</p> <p>The following actions are related to <code>GetAccessPointForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPointForObjectLambda.html">CreateAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html">ListAccessPointsForObjectLambda</a> </p> </li> </ul>

    Args:
        account_id: <p>The account ID for the account that owns the specified Object Lambda Access Point.</p>
        name: <p>The name of the Object Lambda Access Point.</p>

    Raises:
        capo_s3_control.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_s3_control.types.get_access_point_for_object_lambda_request.GetAccessPointForObjectLambdaRequest]",
    ) -> AsyncOperationResponse[
        "capo_s3_control.types.get_access_point_for_object_lambda_result.GetAccessPointForObjectLambdaResult"
    ]:
        import capo_s3_control._operations.awss3_control_service_v20180820.get_access_point_for_object_lambda

        (
            output,
            http_response,
        ) = await capo_s3_control._operations.awss3_control_service_v20180820.get_access_point_for_object_lambda.async_get_access_point_for_object_lambda(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccessPointForObjectLambda")
    )
    input_: capo_s3_control.types.get_access_point_for_object_lambda_request.GetAccessPointForObjectLambdaRequest = {
        "account_id": account_id,
        "name": name,
    }

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