PutBucketNotificationConfiguration #

Overview #

Enables notifications of specified events for a bucket.

AWS API Reference: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotificationConfiguration.html

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_t_cloud_function_config(CloudFunctionConfiguration in AWS)

    Describes the AWS Lambda functions to invoke and the events for which to invoke them.

  • i_t_queue_configuration(QueueConfiguration in AWS)

    The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.

  • i_t_topic_configuration(TopicConfiguration in AWS)

    The topic to which notifications are sent and the events for which notifications are generated.

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,
      lt_cloud_function_config TYPE /lnkc/aws_s3_t_lambdafuncconfi,
      lt_queue_configuration   TYPE /lnkc/aws_s3_t_queueconfig,
      lt_topic_configuration   TYPE /lnkc/aws_s3_t_topicconfigurat.

      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->putbucketnotificationconfig
            i_bucket_name             = 'i_bucket_name'
            i_region                  = 'i_region'
            i_t_cloud_function_config = lt_cloud_function_config
            i_t_queue_configuration   = lt_queue_configuration
            i_t_topic_configuration   = lt_topic_configuration
            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