amazonka-lightsail-1.4.5: Amazon Lightsail SDK.

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

Network.AWS.Lightsail.OpenInstancePublicPorts

Contents

Description

Adds public ports to an Amazon Lightsail instance.

Synopsis

Creating a Request

openInstancePublicPorts Source #

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

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

  • oippPortInfo - An array of key-value pairs containing information about the port mappings.
  • oippInstanceName - The name of the instance for which you want to open the public ports.

data OpenInstancePublicPorts Source #

See: openInstancePublicPorts smart constructor.

Instances

Eq OpenInstancePublicPorts Source # 
Data OpenInstancePublicPorts Source # 

Methods

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

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

toConstr :: OpenInstancePublicPorts -> Constr #

dataTypeOf :: OpenInstancePublicPorts -> DataType #

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

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

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

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

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

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

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

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

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

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

Read OpenInstancePublicPorts Source # 
Show OpenInstancePublicPorts Source # 
Generic OpenInstancePublicPorts Source # 
Hashable OpenInstancePublicPorts Source # 
ToJSON OpenInstancePublicPorts Source # 
NFData OpenInstancePublicPorts Source # 

Methods

rnf :: OpenInstancePublicPorts -> () #

AWSRequest OpenInstancePublicPorts Source # 
ToPath OpenInstancePublicPorts Source # 
ToHeaders OpenInstancePublicPorts Source # 
ToQuery OpenInstancePublicPorts Source # 
type Rep OpenInstancePublicPorts Source # 
type Rep OpenInstancePublicPorts = D1 (MetaData "OpenInstancePublicPorts" "Network.AWS.Lightsail.OpenInstancePublicPorts" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "OpenInstancePublicPorts'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_oippPortInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PortInfo)) (S1 (MetaSel (Just Symbol "_oippInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs OpenInstancePublicPorts Source # 

Request Lenses

oippPortInfo :: Lens' OpenInstancePublicPorts PortInfo Source #

An array of key-value pairs containing information about the port mappings.

oippInstanceName :: Lens' OpenInstancePublicPorts Text Source #

The name of the instance for which you want to open the public ports.

Destructuring the Response

openInstancePublicPortsResponse Source #

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

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

data OpenInstancePublicPortsResponse Source #

See: openInstancePublicPortsResponse smart constructor.

Instances

Eq OpenInstancePublicPortsResponse Source # 
Data OpenInstancePublicPortsResponse Source # 

Methods

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

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

toConstr :: OpenInstancePublicPortsResponse -> Constr #

dataTypeOf :: OpenInstancePublicPortsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read OpenInstancePublicPortsResponse Source # 
Show OpenInstancePublicPortsResponse Source # 
Generic OpenInstancePublicPortsResponse Source # 
NFData OpenInstancePublicPortsResponse Source # 
type Rep OpenInstancePublicPortsResponse Source # 
type Rep OpenInstancePublicPortsResponse = D1 (MetaData "OpenInstancePublicPortsResponse" "Network.AWS.Lightsail.OpenInstancePublicPorts" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "OpenInstancePublicPortsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_oipprsOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Operation))) (S1 (MetaSel (Just Symbol "_oipprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

oipprsOperation :: Lens' OpenInstancePublicPortsResponse (Maybe Operation) Source #

An array of key-value pairs containing information about the request operation.