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 |
Enables Infrastructure Performance subscriptions.
Synopsis
- data EnableAwsNetworkPerformanceMetricSubscription = EnableAwsNetworkPerformanceMetricSubscription' {
- destination :: Maybe Text
- dryRun :: Maybe Bool
- metric :: Maybe MetricType
- source :: Maybe Text
- statistic :: Maybe StatisticType
- newEnableAwsNetworkPerformanceMetricSubscription :: EnableAwsNetworkPerformanceMetricSubscription
- enableAwsNetworkPerformanceMetricSubscription_destination :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Text)
- enableAwsNetworkPerformanceMetricSubscription_dryRun :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Bool)
- enableAwsNetworkPerformanceMetricSubscription_metric :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe MetricType)
- enableAwsNetworkPerformanceMetricSubscription_source :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Text)
- enableAwsNetworkPerformanceMetricSubscription_statistic :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe StatisticType)
- data EnableAwsNetworkPerformanceMetricSubscriptionResponse = EnableAwsNetworkPerformanceMetricSubscriptionResponse' {
- output :: Maybe Bool
- httpStatus :: Int
- newEnableAwsNetworkPerformanceMetricSubscriptionResponse :: Int -> EnableAwsNetworkPerformanceMetricSubscriptionResponse
- enableAwsNetworkPerformanceMetricSubscriptionResponse_output :: Lens' EnableAwsNetworkPerformanceMetricSubscriptionResponse (Maybe Bool)
- enableAwsNetworkPerformanceMetricSubscriptionResponse_httpStatus :: Lens' EnableAwsNetworkPerformanceMetricSubscriptionResponse Int
Creating a Request
data EnableAwsNetworkPerformanceMetricSubscription Source #
See: newEnableAwsNetworkPerformanceMetricSubscription
smart constructor.
EnableAwsNetworkPerformanceMetricSubscription' | |
|
Instances
newEnableAwsNetworkPerformanceMetricSubscription :: EnableAwsNetworkPerformanceMetricSubscription Source #
Create a value of EnableAwsNetworkPerformanceMetricSubscription
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:
EnableAwsNetworkPerformanceMetricSubscription
, enableAwsNetworkPerformanceMetricSubscription_destination
- The target Region or Availability Zone that the metric subscription is
enabled for. For example, eu-west-1
.
$sel:dryRun:EnableAwsNetworkPerformanceMetricSubscription'
, enableAwsNetworkPerformanceMetricSubscription_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
EnableAwsNetworkPerformanceMetricSubscription
, enableAwsNetworkPerformanceMetricSubscription_metric
- The metric used for the enabled subscription.
EnableAwsNetworkPerformanceMetricSubscription
, enableAwsNetworkPerformanceMetricSubscription_source
- The source Region or Availability Zone that the metric subscription is
enabled for. For example, us-east-1
.
EnableAwsNetworkPerformanceMetricSubscription
, enableAwsNetworkPerformanceMetricSubscription_statistic
- The statistic used for the enabled subscription.
Request Lenses
enableAwsNetworkPerformanceMetricSubscription_destination :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Text) Source #
The target Region or Availability Zone that the metric subscription is
enabled for. For example, eu-west-1
.
enableAwsNetworkPerformanceMetricSubscription_dryRun :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
enableAwsNetworkPerformanceMetricSubscription_metric :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe MetricType) Source #
The metric used for the enabled subscription.
enableAwsNetworkPerformanceMetricSubscription_source :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Text) Source #
The source Region or Availability Zone that the metric subscription is
enabled for. For example, us-east-1
.
enableAwsNetworkPerformanceMetricSubscription_statistic :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe StatisticType) Source #
The statistic used for the enabled subscription.
Destructuring the Response
data EnableAwsNetworkPerformanceMetricSubscriptionResponse Source #
See: newEnableAwsNetworkPerformanceMetricSubscriptionResponse
smart constructor.
EnableAwsNetworkPerformanceMetricSubscriptionResponse' | |
|
Instances
newEnableAwsNetworkPerformanceMetricSubscriptionResponse Source #
:: Int |
|
-> EnableAwsNetworkPerformanceMetricSubscriptionResponse |
Create a value of EnableAwsNetworkPerformanceMetricSubscriptionResponse
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:output:EnableAwsNetworkPerformanceMetricSubscriptionResponse'
, enableAwsNetworkPerformanceMetricSubscriptionResponse_output
- Indicates whether the subscribe action was successful.
$sel:httpStatus:EnableAwsNetworkPerformanceMetricSubscriptionResponse'
, enableAwsNetworkPerformanceMetricSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
enableAwsNetworkPerformanceMetricSubscriptionResponse_output :: Lens' EnableAwsNetworkPerformanceMetricSubscriptionResponse (Maybe Bool) Source #
Indicates whether the subscribe action was successful.
enableAwsNetworkPerformanceMetricSubscriptionResponse_httpStatus :: Lens' EnableAwsNetworkPerformanceMetricSubscriptionResponse Int Source #
The response's http status code.