amazonka-storagegateway-1.6.0: Amazon Storage Gateway 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.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 gateway's virtual machine (VM) and not the host 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 Source #

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

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

See: shutdownGateway smart constructor.

Instances

Eq ShutdownGateway Source # 
Data ShutdownGateway Source # 

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 Source # 
Show ShutdownGateway Source # 
Generic ShutdownGateway Source # 
Hashable ShutdownGateway Source # 
ToJSON ShutdownGateway Source # 
NFData ShutdownGateway Source # 

Methods

rnf :: ShutdownGateway -> () #

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

Request Lenses

sGatewayARN :: Lens' ShutdownGateway Text Source #

Undocumented member.

Destructuring the Response

shutdownGatewayResponse Source #

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

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

See: shutdownGatewayResponse smart constructor.

Instances

Eq ShutdownGatewayResponse Source # 
Data ShutdownGatewayResponse Source # 

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 Source # 
Show ShutdownGatewayResponse Source # 
Generic ShutdownGatewayResponse Source # 
NFData ShutdownGatewayResponse Source # 

Methods

rnf :: ShutdownGatewayResponse -> () #

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

Response Lenses

srsResponseStatus :: Lens' ShutdownGatewayResponse Int Source #

  • - | The response status code.