    # File lib/fog/aws/requests/compute/create_subnet.rb, line 44
            def create_subnet(vpcId, cidrBlock, options = {})
              av_zone = options['AvailabilityZone'].nil? ? 'us-east-1c' : options['AvailabilityZone']
              Excon::Response.new.tap do |response|
                if cidrBlock  && vpcId
                  response.status = 200
                  self.data[:subnets].push({
                    'subnetId'                 => Fog::AWS::Mock.request_id,
                    'state'                    => 'pending',
                    'vpcId'                    => Fog::AWS::Mock.request_id,
                    'cidrBlock'                => cidrBlock,
                    'availableIpAddressCount'  => "255",
                    'availabilityZone'         => av_zone,
                    'tagSet'                   => {}
                  })

                  response.body = {
                    'requestId'    => Fog::AWS::Mock.request_id,
                    'subnetSet'    => self.data[:subnets]
                  }
                else
                  response.status = 400
                  response.body = {
                    'Code' => 'InvalidParameterValue'
                  }
                  if cidrBlock.empty?
                    response.body['Message'] = "Invalid value '' for cidrBlock. Must be specified."
                  end
                  if vpcId.empty?
                    response.body['Message'] = "Invalid value '' for vpcId. Must be specified."
                  end
                end
              end
            end