Skip to content

Disassociate Iam Instance Profile

ec2_disassociate_iam_instance_profile R Documentation

Disassociates an IAM instance profile from a running or stopped instance

Description

Disassociates an IAM instance profile from a running or stopped instance.

Use describe_iam_instance_profile_associations to get the association ID.

Usage

ec2_disassociate_iam_instance_profile(AssociationId)

Arguments

AssociationId

[required] The ID of the IAM instance profile association.

Value

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"
    )
  )
)

Request syntax

svc$disassociate_iam_instance_profile(
  AssociationId = "string"
)

Examples

## Not run: 
# This example disassociates the specified IAM instance profile from an
# instance.
svc$disassociate_iam_instance_profile(
  AssociationId = "iip-assoc-05020b59952902f5f"
)

## End(Not run)