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.
Creates an IAM role that is linked to a specific AWS service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed.
The name of the role is autogenerated by combining the string that you specify for
AWSServiceName parameter with the string that you specify for the
CustomSuffix parameter. The resulting name must be unique in your account
or the request fails.
To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.
For .NET Core, PCL and Unity this operation is only available in asynchronous form. Please refer to CreateServiceLinkedRoleAsync.
public abstract CreateServiceLinkedRoleResponse CreateServiceLinkedRole( CreateServiceLinkedRoleRequest request )
Container for the necessary parameters to execute the CreateServiceLinkedRole service method.
|InvalidInputException||The request was rejected because an invalid or out-of-range value was supplied for an input parameter.|
|LimitExceededException||The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.|
|NoSuchEntityException||The request was rejected because it referenced an entity that does not exist. The error message describes the entity.|
|ServiceFailureException||The request processing has failed because of an unknown error, exception or failure.|
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone