amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Description

Enables Infrastructure Performance subscriptions.

Synopsis

Creating a Request

data EnableAwsNetworkPerformanceMetricSubscription Source #

Constructors

EnableAwsNetworkPerformanceMetricSubscription' 

Fields

  • destination :: Maybe Text

    The target Region or Availability Zone that the metric subscription is enabled for. For example, eu-west-1.

  • dryRun :: Maybe Bool

    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.

  • metric :: Maybe MetricType

    The metric used for the enabled subscription.

  • source :: Maybe Text

    The source Region or Availability Zone that the metric subscription is enabled for. For example, us-east-1.

  • statistic :: Maybe StatisticType

    The statistic used for the enabled subscription.

Instances

Instances details
ToHeaders EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

ToPath EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

ToQuery EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

AWSRequest EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Generic EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Read EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Show EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

NFData EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Eq EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Hashable EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

type AWSResponse EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

type Rep EnableAwsNetworkPerformanceMetricSubscription Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

type Rep EnableAwsNetworkPerformanceMetricSubscription = D1 ('MetaData "EnableAwsNetworkPerformanceMetricSubscription" "Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableAwsNetworkPerformanceMetricSubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "metric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MetricType)) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "statistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatisticType))))))

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_source :: Lens' EnableAwsNetworkPerformanceMetricSubscription (Maybe Text) Source #

The source Region or Availability Zone that the metric subscription is enabled for. For example, us-east-1.

Destructuring the Response

data EnableAwsNetworkPerformanceMetricSubscriptionResponse Source #

Constructors

EnableAwsNetworkPerformanceMetricSubscriptionResponse' 

Fields

Instances

Instances details
Generic EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Read EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Show EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

NFData EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

Eq EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

type Rep EnableAwsNetworkPerformanceMetricSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription

type Rep EnableAwsNetworkPerformanceMetricSubscriptionResponse = D1 ('MetaData "EnableAwsNetworkPerformanceMetricSubscriptionResponse" "Amazonka.EC2.EnableAwsNetworkPerformanceMetricSubscription" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableAwsNetworkPerformanceMetricSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses