libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.CreateRealtimeLogConfig

Description

Creates a real-time log configuration.

After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.

For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateRealtimeLogConfig Source #

See: newCreateRealtimeLogConfig smart constructor.

Constructors

CreateRealtimeLogConfig' 

Fields

  • endPoints :: [EndPoint]

    Contains information about the Amazon Kinesis data stream where you are sending real-time log data.

  • fields :: [Text]

    A list of fields to include in each real-time log record.

    For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.

  • name :: Text

    A unique name to identify this real-time log configuration.

  • samplingRate :: Integer

    The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.

Instances

Instances details
Eq CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Read CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Show CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Generic CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Associated Types

type Rep CreateRealtimeLogConfig :: Type -> Type #

NFData CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Methods

rnf :: CreateRealtimeLogConfig -> () #

Hashable CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

AWSRequest CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

ToHeaders CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

ToPath CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

ToQuery CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

ToElement CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

ToXML CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

type Rep CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

type Rep CreateRealtimeLogConfig = D1 ('MetaData "CreateRealtimeLogConfig" "Amazonka.CloudFront.CreateRealtimeLogConfig" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateRealtimeLogConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "endPoints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EndPoint]) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "samplingRate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer))))
type AWSResponse CreateRealtimeLogConfig Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

newCreateRealtimeLogConfig Source #

Create a value of CreateRealtimeLogConfig 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:endPoints:CreateRealtimeLogConfig', createRealtimeLogConfig_endPoints - Contains information about the Amazon Kinesis data stream where you are sending real-time log data.

$sel:fields:CreateRealtimeLogConfig', createRealtimeLogConfig_fields - A list of fields to include in each real-time log record.

For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.

$sel:name:CreateRealtimeLogConfig', createRealtimeLogConfig_name - A unique name to identify this real-time log configuration.

$sel:samplingRate:CreateRealtimeLogConfig', createRealtimeLogConfig_samplingRate - The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.

Request Lenses

createRealtimeLogConfig_endPoints :: Lens' CreateRealtimeLogConfig [EndPoint] Source #

Contains information about the Amazon Kinesis data stream where you are sending real-time log data.

createRealtimeLogConfig_fields :: Lens' CreateRealtimeLogConfig [Text] Source #

A list of fields to include in each real-time log record.

For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.

createRealtimeLogConfig_name :: Lens' CreateRealtimeLogConfig Text Source #

A unique name to identify this real-time log configuration.

createRealtimeLogConfig_samplingRate :: Lens' CreateRealtimeLogConfig Integer Source #

The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. You must provide an integer between 1 and 100, inclusive.

Destructuring the Response

data CreateRealtimeLogConfigResponse Source #

See: newCreateRealtimeLogConfigResponse smart constructor.

Constructors

CreateRealtimeLogConfigResponse' 

Fields

Instances

Instances details
Eq CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Read CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Show CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Generic CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

Associated Types

type Rep CreateRealtimeLogConfigResponse :: Type -> Type #

NFData CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

type Rep CreateRealtimeLogConfigResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateRealtimeLogConfig

type Rep CreateRealtimeLogConfigResponse = D1 ('MetaData "CreateRealtimeLogConfigResponse" "Amazonka.CloudFront.CreateRealtimeLogConfig" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateRealtimeLogConfigResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "realtimeLogConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RealtimeLogConfig)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRealtimeLogConfigResponse Source #

Create a value of CreateRealtimeLogConfigResponse 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:realtimeLogConfig:CreateRealtimeLogConfigResponse', createRealtimeLogConfigResponse_realtimeLogConfig - A real-time log configuration.

$sel:httpStatus:CreateRealtimeLogConfigResponse', createRealtimeLogConfigResponse_httpStatus - The response's http status code.

Response Lenses