Skip to content

Describe Iam Instance Profile Associations

ec2_describe_iam_instance_profile_associations R Documentation

Describes your IAM instance profile associations

Description

Describes your IAM instance profile associations.

Usage

ec2_describe_iam_instance_profile_associations(AssociationIds, Filters,
  MaxResults, NextToken)

Arguments

AssociationIds

The IAM instance profile associations.

Filters

The filters.

  • instance-id - The ID of the instance.

  • state - The state of the association (associating | associated | disassociating).

MaxResults

The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

NextToken

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Value

A list with the following syntax:

list(
  IamInstanceProfileAssociations = list(
    list(
      AssociationId = "string",
      InstanceId = "string",
      IamInstanceProfile = list(
        Arn = "string",
        Id = "string"
      ),
      State = "associating"|"associated"|"disassociating"|"disassociated",
      Timestamp = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$describe_iam_instance_profile_associations(
  AssociationIds = list(
    "string"
  ),
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  MaxResults = 123,
  NextToken = "string"
)

Examples

## Not run: 
# This example describes the specified IAM instance profile association.
svc$describe_iam_instance_profile_associations(
  AssociationIds = list(
    "iip-assoc-0db249b1f25fa24b8"
  )
)

## End(Not run)