Skip to content

/AWS1/CL_EC2=>GETFLOWLOGSINTEGRATIONTMPL()

About GetFlowLogsIntegrationTemplate

Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:

  • Create a table in Athena that maps fields to a custom log format

  • Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis

  • Create a table partitioned between two timestamps in the past

  • Create a set of named queries in Athena that you can use to get started quickly

GetFlowLogsIntegrationTemplate does not support integration between Amazon Web Services Transit Gateway Flow Logs and Amazon Athena.

Method Signature

IMPORTING

Required arguments:

iv_flowlogid TYPE /AWS1/EC2VPCFLOWLOGID /AWS1/EC2VPCFLOWLOGID

The ID of the flow log.

iv_configdeliverys3dstarn TYPE /AWS1/EC2STRING /AWS1/EC2STRING

To store the CloudFormation template in Amazon S3, specify the location in Amazon S3.

io_integrateservices TYPE REF TO /AWS1/CL_EC2INTEGRATESERVICES /AWS1/CL_EC2INTEGRATESERVICES

Information about the service integration.

Optional arguments:

iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

RETURNING

oo_output TYPE REF TO /aws1/cl_ec2getflowlogsinteg01 /AWS1/CL_EC2GETFLOWLOGSINTEG01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

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.

DATA(lo_result) = lo_client->/aws1/if_ec2~getflowlogsintegrationtmpl(
  io_integrateservices = new /aws1/cl_ec2integrateservices(
    it_athenaintegrations = VALUE /aws1/cl_ec2athenaintegration=>tt_athenaintegrationsset(
      (
        new /aws1/cl_ec2athenaintegration(
          iv_integrationresults3dstarn = |string|
          iv_partitionenddate = '20150101000000.0000000'
          iv_partitionloadfrequency = |string|
          iv_partitionstartdate = '20150101000000.0000000'
        )
      )
    )
  )
  iv_configdeliverys3dstarn = |string|
  iv_dryrun = ABAP_TRUE
  iv_flowlogid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_result( ).
ENDIF.