amazonka-lightsail-1.5.0: Amazon Lightsail SDK.

Copyright(c) 2013-2017 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.CloseInstancePublicPorts

Contents

Description

Closes the public ports on a specific Amazon Lightsail instance.

Synopsis

Creating a Request

closeInstancePublicPorts Source #

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

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

  • cippPortInfo - Information about the public port you are trying to close.
  • cippInstanceName - The name of the instance on which you're attempting to close the public ports.

data CloseInstancePublicPorts Source #

See: closeInstancePublicPorts smart constructor.

Instances

Eq CloseInstancePublicPorts Source # 
Data CloseInstancePublicPorts Source # 

Methods

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

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

toConstr :: CloseInstancePublicPorts -> Constr #

dataTypeOf :: CloseInstancePublicPorts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CloseInstancePublicPorts Source # 
Show CloseInstancePublicPorts Source # 
Generic CloseInstancePublicPorts Source # 
Hashable CloseInstancePublicPorts Source # 
ToJSON CloseInstancePublicPorts Source # 
NFData CloseInstancePublicPorts Source # 
AWSRequest CloseInstancePublicPorts Source # 
ToQuery CloseInstancePublicPorts Source # 
ToPath CloseInstancePublicPorts Source # 
ToHeaders CloseInstancePublicPorts Source # 
type Rep CloseInstancePublicPorts Source # 
type Rep CloseInstancePublicPorts = D1 (MetaData "CloseInstancePublicPorts" "Network.AWS.Lightsail.CloseInstancePublicPorts" "amazonka-lightsail-1.5.0-E35HA2Q1qxxGaFNVAGVi4N" False) (C1 (MetaCons "CloseInstancePublicPorts'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cippPortInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PortInfo)) (S1 (MetaSel (Just Symbol "_cippInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CloseInstancePublicPorts Source # 

Request Lenses

cippPortInfo :: Lens' CloseInstancePublicPorts PortInfo Source #

Information about the public port you are trying to close.

cippInstanceName :: Lens' CloseInstancePublicPorts Text Source #

The name of the instance on which you're attempting to close the public ports.

Destructuring the Response

closeInstancePublicPortsResponse Source #

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

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

data CloseInstancePublicPortsResponse Source #

See: closeInstancePublicPortsResponse smart constructor.

Instances

Eq CloseInstancePublicPortsResponse Source # 
Data CloseInstancePublicPortsResponse Source # 

Methods

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

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

toConstr :: CloseInstancePublicPortsResponse -> Constr #

dataTypeOf :: CloseInstancePublicPortsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CloseInstancePublicPortsResponse Source # 
Show CloseInstancePublicPortsResponse Source # 
Generic CloseInstancePublicPortsResponse Source # 
NFData CloseInstancePublicPortsResponse Source # 
type Rep CloseInstancePublicPortsResponse Source # 
type Rep CloseInstancePublicPortsResponse = D1 (MetaData "CloseInstancePublicPortsResponse" "Network.AWS.Lightsail.CloseInstancePublicPorts" "amazonka-lightsail-1.5.0-E35HA2Q1qxxGaFNVAGVi4N" False) (C1 (MetaCons "CloseInstancePublicPortsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cipprsOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Operation))) (S1 (MetaSel (Just Symbol "_cipprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cipprsOperation :: Lens' CloseInstancePublicPortsResponse (Maybe Operation) Source #

An array of key-value pairs that contains information about the operation.