def create_version(options = {})
      options = options.merge(policy_arn: @arn)
      resp = @client.create_policy_version(options)
      PolicyVersion.new(
        arn: @arn,
        version_id: resp.data.policy_version.version_id,
        client: @client
      )
    end
def create_version(options = {})
      options = options.merge(policy_arn: @arn)
      resp = @client.create_policy_version(options)
      PolicyVersion.new(
        arn: @arn,
        version_id: resp.data.policy_version.version_id,
        client: @client
      )
    end
@example Request syntax with placeholder values

   policyversion = policy.create_version({
     policy_document: "policyDocumentType", # required
     set_as_default: false,
   })
 @param [Hash] options ({})
 @option options [required, String] :policy_document
   The JSON policy document that you want to use as the content for this
   new version of the policy.

   The [regex pattern][1] used to validate this parameter is a string of
   characters consisting of the following:

   * Any printable ASCII character ranging from the space character
     (\\u0020) through the end of the ASCII character range

   * The printable characters in the Basic Latin and Latin-1 Supplement
     character set (through \\u00FF)

   * The special characters tab (\\u0009), line feed (\\u000A), and
     carriage return (\\u000D)



   [1]: http://wikipedia.org/wiki/regex
 @option options [Boolean] :set_as_default
   Specifies whether to set this version as the policy's default
   version.

   When this parameter is `true`, the new policy version becomes the
   operative version. That is, it becomes the version that is in effect
   for the IAM users, groups, and roles that the policy is attached to.

   For more information about managed policy versions, see [Versioning
   for Managed Policies][1] in the *IAM User Guide*.



   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html
 @return [PolicyVersion]