Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.CreatePolicy C# (CSharp) Method

CreatePolicy() public method

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, see Managed Policies and Inline Policies in the IAM User Guide.

/// The request was rejected because it attempted to create a resource that already exists. /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error message describes the limit exceeded. /// /// The request was rejected because the policy document was malformed. The error message /// describes the specific error. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public CreatePolicy ( CreatePolicyRequest request ) : CreatePolicyResponse
request Amazon.IdentityManagement.Model.CreatePolicyRequest Container for the necessary parameters to execute the CreatePolicy service method.
return Amazon.IdentityManagement.Model.CreatePolicyResponse
        public CreatePolicyResponse CreatePolicy(CreatePolicyRequest request)
        {
            var marshaller = new CreatePolicyRequestMarshaller();
            var unmarshaller = CreatePolicyResponseUnmarshaller.Instance;

            return Invoke<CreatePolicyRequest,CreatePolicyResponse>(request, marshaller, unmarshaller);
        }
AmazonIdentityManagementServiceClient