Smaws_Client_IAM.RemoveRoleFromInstanceProfileRemoves the specified IAM role from the specified Amazon EC2 instance profile.
Make sure that you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance might break any applications running on the instance.
For more information about roles, see IAM roles in the IAM User Guide. For more information about instance profiles, see Using instance profiles in the IAM User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception
| `UnmodifiableEntityException of Types.unmodifiable_entity_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.remove_role_from_instance_profile_request ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception
| `UnmodifiableEntityException of Types.unmodifiable_entity_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.remove_role_from_instance_profile_request ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `LimitExceededException of Types.limit_exceeded_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception
| `UnmodifiableEntityException of Types.unmodifiable_entity_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result