amazonka-lightsail-2.0: Amazon Lightsail 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.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

  • arn :: Maybe Text

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

  • name :: Maybe Text

    The name of the Lightsail resource being monitored.

  • 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.

Instances

Instances details
FromJSON 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 #

Read MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Show MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

NFData MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Methods

rnf :: MonitoredResourceInfo -> () #

Eq MonitoredResourceInfo Source # 
Instance details

Defined in Amazonka.Lightsail.Types.MonitoredResourceInfo

Hashable 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "MonitoredResourceInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType)))))

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: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.

$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.

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.

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.