    # File lib/fog/aws/requests/cloud_formation/create_stack.rb, line 31
            def create_stack(stack_name, options = {})
              params = {
                'StackName' => stack_name,
              }

              if options['DisableRollback']
                params['DisableRollback'] = options['DisableRollback']
              end

              if options['NotificationARNs']
                params.merge!(Fog::AWS.indexed_param("NotificationARNs.member", [*options['NotificationARNs']]))
              end

              if options['Parameters']
                options['Parameters'].keys.each_with_index do |key, index|
                  index += 1 # params are 1-indexed
                  params.merge!({
                    "Parameters.member.#{index}.ParameterKey"   => key,
                    "Parameters.member.#{index}.ParameterValue" => options['Parameters'][key]
                  })
                end
              end

              num_tags = 0
              if options['Tags']
                options['Tags'].keys.each_with_index do |key, index|
                  index += 1 # tags are 1-indexed
                  num_tags += 1 # 10 tag max

                  params.merge!({
                    "Tags.member.#{index}.Key"   => key,
                    "Tags.member.#{index}.Value" => options['Tags'][key]
                  })
                end
              end

              if num_tags > 10
                raise ArgumentError.new("a maximum of 10 tags can be specified <#{num_tags}>")
              end

              if options['TemplateBody']
                params['TemplateBody'] = options['TemplateBody']
              elsif options['TemplateURL']
                params['TemplateURL'] = options['TemplateURL']
              end

              if options['TimeoutInMinutes']
                params['TimeoutInMinutes'] = options['TimeoutInMinutes']
              end

              if options['Capabilities']
                params.merge!(Fog::AWS.indexed_param("Capabilities.member", [*options['Capabilities']]))
              end

              request({
                'Action'    => 'CreateStack',
                :parser     => Fog::Parsers::AWS::CloudFormation::CreateStack.new
              }.merge!(params))
            end