libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.Types.MonitoredResourceInfo

Description

 
Synopsis

Documentation

data MonitoredResourceInfo Source #

Describes resource being monitored by an alarm.

An alarm is a way to monitor your Amazon Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.

See: newMonitoredResourceInfo smart constructor.

Constructors

MonitoredResourceInfo' 

Fields

  • resourceType :: Maybe ResourceType

    The Lightsail resource type of the resource being monitored.

    Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the resource being monitored.

  • name :: Maybe Text

    The name of the Lightsail resource being monitored.

Instances

Instances details
Eq MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Read MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Show MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Generic MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Associated Types

type Rep MonitoredResourceInfo :: Type -> Type #

NFData MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Methods

rnf :: MonitoredResourceInfo -> () #

Hashable MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

FromJSON MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

type Rep MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

type Rep MonitoredResourceInfo = D1 ('MetaData "MonitoredResourceInfo" "Amazonka.Lightsail.Types.MonitoredResourceInfo" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "MonitoredResourceInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType)) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newMonitoredResourceInfo :: MonitoredResourceInfo Source #

Create a value of MonitoredResourceInfo 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:resourceType:MonitoredResourceInfo', monitoredResourceInfo_resourceType - The Lightsail resource type of the resource being monitored.

Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.

$sel:arn:MonitoredResourceInfo', monitoredResourceInfo_arn - The Amazon Resource Name (ARN) of the resource being monitored.

$sel:name:MonitoredResourceInfo', monitoredResourceInfo_name - The name of the Lightsail resource being monitored.

monitoredResourceInfo_resourceType :: Lens' MonitoredResourceInfo (Maybe ResourceType) Source #

The Lightsail resource type of the resource being monitored.

Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.

monitoredResourceInfo_arn :: Lens' MonitoredResourceInfo (Maybe Text) Source #

The Amazon Resource Name (ARN) of the resource being monitored.

monitoredResourceInfo_name :: Lens' MonitoredResourceInfo (Maybe Text) Source #

The name of the Lightsail resource being monitored.