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 |
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
- data CreateMonitoringSubscription = CreateMonitoringSubscription' {}
- newCreateMonitoringSubscription :: MonitoringSubscription -> Text -> CreateMonitoringSubscription
- createMonitoringSubscription_monitoringSubscription :: Lens' CreateMonitoringSubscription MonitoringSubscription
- createMonitoringSubscription_distributionId :: Lens' CreateMonitoringSubscription Text
- data CreateMonitoringSubscriptionResponse = CreateMonitoringSubscriptionResponse' {}
- newCreateMonitoringSubscriptionResponse :: Int -> CreateMonitoringSubscriptionResponse
- createMonitoringSubscriptionResponse_monitoringSubscription :: Lens' CreateMonitoringSubscriptionResponse (Maybe MonitoringSubscription)
- createMonitoringSubscriptionResponse_httpStatus :: Lens' CreateMonitoringSubscriptionResponse Int
Creating a Request
data CreateMonitoringSubscription Source #
See: newCreateMonitoringSubscription
smart constructor.
CreateMonitoringSubscription' | |
|
Instances
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 #
See: newCreateMonitoringSubscriptionResponse
smart constructor.
CreateMonitoringSubscriptionResponse' | |
|
Instances
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.
createMonitoringSubscriptionResponse_httpStatus :: Lens' CreateMonitoringSubscriptionResponse Int Source #
The response's http status code.