amazonka-lightsail-1.6.0: Amazon Lightsail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lightsail.GetInstancePortStates

Contents

Description

Returns the port states for a specific virtual private server, or instance .

Synopsis

Creating a Request

getInstancePortStates #

Creates a value of GetInstancePortStates with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetInstancePortStates #

See: getInstancePortStates smart constructor.

Instances

Eq GetInstancePortStates # 
Data GetInstancePortStates # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstancePortStates -> c GetInstancePortStates #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstancePortStates #

toConstr :: GetInstancePortStates -> Constr #

dataTypeOf :: GetInstancePortStates -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetInstancePortStates) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstancePortStates) #

gmapT :: (forall b. Data b => b -> b) -> GetInstancePortStates -> GetInstancePortStates #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancePortStates -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancePortStates -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstancePortStates -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstancePortStates -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstancePortStates -> m GetInstancePortStates #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancePortStates -> m GetInstancePortStates #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancePortStates -> m GetInstancePortStates #

Read GetInstancePortStates # 
Show GetInstancePortStates # 
Generic GetInstancePortStates # 
Hashable GetInstancePortStates # 
ToJSON GetInstancePortStates # 
NFData GetInstancePortStates # 

Methods

rnf :: GetInstancePortStates -> () #

AWSRequest GetInstancePortStates # 
ToHeaders GetInstancePortStates # 
ToPath GetInstancePortStates # 
ToQuery GetInstancePortStates # 
type Rep GetInstancePortStates # 
type Rep GetInstancePortStates = D1 * (MetaData "GetInstancePortStates" "Network.AWS.Lightsail.GetInstancePortStates" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" True) (C1 * (MetaCons "GetInstancePortStates'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gipsInstanceName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetInstancePortStates # 

Request Lenses

gipsInstanceName :: Lens' GetInstancePortStates Text #

The name of the instance.

Destructuring the Response

getInstancePortStatesResponse #

Creates a value of GetInstancePortStatesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetInstancePortStatesResponse #

See: getInstancePortStatesResponse smart constructor.

Instances

Eq GetInstancePortStatesResponse # 
Data GetInstancePortStatesResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetInstancePortStatesResponse -> c GetInstancePortStatesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetInstancePortStatesResponse #

toConstr :: GetInstancePortStatesResponse -> Constr #

dataTypeOf :: GetInstancePortStatesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetInstancePortStatesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetInstancePortStatesResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetInstancePortStatesResponse -> GetInstancePortStatesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancePortStatesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetInstancePortStatesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetInstancePortStatesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetInstancePortStatesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetInstancePortStatesResponse -> m GetInstancePortStatesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancePortStatesResponse -> m GetInstancePortStatesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetInstancePortStatesResponse -> m GetInstancePortStatesResponse #

Read GetInstancePortStatesResponse # 
Show GetInstancePortStatesResponse # 
Generic GetInstancePortStatesResponse # 
NFData GetInstancePortStatesResponse # 
type Rep GetInstancePortStatesResponse # 
type Rep GetInstancePortStatesResponse = D1 * (MetaData "GetInstancePortStatesResponse" "Network.AWS.Lightsail.GetInstancePortStates" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "GetInstancePortStatesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gipsrsPortStates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [InstancePortState]))) (S1 * (MetaSel (Just Symbol "_gipsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

gipsrsPortStates :: Lens' GetInstancePortStatesResponse [InstancePortState] #

Information about the port states resulting from your request.