amazonka-iam-2.0: Amazon Identity and Access Management SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IAM.DeleteRole

Description

Deletes the specified role. The role must not have any policies attached. For more information about roles, see Working with roles.

Make sure that you do not have any Amazon EC2 instances running with the role 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.

Synopsis

Creating a Request

data DeleteRole Source #

See: newDeleteRole smart constructor.

Constructors

DeleteRole' 

Fields

  • roleName :: Text

    The name of the role to delete.

    This parameter allows (through 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: _+=,.@-

Instances

Instances details
ToHeaders DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Methods

toHeaders :: DeleteRole -> [Header] #

ToPath DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

ToQuery DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

AWSRequest DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type AWSResponse DeleteRole #

Generic DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type Rep DeleteRole :: Type -> Type #

Read DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Show DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

NFData DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Methods

rnf :: DeleteRole -> () #

Eq DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Hashable DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type AWSResponse DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRole = D1 ('MetaData "DeleteRole" "Amazonka.IAM.DeleteRole" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "DeleteRole'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteRole Source #

Arguments

:: Text

DeleteRole

-> DeleteRole 

Create a value of DeleteRole with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteRole, deleteRole_roleName - The name of the role to delete.

This parameter allows (through 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: _+=,.@-

Request Lenses

deleteRole_roleName :: Lens' DeleteRole Text Source #

The name of the role to delete.

This parameter allows (through 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

data DeleteRoleResponse Source #

See: newDeleteRoleResponse smart constructor.

Constructors

DeleteRoleResponse' 

Instances

Instances details
Generic DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type Rep DeleteRoleResponse :: Type -> Type #

Read DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Show DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

NFData DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Methods

rnf :: DeleteRoleResponse -> () #

Eq DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRoleResponse = D1 ('MetaData "DeleteRoleResponse" "Amazonka.IAM.DeleteRole" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "DeleteRoleResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteRoleResponse :: DeleteRoleResponse Source #

Create a value of DeleteRoleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.