Class: Aws::IAM::Types::ManagedPolicyDetail

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iam/types.rb

Overview

Contains information about a managed policy, including the policy’s ARN, versions, and the number of principal entities (users, groups, and roles) that the policy is attached to.

This data type is used as a response element in the GetAccountAuthorizationDetails action.

For more information about managed policies, see [Managed Policies and Inline Policies] in the *Using IAM* guide.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS resources.

For more information about ARNs, go to [Amazon Resource Names (ARNs) and AWS Service Namespaces] in the *AWS General Reference*.

[1]: docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#attachment_countInteger

The number of principal entities (users, groups, and roles) that the policy is attached to.

Returns:

  • (Integer)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#create_dateTime

The date and time, in [ISO 8601 date-time format], when the policy was created.

[1]: www.iso.org/iso/iso8601

Returns:

  • (Time)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#default_version_idString

The identifier for the version of the policy that is set as the default (operative) version.

For more information about policy versions, see [Versioning for Managed Policies] in the *Using IAM* guide.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#descriptionString

A friendly description of the policy.

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#is_attachableBoolean

Specifies whether the policy can be attached to an IAM user, group, or role.

Returns:

  • (Boolean)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#pathString

The path to the policy.

For more information about paths, see [IAM Identifiers] in the *Using IAM* guide.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#policy_idString

The stable and unique string identifying the policy.

For more information about IDs, see [IAM Identifiers] in the *Using IAM* guide.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#policy_nameString

The friendly name (not ARN) identifying the policy.

Returns:

  • (String)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#policy_version_listArray<Types::PolicyVersion>

A list containing information about the versions of the policy.

Returns:



5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end

#update_dateTime

The date and time, in [ISO 8601 date-time format], when the policy was last updated.

When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

[1]: www.iso.org/iso/iso8601

Returns:

  • (Time)


5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
# File 'lib/aws-sdk-iam/types.rb', line 5816

class ManagedPolicyDetail < Struct.new(
  :policy_name,
  :policy_id,
  :arn,
  :path,
  :default_version_id,
  :attachment_count,
  :is_attachable,
  :description,
  :create_date,
  :update_date,
  :policy_version_list)
  include Aws::Structure
end