libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Read DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Show DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Generic DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type Rep DeleteRole :: Type -> Type #

NFData DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Methods

rnf :: DeleteRole -> () #

Hashable DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

AWSRequest DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type AWSResponse DeleteRole #

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

type Rep DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRole = D1 ('MetaData "DeleteRole" "Amazonka.IAM.DeleteRole" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeleteRole'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteRole Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

newDeleteRole Source #

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:

$sel:roleName: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
Eq DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Read DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Show DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Generic DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Associated Types

type Rep DeleteRoleResponse :: Type -> Type #

NFData DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

Methods

rnf :: DeleteRoleResponse -> () #

type Rep DeleteRoleResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRole

type Rep DeleteRoleResponse = D1 ('MetaData "DeleteRoleResponse" "Amazonka.IAM.DeleteRole" "libZSservicesZSamazonka-iamZSamazonka-iam" '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.