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 Source #

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 Source #

See: putInstancePublicPorts smart constructor.

Instances
Eq PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Data PutInstancePublicPorts Source # 
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 Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPorts :: Type -> Type #

Hashable PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToJSON PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

AWSRequest PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rs PutInstancePublicPorts :: Type #

ToHeaders PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToPath PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

ToQuery PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

NFData PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Methods

rnf :: PutInstancePublicPorts -> () #

type Rep PutInstancePublicPorts Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPorts = D1 (MetaData "PutInstancePublicPorts" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" 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 Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Request Lenses

pippPortInfos :: Lens' PutInstancePublicPorts [PortInfo] Source #

Specifies information about the public port(s).

pippInstanceName :: Lens' PutInstancePublicPorts Text Source #

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

Destructuring the Response

putInstancePublicPortsResponse Source #

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 Source #

See: putInstancePublicPortsResponse smart constructor.

Instances
Eq PutInstancePublicPortsResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Data PutInstancePublicPortsResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPortsResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPortsResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPortsResponse :: Type -> Type #

NFData PutInstancePublicPortsResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPortsResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPortsResponse = D1 (MetaData "PutInstancePublicPortsResponse" "Network.AWS.Lightsail.PutInstancePublicPorts" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" 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) Source #

Describes metadata about the operation you just executed.