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.CreateMonitoringSubscription

Description

Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an additional cost.

For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateMonitoringSubscription Source #

See: newCreateMonitoringSubscription smart constructor.

Constructors

CreateMonitoringSubscription' 

Fields

Instances

Instances details
Eq CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Read CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Show CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Generic CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Associated Types

type Rep CreateMonitoringSubscription :: Type -> Type #

NFData CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Hashable CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

AWSRequest CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

ToHeaders CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

ToPath CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

ToQuery CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

ToElement CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

type Rep CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

type Rep CreateMonitoringSubscription = D1 ('MetaData "CreateMonitoringSubscription" "Amazonka.CloudFront.CreateMonitoringSubscription" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateMonitoringSubscription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "monitoringSubscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MonitoringSubscription) :*: S1 ('MetaSel ('Just "distributionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateMonitoringSubscription Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

newCreateMonitoringSubscription Source #

Create a value of CreateMonitoringSubscription 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:monitoringSubscription:CreateMonitoringSubscription', createMonitoringSubscription_monitoringSubscription - A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.

$sel:distributionId:CreateMonitoringSubscription', createMonitoringSubscription_distributionId - The ID of the distribution that you are enabling metrics for.

Request Lenses

createMonitoringSubscription_monitoringSubscription :: Lens' CreateMonitoringSubscription MonitoringSubscription Source #

A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.

createMonitoringSubscription_distributionId :: Lens' CreateMonitoringSubscription Text Source #

The ID of the distribution that you are enabling metrics for.

Destructuring the Response

data CreateMonitoringSubscriptionResponse Source #

Constructors

CreateMonitoringSubscriptionResponse' 

Fields

Instances

Instances details
Eq CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Read CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Show CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

Generic CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

NFData CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

type Rep CreateMonitoringSubscriptionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateMonitoringSubscription

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

newCreateMonitoringSubscriptionResponse Source #

Create a value of CreateMonitoringSubscriptionResponse 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:monitoringSubscription:CreateMonitoringSubscription', createMonitoringSubscriptionResponse_monitoringSubscription - A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.

$sel:httpStatus:CreateMonitoringSubscriptionResponse', createMonitoringSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses

createMonitoringSubscriptionResponse_monitoringSubscription :: Lens' CreateMonitoringSubscriptionResponse (Maybe MonitoringSubscription) Source #

A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.