Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.
Synopsis
- data GetMonitoringSubscription = GetMonitoringSubscription' {}
- newGetMonitoringSubscription :: Text -> GetMonitoringSubscription
- getMonitoringSubscription_distributionId :: Lens' GetMonitoringSubscription Text
- data GetMonitoringSubscriptionResponse = GetMonitoringSubscriptionResponse' {}
- newGetMonitoringSubscriptionResponse :: Int -> GetMonitoringSubscriptionResponse
- getMonitoringSubscriptionResponse_monitoringSubscription :: Lens' GetMonitoringSubscriptionResponse (Maybe MonitoringSubscription)
- getMonitoringSubscriptionResponse_httpStatus :: Lens' GetMonitoringSubscriptionResponse Int
Creating a Request
data GetMonitoringSubscription Source #
See: newGetMonitoringSubscription
smart constructor.
GetMonitoringSubscription' | |
|
Instances
newGetMonitoringSubscription Source #
Create a value of GetMonitoringSubscription
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:distributionId:GetMonitoringSubscription'
, getMonitoringSubscription_distributionId
- The ID of the distribution that you are getting metrics information for.
Request Lenses
getMonitoringSubscription_distributionId :: Lens' GetMonitoringSubscription Text Source #
The ID of the distribution that you are getting metrics information for.
Destructuring the Response
data GetMonitoringSubscriptionResponse Source #
See: newGetMonitoringSubscriptionResponse
smart constructor.
GetMonitoringSubscriptionResponse' | |
|
Instances
Eq GetMonitoringSubscriptionResponse Source # | |
Read GetMonitoringSubscriptionResponse Source # | |
Show GetMonitoringSubscriptionResponse Source # | |
Generic GetMonitoringSubscriptionResponse Source # | |
NFData GetMonitoringSubscriptionResponse Source # | |
Defined in Amazonka.CloudFront.GetMonitoringSubscription rnf :: GetMonitoringSubscriptionResponse -> () # | |
type Rep GetMonitoringSubscriptionResponse Source # | |
Defined in Amazonka.CloudFront.GetMonitoringSubscription type Rep GetMonitoringSubscriptionResponse = D1 ('MetaData "GetMonitoringSubscriptionResponse" "Amazonka.CloudFront.GetMonitoringSubscription" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetMonitoringSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "monitoringSubscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MonitoringSubscription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetMonitoringSubscriptionResponse Source #
Create a value of GetMonitoringSubscriptionResponse
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:GetMonitoringSubscriptionResponse'
, getMonitoringSubscriptionResponse_monitoringSubscription
- A monitoring subscription. This structure contains information about
whether additional CloudWatch metrics are enabled for a given CloudFront
distribution.
$sel:httpStatus:GetMonitoringSubscriptionResponse'
, getMonitoringSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
getMonitoringSubscriptionResponse_monitoringSubscription :: Lens' GetMonitoringSubscriptionResponse (Maybe MonitoringSubscription) Source #
A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
getMonitoringSubscriptionResponse_httpStatus :: Lens' GetMonitoringSubscriptionResponse Int Source #
The response's http status code.