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.
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.
Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class CreatePolicyRequest : AmazonIdentityManagementServiceRequest IRequestEvents
The CreatePolicyRequest type exposes the following members
Name | Description | |
---|---|---|
CreatePolicyRequest() |
Name | Type | Description | |
---|---|---|---|
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. |
|
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 (/). |
|
PolicyDocument | System.String |
Gets and sets the property PolicyDocument.
The policy document. |
|
PolicyName | System.String |
Gets and sets the property PolicyName.
The name of the policy document. |
.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