Learn R Programming

paws.security.identity (version 0.1.12)

iam_delete_role: Deletes the specified role

Description

Deletes the specified role. The role must not have any policies attached. For more information about roles, go to 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.

Usage

iam_delete_role(RoleName)

Value

An empty list.

Arguments

RoleName

[required] 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 syntax

svc$delete_role(
  RoleName = "string"
)

Examples

Run this code
if (FALSE) {
# The following command removes the role named Test-Role.
svc$delete_role(
  RoleName = "Test-Role"
)
}

Run the code above in your browser using DataLab