

# Using service-linked roles for Amazon Batch
<a name="using-service-linked-roles"></a>

Amazon Batch uses Amazon Identity and Access Management (IAM) [ service-linked roles](https://docs.amazonaws.cn/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role). A service-linked role is a unique type of IAM role that is linked directly to Amazon Batch. Service-linked roles are predefined by Amazon Batch and include all the permissions that the service requires to call other Amazon services on your behalf.

Amazon Batch uses two different service-linked roles:
+ [AWSServiceRoleForBatch](using-service-linked-roles-batch-general.md) - For Amazon Batch operations including compute environments.
+ [AWSServiceRoleForAWSBatchWithSagemaker](using-service-linked-roles-batch-sagemaker.md) - For SageMaker AI workload management and queuing.

**Topics**
+ [Using roles for Amazon Batch](using-service-linked-roles-batch-general.md)
+ [Using roles for Amazon Batch with SageMaker AI](using-service-linked-roles-batch-sagemaker.md)