CreateAccessPoint #

Overview #

Creates an access point and associates it with the specified bucket.

AWS API Reference:

Method #


Import Parameters #

The request uses the following import parameters.

  • i_bucket_name (bucket in AWS) (Required)

    Name of the bucket to create.

  • i_region (Required)

    AWS Region of the Amazon S3 Bucket.

  • i_name (name) (Required)

    The name you want to assign to this access point.

  • i_x_amz_account_id (x-amz-account-id) (Required)

    The AWS account ID for the owner of the bucket for which you want to create an access point.

  • i_vpcconfiguration_vpcid (VpcConfiguration in AWS) (Required)

    If you include this field, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).

  • i_publicaccessblockconfigurat (PublicAccessBlockConfiguration in AWS) (Required)

    The PublicAccessBlock configuration that you want to apply to this Amazon S3 account.

Export Parameters #

This method use the following export parameters:

  • e_http_status

    HTTP Status code.

  • e_response_headers

    Returns information about the request in format Name/Value pair values.

  • e_response_content

    Response content in string format.

Example #

DATA: lo_s3               TYPE REF TO /lnkc/cl_sdk_aws_s3,
      lv_http_status      TYPE i,
      lt_response_headers TYPE tihttpnvp,
      lv_response_content TYPE string.

      CREATE OBJECT lo_s3
          i_user_name         = 'user_awsconnector'
          i_access_key        = 'acces_key_value'
          i_secret_access_key = 'secret_acceskey_value'.

      CALL METHOD lo_s3_control->createaccesspoint
          i_bucket_name      = 'i_bucket_name'
          i_region           = 'i_region'
          i_name             = 'i_name'
          i_x_amz_account_id = 'i_x_amz_account_id'
*         i_vpcconfiguration_vpcid      =
*         i_publicaccessblockconfigurat =
          e_http_status      = lv_http_status
          e_response_headers = lt_response_headers
          e_response_content = lv_response_content.
      CATCH /lnkc/cx_sdk_aws .
        " Error Message