service_linked_role
Gets or updates an individual service_linked_role
resource, use service_linked_roles
to retrieve a list of resources or to create or delete a resource.
Overview
Name | service_linked_role |
Type | Resource |
Description | Resource Type definition for AWS::IAM::ServiceLinkedRole |
Id | aws.iam.service_linked_role |
Fields
Name | Datatype | Description |
---|---|---|
role_name | string | The name of the role. |
custom_suffix | string | A string that you provide, which is combined with the service-provided prefix to form the complete role name. |
description | string | The description of the role. |
aws_service_name | string | The service principal for the AWS service to which this role is attached. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
role_name,
custom_suffix,
description,
aws_service_name
FROM aws.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