amazonka-storagegateway-1.4.5: Amazon Storage Gateway 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.StorageGateway.ShutdownGateway

Contents

Description

Shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.

The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

After the gateway is shutdown, you cannot call any other API except StartGateway , DescribeGatewayInformation , and ListGateways . For more information, see ActivateGateway . Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.

If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway ) to no longer pay software charges associated with the gateway.

Synopsis

Creating a Request

shutdownGateway #

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

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

data ShutdownGateway #

A JSON object containing the of the gateway to shut down.

See: shutdownGateway smart constructor.

Instances

Eq ShutdownGateway # 
Data ShutdownGateway # 

Methods

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

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

toConstr :: ShutdownGateway -> Constr #

dataTypeOf :: ShutdownGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ShutdownGateway # 
Show ShutdownGateway # 
Generic ShutdownGateway # 
Hashable ShutdownGateway # 
ToJSON ShutdownGateway # 
NFData ShutdownGateway # 

Methods

rnf :: ShutdownGateway -> () #

AWSRequest ShutdownGateway # 
ToQuery ShutdownGateway # 
ToPath ShutdownGateway # 
ToHeaders ShutdownGateway # 
type Rep ShutdownGateway # 
type Rep ShutdownGateway = D1 (MetaData "ShutdownGateway" "Network.AWS.StorageGateway.ShutdownGateway" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" True) (C1 (MetaCons "ShutdownGateway'" PrefixI True) (S1 (MetaSel (Just Symbol "_sGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs ShutdownGateway # 

Request Lenses

sGatewayARN :: Lens' ShutdownGateway Text #

Undocumented member.

Destructuring the Response

shutdownGatewayResponse #

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

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

data ShutdownGatewayResponse #

A JSON object containing the of the gateway that was shut down.

See: shutdownGatewayResponse smart constructor.

Instances

Eq ShutdownGatewayResponse # 
Data ShutdownGatewayResponse # 

Methods

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

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

toConstr :: ShutdownGatewayResponse -> Constr #

dataTypeOf :: ShutdownGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ShutdownGatewayResponse # 
Show ShutdownGatewayResponse # 
Generic ShutdownGatewayResponse # 
NFData ShutdownGatewayResponse # 

Methods

rnf :: ShutdownGatewayResponse -> () #

type Rep ShutdownGatewayResponse # 
type Rep ShutdownGatewayResponse = D1 (MetaData "ShutdownGatewayResponse" "Network.AWS.StorageGateway.ShutdownGateway" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "ShutdownGatewayResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_srsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_srsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

srsResponseStatus :: Lens' ShutdownGatewayResponse Int #

  • - | The response status code.