amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.GetFlowLogsIntegrationTemplate

Description

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
Synopsis

Creating a Request

data GetFlowLogsIntegrationTemplate Source #

See: newGetFlowLogsIntegrationTemplate smart constructor.

Constructors

GetFlowLogsIntegrationTemplate' 

Fields

  • dryRun :: Maybe Bool

    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.

  • flowLogId :: Text

    The ID of the flow log.

  • configDeliveryS3DestinationArn :: Text

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

  • integrateServices :: IntegrateServices

    Information about the service integration.

Instances

Instances details
ToHeaders GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

ToPath GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

ToQuery GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

AWSRequest GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Generic GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Associated Types

type Rep GetFlowLogsIntegrationTemplate :: Type -> Type #

Read GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Show GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

NFData GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Eq GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Hashable GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

type AWSResponse GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

type Rep GetFlowLogsIntegrationTemplate Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

type Rep GetFlowLogsIntegrationTemplate = D1 ('MetaData "GetFlowLogsIntegrationTemplate" "Amazonka.EC2.GetFlowLogsIntegrationTemplate" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "GetFlowLogsIntegrationTemplate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "flowLogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "configDeliveryS3DestinationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "integrateServices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IntegrateServices))))

newGetFlowLogsIntegrationTemplate Source #

Create a value of GetFlowLogsIntegrationTemplate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:GetFlowLogsIntegrationTemplate', getFlowLogsIntegrationTemplate_dryRun - 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.

GetFlowLogsIntegrationTemplate, getFlowLogsIntegrationTemplate_flowLogId - The ID of the flow log.

$sel:configDeliveryS3DestinationArn:GetFlowLogsIntegrationTemplate', getFlowLogsIntegrationTemplate_configDeliveryS3DestinationArn - To store the CloudFormation template in Amazon S3, specify the location in Amazon S3.

$sel:integrateServices:GetFlowLogsIntegrationTemplate', getFlowLogsIntegrationTemplate_integrateServices - Information about the service integration.

Request Lenses

getFlowLogsIntegrationTemplate_dryRun :: Lens' GetFlowLogsIntegrationTemplate (Maybe Bool) Source #

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.

getFlowLogsIntegrationTemplate_configDeliveryS3DestinationArn :: Lens' GetFlowLogsIntegrationTemplate Text Source #

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

Destructuring the Response

data GetFlowLogsIntegrationTemplateResponse Source #

Constructors

GetFlowLogsIntegrationTemplateResponse' 

Fields

Instances

Instances details
Generic GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Read GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Show GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

NFData GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

Eq GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

type Rep GetFlowLogsIntegrationTemplateResponse Source # 
Instance details

Defined in Amazonka.EC2.GetFlowLogsIntegrationTemplate

type Rep GetFlowLogsIntegrationTemplateResponse = D1 ('MetaData "GetFlowLogsIntegrationTemplateResponse" "Amazonka.EC2.GetFlowLogsIntegrationTemplate" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "GetFlowLogsIntegrationTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "result") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetFlowLogsIntegrationTemplateResponse Source #

Create a value of GetFlowLogsIntegrationTemplateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:result:GetFlowLogsIntegrationTemplateResponse', getFlowLogsIntegrationTemplateResponse_result - The generated CloudFormation template.

$sel:httpStatus:GetFlowLogsIntegrationTemplateResponse', getFlowLogsIntegrationTemplateResponse_httpStatus - The response's http status code.

Response Lenses