amazonka-cloudhsmv2-1.5.0: Amazon CloudHSM V2 SDK.

Copyright(c) 2013-2017 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.CloudHSMv2.DeleteHSM

Contents

Description

Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters .

Synopsis

Creating a Request

deleteHSM Source #

Arguments

:: Text

dhClusterId

-> DeleteHSM 

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

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

  • dhEniId - The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.
  • dhHSMId - The identifier (ID) of the HSM that you are deleting.
  • dhEniIP - The IP address of the elastic network interface (ENI) of the HSM that you are deleting.
  • dhClusterId - The identifier (ID) of the cluster that contains the HSM that you are deleting.

data DeleteHSM Source #

See: deleteHSM smart constructor.

Instances

Eq DeleteHSM Source # 
Data DeleteHSM Source # 

Methods

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

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

toConstr :: DeleteHSM -> Constr #

dataTypeOf :: DeleteHSM -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHSM Source # 
Show DeleteHSM Source # 
Generic DeleteHSM Source # 

Associated Types

type Rep DeleteHSM :: * -> * #

Hashable DeleteHSM Source # 
ToJSON DeleteHSM Source # 
NFData DeleteHSM Source # 

Methods

rnf :: DeleteHSM -> () #

AWSRequest DeleteHSM Source # 
ToQuery DeleteHSM Source # 
ToPath DeleteHSM Source # 
ToHeaders DeleteHSM Source # 

Methods

toHeaders :: DeleteHSM -> [Header] #

type Rep DeleteHSM Source # 
type Rep DeleteHSM = D1 (MetaData "DeleteHSM" "Network.AWS.CloudHSMv2.DeleteHSM" "amazonka-cloudhsmv2-1.5.0-9gkNObchpN7FWF7WWGRIob" False) (C1 (MetaCons "DeleteHSM'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dhEniId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dhHSMId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_dhEniIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dhClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteHSM Source # 

Request Lenses

dhEniId :: Lens' DeleteHSM (Maybe Text) Source #

The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.

dhHSMId :: Lens' DeleteHSM (Maybe Text) Source #

The identifier (ID) of the HSM that you are deleting.

dhEniIP :: Lens' DeleteHSM (Maybe Text) Source #

The IP address of the elastic network interface (ENI) of the HSM that you are deleting.

dhClusterId :: Lens' DeleteHSM Text Source #

The identifier (ID) of the cluster that contains the HSM that you are deleting.

Destructuring the Response

deleteHSMResponse Source #

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

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

data DeleteHSMResponse Source #

See: deleteHSMResponse smart constructor.

Instances

Eq DeleteHSMResponse Source # 
Data DeleteHSMResponse Source # 

Methods

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

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

toConstr :: DeleteHSMResponse -> Constr #

dataTypeOf :: DeleteHSMResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHSMResponse Source # 
Show DeleteHSMResponse Source # 
Generic DeleteHSMResponse Source # 
NFData DeleteHSMResponse Source # 

Methods

rnf :: DeleteHSMResponse -> () #

type Rep DeleteHSMResponse Source # 
type Rep DeleteHSMResponse = D1 (MetaData "DeleteHSMResponse" "Network.AWS.CloudHSMv2.DeleteHSM" "amazonka-cloudhsmv2-1.5.0-9gkNObchpN7FWF7WWGRIob" False) (C1 (MetaCons "DeleteHSMResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dhrsHSMId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dhrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dhrsHSMId :: Lens' DeleteHSMResponse (Maybe Text) Source #

The identifier (ID) of the HSM that was deleted.

dhrsResponseStatus :: Lens' DeleteHSMResponse Int Source #

  • - | The response status code.