@Override
    public CreatePolicyResult createPolicy(CreatePolicyRequest request) {
        request = beforeClientExecution(request);
        return executeCreatePolicy(request);
    }
@ Override public CreatePolicyResult createPolicy ( CreatePolicyRequest request ) { request = beforeClientExecution ( request ) ; return executeCreatePolicy ( request ) ; }
<p>
Creates a new managed policy for your AWS account.
</p>
<p>
This operation creates a policy version with a version identifier of <code>v1</code> and sets v1 as the policy's
default version. For more information about policy versions, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for Managed
Policies</a> in the <i>IAM User Guide</i>.
</p>
<p>
For more information about managed policies in general, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed Policies and
Inline Policies</a> in the <i>IAM User Guide</i>.
</p>

@param createPolicyRequest
@return Result of the CreatePolicy operation returned by the service.
@throws InvalidInputException
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
@throws LimitExceededException
The request was rejected because it attempted to create resources beyond the current AWS account limits.
The error message describes the limit exceeded.
@throws EntityAlreadyExistsException
The request was rejected because it attempted to create a resource that already exists.
@throws MalformedPolicyDocumentException
The request was rejected because the policy document was malformed. The error message describes the
specific error.
@throws ServiceFailureException
The request processing has failed because of an unknown error, exception or failure.
@sample AmazonIdentityManagement.CreatePolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreatePolicy" target="_top">AWS API
Documentation</a>