AWS SDK Version 2 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.

.NET Framework 3.5
 
Container for the parameters to the CreatePolicy operation. Creates a new managed policy for your AWS account.

This operation creates a policy version with a version identifier of v1 and sets v1 as the policy's default version. For more information about policy versions, see Versioning for Managed Policies in the IAM User Guide.

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

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.IdentityManagement.AmazonIdentityManagementServiceRequest
      Amazon.IdentityManagement.Model.CreatePolicyRequest

Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class CreatePolicyRequest : AmazonIdentityManagementServiceRequest
         IRequestEvents

The CreatePolicyRequest type exposes the following members

Constructors

NameDescription
Public Method CreatePolicyRequest()

Properties

NameTypeDescription
Public Property Description System.String Gets and sets the property Description.

A friendly description of the policy.

Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."

The policy description is immutable. After a value is assigned, it cannot be changed.

Public Property Path System.String Gets and sets the property Path.

The path for the policy.

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

This parameter is optional. If it is not included, it defaults to a slash (/).

Public Property PolicyDocument System.String Gets and sets the property PolicyDocument.

The policy document.

Public Property PolicyName System.String Gets and sets the property PolicyName.

The name of the policy document.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1