Skip to content

/AWS1/CL_IOA=>UPDATEDATASET()

About UpdateDataset

Updates the settings of a dataset.

Method Signature

IMPORTING

Required arguments:

iv_datasetname TYPE /AWS1/IOADATASETNAME /AWS1/IOADATASETNAME

The name of the dataset to update.

it_actions TYPE /AWS1/CL_IOADATASETACTION=>TT_DATASETACTIONS TT_DATASETACTIONS

A list of DatasetAction objects.

Optional arguments:

it_triggers TYPE /AWS1/CL_IOADATASETTRIGGER=>TT_DATASETTRIGGERS TT_DATASETTRIGGERS

A list of DatasetTrigger objects. The list can be empty or can contain up to five DatasetTrigger objects.

it_contentdeliveryrules TYPE /AWS1/CL_IOADSCONTDELIVERYRULE=>TT_DATASETCONTENTDELIVERYRULES TT_DATASETCONTENTDELIVERYRULES

When dataset contents are created, they are delivered to destinations specified here.

io_retentionperiod TYPE REF TO /AWS1/CL_IOARETENTIONPERIOD /AWS1/CL_IOARETENTIONPERIOD

How long, in days, dataset contents are kept for the dataset.

io_versioningconfiguration TYPE REF TO /AWS1/CL_IOAVERSIONINGCONF /AWS1/CL_IOAVERSIONINGCONF

Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the retentionPeriod parameter. For more information, see Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics User Guide.

it_latedatarules TYPE /AWS1/CL_IOALATEDATARULE=>TT_LATEDATARULES TT_LATEDATARULES

A list of data rules that send notifications to CloudWatch, when data arrives late. To specify lateDataRules, the dataset must use a DeltaTimer filter.

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

lo_client->/aws1/if_ioa~updatedataset(
  io_retentionperiod = new /aws1/cl_ioaretentionperiod(
    iv_numberofdays = 123
    iv_unlimited = ABAP_TRUE
  )
  io_versioningconfiguration = new /aws1/cl_ioaversioningconf(
    iv_maxversions = 123
    iv_unlimited = ABAP_TRUE
  )
  it_actions = VALUE /aws1/cl_ioadatasetaction=>tt_datasetactions(
    (
      new /aws1/cl_ioadatasetaction(
        io_containeraction = new /aws1/cl_ioacontainerdsaction(
          io_resourceconfiguration = new /aws1/cl_ioaresourceconf(
            iv_computetype = |string|
            iv_volumesizeingb = 123
          )
          it_variables = VALUE /aws1/cl_ioavariable=>tt_variables(
            (
              new /aws1/cl_ioavariable(
                io_datasetcontentvrsvalue = new /aws1/cl_ioadscontentvrsvalue( |string| )
                io_outputfileurivalue = new /aws1/cl_ioaoutputfileurivalue( |string| )
                iv_doublevalue = '0.1'
                iv_name = |string|
                iv_stringvalue = |string|
              )
            )
          )
          iv_executionrolearn = |string|
          iv_image = |string|
        )
        io_queryaction = new /aws1/cl_ioasqlquerydsaction(
          it_filters = VALUE /aws1/cl_ioaqueryfilter=>tt_queryfilters(
            (
              new /aws1/cl_ioaqueryfilter(
                io_deltatime = new /aws1/cl_ioadeltatime(
                  iv_offsetseconds = 123
                  iv_timeexpression = |string|
                )
              )
            )
          )
          iv_sqlquery = |string|
        )
        iv_actionname = |string|
      )
    )
  )
  it_contentdeliveryrules = VALUE /aws1/cl_ioadscontdeliveryrule=>tt_datasetcontentdeliveryrules(
    (
      new /aws1/cl_ioadscontdeliveryrule(
        io_destination = new /aws1/cl_ioadscontdeliverydst(
          io_ioteventsdestinationconf = new /aws1/cl_ioaioteventsdstconf(
            iv_inputname = |string|
            iv_rolearn = |string|
          )
          io_s3destinationconf = new /aws1/cl_ioas3destinationconf(
            io_glueconfiguration = new /aws1/cl_ioaglueconfiguration(
              iv_databasename = |string|
              iv_tablename = |string|
            )
            iv_bucket = |string|
            iv_key = |string|
            iv_rolearn = |string|
          )
        )
        iv_entryname = |string|
      )
    )
  )
  it_latedatarules = VALUE /aws1/cl_ioalatedatarule=>tt_latedatarules(
    (
      new /aws1/cl_ioalatedatarule(
        io_ruleconfiguration = new /aws1/cl_ioalatedataruleconf( new /aws1/cl_ioadeltatimesesswin00( 123 ) )
        iv_rulename = |string|
      )
    )
  )
  it_triggers = VALUE /aws1/cl_ioadatasettrigger=>tt_datasettriggers(
    (
      new /aws1/cl_ioadatasettrigger(
        io_dataset = new /aws1/cl_ioatriggeringdataset( |string| )
        io_schedule = new /aws1/cl_ioaschedule( |string| )
      )
    )
  )
  iv_datasetname = |string|
).