AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Get-IAMServiceLinkedRoleDeletionStatus-DeletionTaskId <String>-Select <String>-PassThru <SwitchParameter>
DeletionTaskId
parameter in GetServiceLinkedRoleDeletionStatus
to check the status of the deletion. If the deletion fails, this operation returns the reason that it failed, if that information is returned by the service. task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>
. Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Remove-IAMServiceLinkedRole -RoleName AWSServiceRoleForAutoScaling_RoleNameEndsWithThis
Output :
task/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling_RoleNameEndsWithThis/2c8d6fe8-1a92-41cf-a37e-3fee02f8f1e8
Get-IAMServiceLinkedRoleDeletionStatus -DeletionTaskId task/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling_RoleNameEndsWithThis/2c8d6fe8-1a92-41cf-a37e-3fee02f8f1e8This example shows how to fetch the deletion status of a service linked role.
AWS Tools for PowerShell: 2.x.y.z