powered by
Disassociates an IAM instance profile from a running or stopped instance.
Use describe_iam_instance_profile_associations to get the association ID.
describe_iam_instance_profile_associations
ec2_disassociate_iam_instance_profile(AssociationId)
A list with the following syntax:
list( IamInstanceProfileAssociation = list( AssociationId = "string", InstanceId = "string", IamInstanceProfile = list( Arn = "string", Id = "string" ), State = "associating"|"associated"|"disassociating"|"disassociated", Timestamp = as.POSIXct( "2015-01-01" ) ) )
[required] The ID of the IAM instance profile association.
svc$disassociate_iam_instance_profile( AssociationId = "string" )
if (FALSE) { # This example disassociates the specified IAM instance profile from an # instance. svc$disassociate_iam_instance_profile( AssociationId = "iip-assoc-05020b59952902f5f" ) }
Run the code above in your browser using DataLab