AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Contains information about a managed policy.

This data type is used as a response element in the CreatePolicy, GetPolicy, and ListPolicies operations.

For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.

Inheritance Hierarchy

System.Object
  Amazon.IdentityManagement.Model.ManagedPolicy

Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.IdentityManagement.dll
Version: 3.x.y.z

Syntax

C#
public class ManagedPolicy

The ManagedPolicy type exposes the following members

Constructors

NameDescription
Public Method ManagedPolicy()

Properties

NameTypeDescription
Public Property Arn System.String

Gets and sets the property Arn.

Public Property AttachmentCount System.Int32

Gets and sets the property AttachmentCount.

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

Public Property CreateDate System.DateTime

Gets and sets the property CreateDate.

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

Public Property DefaultVersionId System.String

Gets and sets the property DefaultVersionId.

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

Public Property Description System.String

Gets and sets the property Description.

A friendly description of the policy.

This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

Public Property IsAttachable System.Boolean

Gets and sets the property IsAttachable.

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

Public Property Path System.String

Gets and sets the property Path.

The path to the policy.

For more information about paths, see IAM identifiers in the IAM User Guide.

Public Property PermissionsBoundaryUsageCount System.Int32

Gets and sets the property PermissionsBoundaryUsageCount.

The number of entities (users and roles) for which the policy is used to set the permissions boundary.

For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.

Public Property PolicyId System.String

Gets and sets the property PolicyId.

The stable and unique string identifying the policy.

For more information about IDs, see IAM identifiers in the IAM User Guide.

Public Property PolicyName System.String

Gets and sets the property PolicyName.

The friendly name (not ARN) identifying the policy.

Public Property Tags System.Collections.Generic.List<Amazon.IdentityManagement.Model.Tag>

Gets and sets the property Tags.

A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Public Property UpdateDate System.DateTime

Gets and sets the property UpdateDate.

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.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5