amazonka-lightsail-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Data PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPorts :: Type -> Type #

Hashable PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToJSON PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

AWSRequest PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rs PutInstancePublicPorts :: Type #

ToHeaders PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToPath PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToQuery PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

NFData PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Methods

rnf :: PutInstancePublicPorts -> () #

type Rep PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPorts = D1 (MetaData "PutInstancePublicPorts" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" False) (C1 (MetaCons "PutInstancePublicPorts'" PrefixI True) (S1 (MetaSel (Just "_pippPortInfos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [PortInfo]) :*: S1 (MetaSel (Just "_pippInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs PutInstancePublicPorts # 
Instance details

Defined in Network.AWS.Lightsail.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 # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Data PutInstancePublicPortsResponse # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

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 # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPortsResponse # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPortsResponse # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPortsResponse :: Type -> Type #

NFData PutInstancePublicPortsResponse # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPortsResponse # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPortsResponse = D1 (MetaData "PutInstancePublicPortsResponse" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.1-DK54tD67vqE2dEuVa43WK0" False) (C1 (MetaCons "PutInstancePublicPortsResponse'" PrefixI True) (S1 (MetaSel (Just "_pipprsOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 (MetaSel (Just "_pipprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

pipprsOperation :: Lens' PutInstancePublicPortsResponse (Maybe Operation) #

Describes metadata about the operation you just executed.