Skip to content

create_access_point_for_object_lambda

create_access_point_for_object_lambda(
    account_id: AccountId,
    name: ObjectLambdaAccessPointName,
    configuration: ObjectLambdaConfiguration,
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> CreateAccessPointForObjectLambdaResult

This operation is not supported by directory buckets.

Creates an Object Lambda Access Point. For more information, see Transforming objects with Object Lambda Access Points in the Amazon S3 User Guide.

The following actions are related to CreateAccessPointForObjectLambda:

Parameters:

  • account_id (AccountId) –

    The Amazon Web Services account ID for owner of the specified Object Lambda Access Point.

  • name (ObjectLambdaAccessPointName) –

    The name you want to assign to this Object Lambda Access Point.

  • configuration (ObjectLambdaConfiguration) –

    Object Lambda Access Point configuration as a JSON document.

Raises:

Source code in docs_src/capo_s3_control/_services/s3_control.py
def create_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",
    configuration: "capo_s3_control.types.object_lambda_configuration.ObjectLambdaConfiguration",
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> "capo_s3_control.types.create_access_point_for_object_lambda_result.CreateAccessPointForObjectLambdaResult":
    """<note> <p>This operation is not supported by directory buckets.</p> </note> <p>Creates an Object Lambda Access Point. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with Object Lambda Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> <p>The following actions are related to <code>CreateAccessPointForObjectLambda</code>:</p> <ul> <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_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</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 Amazon Web Services account ID for owner of the specified Object Lambda Access Point.</p>
        name: <p>The name you want to assign to this Object Lambda Access Point.</p>
        configuration: <p>Object Lambda Access Point configuration as a JSON document.</p>

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

    def _handler(
        req: "OperationRequest[capo_s3_control.types.create_access_point_for_object_lambda_request.CreateAccessPointForObjectLambdaRequest]",
    ) -> OperationResponse[
        "capo_s3_control.types.create_access_point_for_object_lambda_result.CreateAccessPointForObjectLambdaResult"
    ]:
        import capo_s3_control._operations.awss3_control_service_v20180820.create_access_point_for_object_lambda

        output, http_response = (
            capo_s3_control._operations.awss3_control_service_v20180820.create_access_point_for_object_lambda.create_access_point_for_object_lambda(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateAccessPointForObjectLambda")
    )
    input_: capo_s3_control.types.create_access_point_for_object_lambda_request.CreateAccessPointForObjectLambdaRequest = {
        "account_id": account_id,
        "name": name,
        "configuration": configuration,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output