Skip to content

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role

Description

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Usage

iam_get_instance_profile(InstanceProfileName)

Arguments

  • InstanceProfileName

    [required] The name of the instance profile to get information about.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Value

A list with the following syntax:

list(
  InstanceProfile = list(
    Path = "string",
    InstanceProfileName = "string",
    InstanceProfileId = "string",
    Arn = "string",
    CreateDate = as.POSIXct(
      "2015-01-01"
    ),
    Roles = list(
      list(
        Path = "string",
        RoleName = "string",
        RoleId = "string",
        Arn = "string",
        CreateDate = as.POSIXct(
          "2015-01-01"
        ),
        AssumeRolePolicyDocument = "string",
        Description = "string",
        MaxSessionDuration = 123,
        PermissionsBoundary = list(
          PermissionsBoundaryType = "PermissionsBoundaryPolicy",
          PermissionsBoundaryArn = "string"
        ),
        Tags = list(
          list(
            Key = "string",
            Value = "string"
          )
        ),
        RoleLastUsed = list(
          LastUsedDate = as.POSIXct(
            "2015-01-01"
          ),
          Region = "string"
        ),
        SourceRoleTemplate = list(
          TemplateArn = "string",
          TemplateMinorVersion = 123
        )
      )
    ),
    Tags = list(
      list(
        Key = "string",
        Value = "string"
      )
    )
  )
)

Request syntax

svc$get_instance_profile(
  InstanceProfileName = "string"
)

Examples

# The following command gets information about the instance profile named
# ExampleInstanceProfile.
svc$get_instance_profile(
  InstanceProfileName = "ExampleInstanceProfile"
)