amazonka-iam-1.6.1: Amazon Identity and Access Management 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.IAM.DeleteInstanceProfile

Contents

Description

Deletes the specified instance profile. The instance profile must not have an associated role.

Important: Make sure that you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

For more information about instance profiles, go to About Instance Profiles .

Synopsis

Creating a Request

deleteInstanceProfile Source #

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

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

  • dipInstanceProfileName - The name of the instance profile to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

data DeleteInstanceProfile Source #

See: deleteInstanceProfile smart constructor.

Instances
Eq DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Data DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Methods

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

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

toConstr :: DeleteInstanceProfile -> Constr #

dataTypeOf :: DeleteInstanceProfile -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Show DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Generic DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Associated Types

type Rep DeleteInstanceProfile :: Type -> Type #

Hashable DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

AWSRequest DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Associated Types

type Rs DeleteInstanceProfile :: Type #

ToHeaders DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

ToPath DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

ToQuery DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

NFData DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Methods

rnf :: DeleteInstanceProfile -> () #

type Rep DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

type Rep DeleteInstanceProfile = D1 (MetaData "DeleteInstanceProfile" "Network.AWS.IAM.DeleteInstanceProfile" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" True) (C1 (MetaCons "DeleteInstanceProfile'" PrefixI True) (S1 (MetaSel (Just "_dipInstanceProfileName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Request Lenses

dipInstanceProfileName :: Lens' DeleteInstanceProfile Text Source #

The name of the instance profile to delete. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

deleteInstanceProfileResponse :: DeleteInstanceProfileResponse Source #

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

data DeleteInstanceProfileResponse Source #

See: deleteInstanceProfileResponse smart constructor.

Instances
Eq DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Data DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Methods

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

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

toConstr :: DeleteInstanceProfileResponse -> Constr #

dataTypeOf :: DeleteInstanceProfileResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Show DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Generic DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

Associated Types

type Rep DeleteInstanceProfileResponse :: Type -> Type #

NFData DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

type Rep DeleteInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteInstanceProfile

type Rep DeleteInstanceProfileResponse = D1 (MetaData "DeleteInstanceProfileResponse" "Network.AWS.IAM.DeleteInstanceProfile" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "DeleteInstanceProfileResponse'" PrefixI False) (U1 :: Type -> Type))