amazonka-iam-1.6.0: 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.DeleteServiceLinkedRole

Contents

Description

Submits a service-linked role deletion request and returns a DeletionTaskId , which you can use to check the status of the deletion. Before you call this operation, confirm that the role has no active sessions and that any resources used by the role in the linked service are deleted. If you call this operation more than once for the same service-linked role and an earlier deletion task is not complete, then the DeletionTaskId of the earlier request is returned.

If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus API operation returns the reason for the failure, usually including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the AWS documentation for your service.

For more information about service-linked roles, see Roles Terms and Concepts: AWS Service-Linked Role in the IAM User Guide .

Synopsis

Creating a Request

deleteServiceLinkedRole #

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

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

  • dslrRoleName - The name of the service-linked role to be deleted.

data DeleteServiceLinkedRole #

See: deleteServiceLinkedRole smart constructor.

Instances

Eq DeleteServiceLinkedRole # 
Data DeleteServiceLinkedRole # 

Methods

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

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

toConstr :: DeleteServiceLinkedRole -> Constr #

dataTypeOf :: DeleteServiceLinkedRole -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteServiceLinkedRole # 
Show DeleteServiceLinkedRole # 
Generic DeleteServiceLinkedRole # 
Hashable DeleteServiceLinkedRole # 
NFData DeleteServiceLinkedRole # 

Methods

rnf :: DeleteServiceLinkedRole -> () #

AWSRequest DeleteServiceLinkedRole # 
ToHeaders DeleteServiceLinkedRole # 
ToPath DeleteServiceLinkedRole # 
ToQuery DeleteServiceLinkedRole # 
type Rep DeleteServiceLinkedRole # 
type Rep DeleteServiceLinkedRole = D1 * (MetaData "DeleteServiceLinkedRole" "Network.AWS.IAM.DeleteServiceLinkedRole" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" True) (C1 * (MetaCons "DeleteServiceLinkedRole'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dslrRoleName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DeleteServiceLinkedRole # 

Request Lenses

dslrRoleName :: Lens' DeleteServiceLinkedRole Text #

The name of the service-linked role to be deleted.

Destructuring the Response

deleteServiceLinkedRoleResponse #

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

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

data DeleteServiceLinkedRoleResponse #

See: deleteServiceLinkedRoleResponse smart constructor.

Instances

Eq DeleteServiceLinkedRoleResponse # 
Data DeleteServiceLinkedRoleResponse # 

Methods

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

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

toConstr :: DeleteServiceLinkedRoleResponse -> Constr #

dataTypeOf :: DeleteServiceLinkedRoleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteServiceLinkedRoleResponse # 
Show DeleteServiceLinkedRoleResponse # 
Generic DeleteServiceLinkedRoleResponse # 
NFData DeleteServiceLinkedRoleResponse # 
type Rep DeleteServiceLinkedRoleResponse # 
type Rep DeleteServiceLinkedRoleResponse = D1 * (MetaData "DeleteServiceLinkedRoleResponse" "Network.AWS.IAM.DeleteServiceLinkedRole" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "DeleteServiceLinkedRoleResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dslrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_dslrrsDeletionTaskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))

Response Lenses

dslrrsDeletionTaskId :: Lens' DeleteServiceLinkedRoleResponse Text #

The deletion task identifier that you can use to check the status of the deletion. This identifier is returned in the format taskaws-service-roleservice-principal-namerole-nametask-uuid .