Skip to main content

service_linked_role

Gets an individual service_linked_role resource

Overview

Nameservice_linked_role
TypeResource
Descriptionservice_linked_role
Idawscc.iam.service_linked_role

Fields

NameDatatypeDescription
role_namestringThe name of the role.
custom_suffixstringA string that you provide, which is combined with the service-provided prefix to form the complete role name.
descriptionstringThe description of the role.
aws_service_namestringThe service principal for the AWS service to which this role is attached.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
role_name,
custom_suffix,
description,
aws_service_name
FROM awscc.iam.service_linked_role
WHERE data__Identifier = '<RoleName>';

Permissions

To operate on the service_linked_role resource, the following permissions are required:

Read

iam:GetRole

Update

iam:UpdateRole,
iam:GetRole

Delete

iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus,
iam:GetRole