You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SecurityHub::Types::AwsIamRoleDetails

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AwsIamRoleDetails as input to an Aws::Client method, you can use a vanilla Hash:

{
  assume_role_policy_document: "AwsIamRoleAssumeRolePolicyDocument",
  attached_managed_policies: [
    {
      policy_name: "NonEmptyString",
      policy_arn: "NonEmptyString",
    },
  ],
  create_date: "NonEmptyString",
  instance_profile_list: [
    {
      arn: "NonEmptyString",
      create_date: "NonEmptyString",
      instance_profile_id: "NonEmptyString",
      instance_profile_name: "NonEmptyString",
      path: "NonEmptyString",
      roles: [
        {
          arn: "NonEmptyString",
          assume_role_policy_document: "AwsIamRoleAssumeRolePolicyDocument",
          create_date: "NonEmptyString",
          path: "NonEmptyString",
          role_id: "NonEmptyString",
          role_name: "NonEmptyString",
        },
      ],
    },
  ],
  permissions_boundary: {
    permissions_boundary_arn: "NonEmptyString",
    permissions_boundary_type: "NonEmptyString",
  },
  role_id: "NonEmptyString",
  role_name: "NonEmptyString",
  role_policy_list: [
    {
      policy_name: "NonEmptyString",
    },
  ],
  max_session_duration: 1,
  path: "NonEmptyString",
}

Contains information about an IAM role, including all of the role's policies.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#assume_role_policy_documentString

The trust policy that grants permission to assume the role.

Returns:

  • (String)

    The trust policy that grants permission to assume the role.

#attached_managed_policiesArray<Types::AwsIamAttachedManagedPolicy>

The list of the managed policies that are attached to the role.

Returns:

#create_dateString

Indicates when the role was created.

Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z.

Returns:

  • (String)

    Indicates when the role was created.

#instance_profile_listArray<Types::AwsIamInstanceProfile>

The list of instance profiles that contain this role.

Returns:

#max_session_durationInteger

The maximum session duration (in seconds) that you want to set for the specified role.

Returns:

  • (Integer)

    The maximum session duration (in seconds) that you want to set for the specified role.

#pathString

The path to the role.

Returns:

  • (String)

    The path to the role.

#permissions_boundaryTypes::AwsIamPermissionsBoundary

Information about the policy used to set the permissions boundary for an IAM principal.

Returns:

#role_idString

The stable and unique string identifying the role.

Returns:

  • (String)

    The stable and unique string identifying the role.

#role_nameString

The friendly name that identifies the role.

Returns:

  • (String)

    The friendly name that identifies the role.

#role_policy_listArray<Types::AwsIamRolePolicy>

The list of inline policies that are embedded in the role.

Returns: