Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateRealtimeLogConfig = CreateRealtimeLogConfig' {}
- newCreateRealtimeLogConfig :: Text -> Integer -> CreateRealtimeLogConfig
- createRealtimeLogConfig_endPoints :: Lens' CreateRealtimeLogConfig [EndPoint]
- createRealtimeLogConfig_fields :: Lens' CreateRealtimeLogConfig [Text]
- createRealtimeLogConfig_name :: Lens' CreateRealtimeLogConfig Text
- createRealtimeLogConfig_samplingRate :: Lens' CreateRealtimeLogConfig Integer
- data CreateRealtimeLogConfigResponse = CreateRealtimeLogConfigResponse' {}
- newCreateRealtimeLogConfigResponse :: Int -> CreateRealtimeLogConfigResponse
- createRealtimeLogConfigResponse_realtimeLogConfig :: Lens' CreateRealtimeLogConfigResponse (Maybe RealtimeLogConfig)
- createRealtimeLogConfigResponse_httpStatus :: Lens' CreateRealtimeLogConfigResponse Int
Creating a Request
data CreateRealtimeLogConfig Source #
See: newCreateRealtimeLogConfig
smart constructor.
CreateRealtimeLogConfig' | |
|
Instances
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:
CreateRealtimeLogConfig
, createRealtimeLogConfig_endPoints
- Contains information about the Amazon Kinesis data stream where you are
sending real-time log data.
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.
CreateRealtimeLogConfig
, createRealtimeLogConfig_name
- A unique name to identify this real-time log configuration.
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.
CreateRealtimeLogConfigResponse' | |
|
Instances
Generic CreateRealtimeLogConfigResponse Source # | |
Read CreateRealtimeLogConfigResponse Source # | |
Show CreateRealtimeLogConfigResponse Source # | |
Defined in Amazonka.CloudFront.CreateRealtimeLogConfig | |
NFData CreateRealtimeLogConfigResponse Source # | |
Defined in Amazonka.CloudFront.CreateRealtimeLogConfig rnf :: CreateRealtimeLogConfigResponse -> () # | |
Eq CreateRealtimeLogConfigResponse Source # | |
type Rep CreateRealtimeLogConfigResponse Source # | |
Defined in Amazonka.CloudFront.CreateRealtimeLogConfig type Rep CreateRealtimeLogConfigResponse = D1 ('MetaData "CreateRealtimeLogConfigResponse" "Amazonka.CloudFront.CreateRealtimeLogConfig" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" '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
createRealtimeLogConfigResponse_realtimeLogConfig :: Lens' CreateRealtimeLogConfigResponse (Maybe RealtimeLogConfig) Source #
A real-time log configuration.
createRealtimeLogConfigResponse_httpStatus :: Lens' CreateRealtimeLogConfigResponse Int Source #
The response's http status code.