iam_delete_role: Deletes the specified role

Description Usage Arguments Details Request syntax Examples

View source: R/iam_operations.R

Description

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

Usage

1
iam_delete_role(RoleName)

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: \_+=,[email protected]

Details

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.

Request syntax

1
2
3
svc$delete_role(
  RoleName = "string"
)

Examples

1
2
3
4
# The following command removes the role named Test-Role.
svc$delete_role(
  RoleName = "Test-Role"
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.