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

Contents

Description

Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.

Synopsis

Creating a Request

putInstancePublicPorts #

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

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

  • pippPortInfos - Specifies information about the public port(s).
  • pippInstanceName - The Lightsail instance name of the public port(s) you are setting.

data PutInstancePublicPorts #

See: putInstancePublicPorts smart constructor.

Instances

Eq PutInstancePublicPorts # 
Data PutInstancePublicPorts # 

Methods

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

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

toConstr :: PutInstancePublicPorts -> Constr #

dataTypeOf :: PutInstancePublicPorts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutInstancePublicPorts # 
Show PutInstancePublicPorts # 
Generic PutInstancePublicPorts # 
Hashable PutInstancePublicPorts # 
ToJSON PutInstancePublicPorts # 
NFData PutInstancePublicPorts # 

Methods

rnf :: PutInstancePublicPorts -> () #

AWSRequest PutInstancePublicPorts # 
ToHeaders PutInstancePublicPorts # 
ToPath PutInstancePublicPorts # 
ToQuery PutInstancePublicPorts # 
type Rep PutInstancePublicPorts # 
type Rep PutInstancePublicPorts = D1 * (MetaData "PutInstancePublicPorts" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "PutInstancePublicPorts'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pippPortInfos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [PortInfo])) (S1 * (MetaSel (Just Symbol "_pippInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs PutInstancePublicPorts # 

Request Lenses

pippPortInfos :: Lens' PutInstancePublicPorts [PortInfo] #

Specifies information about the public port(s).

pippInstanceName :: Lens' PutInstancePublicPorts Text #

The Lightsail instance name of the public port(s) you are setting.

Destructuring the Response

putInstancePublicPortsResponse #

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

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

data PutInstancePublicPortsResponse #

See: putInstancePublicPortsResponse smart constructor.

Instances

Eq PutInstancePublicPortsResponse # 
Data PutInstancePublicPortsResponse # 

Methods

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

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

toConstr :: PutInstancePublicPortsResponse -> Constr #

dataTypeOf :: PutInstancePublicPortsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutInstancePublicPortsResponse # 
Show PutInstancePublicPortsResponse # 
Generic PutInstancePublicPortsResponse # 
NFData PutInstancePublicPortsResponse # 
type Rep PutInstancePublicPortsResponse # 
type Rep PutInstancePublicPortsResponse = D1 * (MetaData "PutInstancePublicPortsResponse" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "PutInstancePublicPortsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pipprsOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Operation))) (S1 * (MetaSel (Just Symbol "_pipprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

pipprsOperation :: Lens' PutInstancePublicPortsResponse (Maybe Operation) #

Describes metadata about the operation you just executed.